diff --git a/.fern/replay.lock b/.fern/replay.lock index 2afb23da0..67af0e9fc 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -36,5 +36,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-java-sdk: 4.11.1 -current_generation: 91cdb7769f3d5d9facbd490ac199b4e030630b00 + - commit_sha: 6981a2ead10a6b0f4d15c2b21942acdb6de4a930 + tree_hash: 9051bc49b73ae30d9d0d3bcd3655848a16e60442 + timestamp: 2026-09-02T09:23:31.722Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.11.1 +current_generation: 6981a2ead10a6b0f4d15c2b21942acdb6de4a930 patches: [] diff --git a/build.gradle b/build.gradle index 523686caf..cbfbfb8db 100644 --- a/build.gradle +++ b/build.gradle @@ -22,9 +22,9 @@ logger.lifecycle("Using version ${version} for ${name} group $group") dependencies { // Core dependencies api 'com.squareup.okhttp3:okhttp:5.2.1' - api 'com.fasterxml.jackson.core:jackson-databind:2.21.5' - api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.21.5' - api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.5' + api 'com.fasterxml.jackson.core:jackson-databind:2.21.6' + api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.21.6' + api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.6' // Dependencies for legacy management code from auth0-real implementation 'com.squareup.okhttp3:logging-interceptor:5.2.1' diff --git a/reference.md b/reference.md index 9d82c8d1d..739d6695c 100644 --- a/reference.md +++ b/reference.md @@ -2162,6 +2162,14 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
+**b2BIntegrationConfiguration:** `Optional` + +
+
+ +
+
+ **myOrganizationConfiguration:** `Optional`
@@ -2951,6 +2959,14 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
+**b2BIntegrationConfiguration:** `Optional` + +
+
+ +
+
+ **myOrganizationConfiguration:** `Optional`
@@ -3209,6 +3225,14 @@ client.connectionProfiles().create(
+**provisioning:** `Optional` + +
+
+ +
+
+ **crossAppAccessResourceApp:** `Optional`
@@ -3525,6 +3549,14 @@ client.connectionProfiles().update(
+**provisioning:** `Optional` + +
+
+ +
+
+ **crossAppAccessResourceApp:** `Optional`
@@ -8953,7 +8985,542 @@ client.networkAcls().delete("id");
-Update existing access control list for your client. +Update existing access control list for your client. +
+
+ +
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.networkAcls().update( + "id", + UpdateNetworkAclRequestContent + .builder() + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the ACL to update. + +
+
+ +
+
+ +**description:** `Optional` + +
+
+ +
+
+ +**active:** `Optional` — Indicates whether or not this access control list is actively being used + +
+
+ +
+
+ +**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. + +
+
+ +
+
+ +**rule:** `Optional` + +
+
+
+
+ + + +
+ + +## OrganizationTemplates +
client.organizationTemplates.list() -> SyncPagingIterable<OrganizationTemplate> +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (`id`) in ascending order. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizationTemplates().list( + ListOrganizationTemplatesRequestParameters + .builder() + .from("from") + .take(1) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 5. Values greater than 10 are capped at 10. + +
+
+
+
+ + +
+
+
+ +
client.organizationTemplates.create(request) -> OrganizationTemplate +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Create an Organization Template. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizationTemplates().create( + CreateOrganizationTemplateRequestContent + .builder() + .name("name") + .organizationDeletionBehavior(OrganizationDeletionBehaviorEnum.ALLOW) + .enforcePermissionCeiling(true) + .enforceSelfAssignmentRestriction(true) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**name:** `String` — The name of the organization template. + +
+
+ +
+
+ +**isDefault:** `Optional` — Whether this is the default template applied to new organizations. + +
+
+ +
+
+ +**organizationDeletionBehavior:** `OrganizationDeletionBehaviorEnum` + +
+
+ +
+
+ +**connectionDeletionBehavior:** `Optional` + +
+
+ +
+
+ +**enforcePermissionCeiling:** `Boolean` — Whether to enforce permission ceiling for organizations using this template. + +
+
+ +
+
+ +**enforceSelfAssignmentRestriction:** `Boolean` — Whether to enforce self-assignment restrictions for organizations using this template. + +
+
+ +
+
+ +**connectionProfileId:** `Optional` — The connection profile to apply to new connections. + +
+
+ +
+
+ +**userAttributeProfileId:** `Optional` — The user attribute profile to apply to organizations. + +
+
+ +
+
+ +**allowedStrategies:** `Optional>` — List of allowed connection strategies for this template. + +
+
+ +
+
+ +**invitationLandingClientId:** `Optional` — The client ID for the invitation landing page. + +
+
+ +
+
+ +**adminRolesAssignment:** `Optional>` — Default admin roles to assign to organization creators. + +
+
+ +
+
+ +**useForOrganizationDiscovery:** `Optional` + +
+
+ +
+
+ +**roleVisibilityPolicy:** `Optional` + +
+
+
+
+ + +
+
+
+ +
client.organizationTemplates.get(id) -> OrganizationTemplate +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve details about a single Organization Template specified by ID. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizationTemplates().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Organization Template identifier. + +
+
+
+
+ + +
+
+
+ +
client.organizationTemplates.update(id, request) -> OrganizationTemplate +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update the details of a specific Organization Template. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizationTemplates().update( + "id", + UpdateOrganizationTemplateRequestContent + .builder() + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Organization Template identifier. + +
+
+ +
+
+ +**name:** `Optional` — The name of the organization template. + +
+
+ +
+
+ +**isDefault:** `Optional` — Whether this is the default template applied to new organizations. + +
+
+ +
+
+ +**organizationDeletionBehavior:** `Optional` + +
+
+ +
+
+ +**connectionDeletionBehavior:** `Optional` + +
+
+ +
+
+ +**enforcePermissionCeiling:** `Optional` — Whether to enforce permission ceiling for organizations using this template. + +
+
+ +
+
+ +**enforceSelfAssignmentRestriction:** `Optional` — Whether to enforce self-assignment restrictions for organizations using this template. + +
+
+ +
+
+ +**connectionProfileId:** `Optional` — The connection profile to apply to new connections. + +
+
+ +
+
+ +**userAttributeProfileId:** `Optional` — The user attribute profile to apply to organizations. + +
+
+ +
+
+ +**allowedStrategies:** `Optional>` — List of allowed connection strategies for this template. + +
+
+ +
+
+ +**invitationLandingClientId:** `Optional` — The client ID for the invitation landing page. + +
+
+ +
+
+ +**adminRolesAssignment:** `Optional>` — Default admin roles to assign to organization creators. + +
+
+ +
+
+ +**useForOrganizationDiscovery:** `Optional` + +
+
+ +
+
+ +**roleVisibilityPolicy:** `Optional` + +
+
+
+
+ + +
+
+
+ +
client.organizationTemplates.listOrganizations(id) -> SyncPagingIterable<OrganizationTemplateAssignedOrganization> +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (`id`) in ascending order.
@@ -8968,10 +9535,12 @@ Update existing access control list for your client.
```java -client.networkAcls().update( +client.organizationTemplates().listOrganizations( "id", - UpdateNetworkAclRequestContent + ListTemplateOrganizationsRequestParameters .builder() + .from("from") + .take(1) .build() ); ``` @@ -8988,23 +9557,7 @@ client.networkAcls().update(
-**id:** `String` — The id of the ACL to update. - -
-
- -
-
- -**description:** `Optional` - -
-
- -
-
- -**active:** `Optional` — Indicates whether or not this access control list is actively being used +**id:** `String` — The ID of the organization template.
@@ -9012,7 +9565,7 @@ client.networkAcls().update(
-**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. +**from:** `Optional` — Optional Id from which to start selection.
@@ -9020,7 +9573,7 @@ client.networkAcls().update(
-**rule:** `Optional` +**take:** `Optional` — Number of results per page. Defaults to 5. Values greater than 10 are capped at 10.
@@ -25563,6 +26116,60 @@ client.keys().networkAcls().get("id");
+
+
+
+ +
client.keys.networkAcls.delete(id) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a key used to verify HTTP Message Signatures on Network ACL rules +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.keys().networkAcls().delete("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the Network ACL Key to delete. + +
+
+
+
+ +
@@ -28163,6 +28770,185 @@ client.organizations().members().delete(
+ +
+ + +## Organizations OrganizationTemplate +
client.organizations.organizationTemplate.get(id) -> OrganizationTemplate +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizations().organizationTemplate().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the organization. + +
+
+
+
+ + +
+
+
+ +
client.organizations.organizationTemplate.assignOrganizationTemplate(id, templateId) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Assign an Organization Template to an organization. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizations().organizationTemplate().assignOrganizationTemplate("id", "template_id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The ID of the organization. + +
+
+ +
+
+ +**templateId:** `String` — The ID of the organization template to assign. + +
+
+
+
+ + +
+
+
+ +
client.organizations.organizationTemplate.unassignOrganizationTemplate(id, templateId) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Remove an Organization Template assignment from an organization. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizations().organizationTemplate().unassignOrganizationTemplate("id", "template_id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The ID of the organization. + +
+
+ +
+
+ +**templateId:** `String` — The ID of the organization template to unassign. + +
+
+
+
+ +
@@ -32897,6 +33683,22 @@ client.users().multifactor().deleteProvider("id", UserMultifactorProviderEnum.DU
Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review [Auth0 Organizations](https://auth0.com/docs/manage-users/organizations). + +This endpoint supports two types of pagination: + +- Offset pagination +- Checkpoint pagination + +Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. + +**Checkpoint Pagination** + +To search by checkpoint, use the following parameters: + +- `from`: Optional id from which to start selection. +- `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. + +**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining.
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java index 4604539c6..e9dcb745e 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java @@ -60,6 +60,8 @@ public class AsyncManagementApi { protected final Supplier networkAclsClient; + protected final Supplier organizationTemplatesClient; + protected final Supplier organizationsClient; protected final Supplier promptsClient; @@ -133,6 +135,7 @@ public AsyncManagementApi(ClientOptions clientOptions) { this.logStreamsClient = Suppliers.memoize(() -> new AsyncLogStreamsClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new AsyncLogsClient(clientOptions)); this.networkAclsClient = Suppliers.memoize(() -> new AsyncNetworkAclsClient(clientOptions)); + this.organizationTemplatesClient = Suppliers.memoize(() -> new AsyncOrganizationTemplatesClient(clientOptions)); this.organizationsClient = Suppliers.memoize(() -> new AsyncOrganizationsClient(clientOptions)); this.promptsClient = Suppliers.memoize(() -> new AsyncPromptsClient(clientOptions)); this.rateLimitPoliciesClient = Suppliers.memoize(() -> new AsyncRateLimitPoliciesClient(clientOptions)); @@ -244,6 +247,10 @@ public AsyncNetworkAclsClient networkAcls() { return this.networkAclsClient.get(); } + public AsyncOrganizationTemplatesClient organizationTemplates() { + return this.organizationTemplatesClient.get(); + } + public AsyncOrganizationsClient organizations() { return this.organizationsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationTemplatesClient.java new file mode 100644 index 000000000..0b8d5f233 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationTemplatesClient.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.CreateOrganizationTemplateRequestContent; +import com.auth0.client.mgmt.types.ListOrganizationTemplatesRequestParameters; +import com.auth0.client.mgmt.types.ListTemplateOrganizationsRequestParameters; +import com.auth0.client.mgmt.types.OrganizationTemplate; +import com.auth0.client.mgmt.types.OrganizationTemplateAssignedOrganization; +import com.auth0.client.mgmt.types.UpdateOrganizationTemplateRequestContent; +import java.util.concurrent.CompletableFuture; + +public class AsyncOrganizationTemplatesClient { + protected final ClientOptions clientOptions; + + private final AsyncRawOrganizationTemplatesClient rawClient; + + public AsyncOrganizationTemplatesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawOrganizationTemplatesClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawOrganizationTemplatesClient withRawResponse() { + return this.rawClient; + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> list() { + return this.rawClient.list().thenApply(response -> response.body()); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> list( + ListOrganizationTemplatesRequestParameters request) { + return this.rawClient.list(request).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> list( + ListOrganizationTemplatesRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Create an Organization Template. + */ + public CompletableFuture create(CreateOrganizationTemplateRequestContent request) { + return this.rawClient.create(request).thenApply(response -> response.body()); + } + + /** + * Create an Organization Template. + */ + public CompletableFuture create( + CreateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + return this.rawClient.create(request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public CompletableFuture get(String id) { + return this.rawClient.get(id).thenApply(response -> response.body()); + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture update(String id) { + return this.rawClient.update(id).thenApply(response -> response.body()); + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture update(String id, UpdateOrganizationTemplateRequestContent request) { + return this.rawClient.update(id, request).thenApply(response -> response.body()); + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture update( + String id, UpdateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + return this.rawClient.update(id, request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> listOrganizations( + String id) { + return this.rawClient.listOrganizations(id).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> listOrganizations( + String id, RequestOptions requestOptions) { + return this.rawClient.listOrganizations(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> listOrganizations( + String id, ListTemplateOrganizationsRequestParameters request) { + return this.rawClient.listOrganizations(id, request).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture> listOrganizations( + String id, ListTemplateOrganizationsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.listOrganizations(id, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java index b36fa9238..20c3d698a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java @@ -15,6 +15,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.AsyncOrganizationTemplateClient; import com.auth0.client.mgmt.organizations.roles.AsyncRolesClient; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; @@ -46,6 +47,8 @@ public class AsyncOrganizationsClient { protected final Supplier membersClient; + protected final Supplier organizationTemplateClient; + protected final Supplier groupsClient; protected final Supplier rolesClient; @@ -60,6 +63,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) { this.enabledConnectionsClient = Suppliers.memoize(() -> new AsyncEnabledConnectionsClient(clientOptions)); this.invitationsClient = Suppliers.memoize(() -> new AsyncInvitationsClient(clientOptions)); this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions)); + this.organizationTemplateClient = Suppliers.memoize(() -> new AsyncOrganizationTemplateClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions)); this.rolesClient = Suppliers.memoize(() -> new AsyncRolesClient(clientOptions)); } @@ -270,6 +274,10 @@ public AsyncMembersClient members() { return this.membersClient.get(); } + public AsyncOrganizationTemplateClient organizationTemplate() { + return this.organizationTemplateClient.get(); + } + public AsyncGroupsClient groups() { return this.groupsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java index c8fb3f587..acc5d1406 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java @@ -19,6 +19,7 @@ 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.errors.UnprocessableEntityError; import com.auth0.client.mgmt.types.ConnectionForList; import com.auth0.client.mgmt.types.CreateConnectionRequestContent; import com.auth0.client.mgmt.types.CreateConnectionResponseContent; @@ -347,6 +348,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 422: + future.completeExceptionally(new UnprocessableEntityError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), @@ -710,6 +716,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 422: + future.completeExceptionally(new UnprocessableEntityError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationTemplatesClient.java new file mode 100644 index 000000000..770298145 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationTemplatesClient.java @@ -0,0 +1,673 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.MediaTypes; +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.RetryInterceptor; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; +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.types.CreateOrganizationTemplateRequestContent; +import com.auth0.client.mgmt.types.ListOrganizationTemplatesPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListOrganizationTemplatesRequestParameters; +import com.auth0.client.mgmt.types.ListTemplateOrganizationsPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListTemplateOrganizationsRequestParameters; +import com.auth0.client.mgmt.types.OrganizationTemplate; +import com.auth0.client.mgmt.types.OrganizationTemplateAssignedOrganization; +import com.auth0.client.mgmt.types.UpdateOrganizationTemplateRequestContent; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.Collections; +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.RequestBody; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.jetbrains.annotations.NotNull; + +public class AsyncRawOrganizationTemplatesClient { + protected final ClientOptions clientOptions; + + public AsyncRawOrganizationTemplatesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> list() { + return list(ListOrganizationTemplatesRequestParameters.builder().build()); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListOrganizationTemplatesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> list( + ListOrganizationTemplatesRequestParameters request) { + return list(request, null); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> list( + ListOrganizationTemplatesRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(5), 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); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture>> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListOrganizationTemplatesPaginatedResponseContent parsedResponse = + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListOrganizationTemplatesPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListOrganizationTemplatesRequestParameters nextRequest = + ListOrganizationTemplatesRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = + parsedResponse.getOrganizationTemplates().orElse(Collections.emptyList()); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(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 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 (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } 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; + } + + /** + * Create an Organization Template. + */ + public CompletableFuture> create( + CreateOrganizationTemplateRequestContent request) { + return create(request, null); + } + + /** + * Create an Organization Template. + */ + public CompletableFuture> create( + CreateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), + 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 409: + future.completeExceptionally(new ConflictError( + 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 (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public CompletableFuture> get(String id) { + return get(id, null); + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), + response)); + return; + } + try { + switch (response.code()) { + 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 (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } 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; + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture> update(String id) { + return update(id, UpdateOrganizationTemplateRequestContent.builder().build()); + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateOrganizationTemplateRequestContent.builder().build(), requestOptions); + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture> update( + String id, UpdateOrganizationTemplateRequestContent request) { + return update(id, request, null); + } + + /** + * Update the details of a specific Organization Template. + */ + public CompletableFuture> update( + String id, UpdateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), + 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 (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> + listOrganizations(String id) { + return listOrganizations( + id, ListTemplateOrganizationsRequestParameters.builder().build()); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> + listOrganizations(String id, RequestOptions requestOptions) { + return listOrganizations( + id, ListTemplateOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> + listOrganizations(String id, ListTemplateOrganizationsRequestParameters request) { + return listOrganizations(id, request, null); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public CompletableFuture>> + listOrganizations( + String id, ListTemplateOrganizationsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates") + .addPathSegment(id) + .addPathSegments("organizations"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(5), 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); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture>> + future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListTemplateOrganizationsPaginatedResponseContent parsedResponse = + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListTemplateOrganizationsPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListTemplateOrganizationsRequestParameters nextRequest = + ListTemplateOrganizationsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getOrganizations(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return listOrganizations(id, 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 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 (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } 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/ManagementApi.java b/src/main/java/com/auth0/client/mgmt/ManagementApi.java index d17fb3c1e..20d44de2f 100644 --- a/src/main/java/com/auth0/client/mgmt/ManagementApi.java +++ b/src/main/java/com/auth0/client/mgmt/ManagementApi.java @@ -60,6 +60,8 @@ public class ManagementApi { protected final Supplier networkAclsClient; + protected final Supplier organizationTemplatesClient; + protected final Supplier organizationsClient; protected final Supplier promptsClient; @@ -133,6 +135,7 @@ public ManagementApi(ClientOptions clientOptions) { this.logStreamsClient = Suppliers.memoize(() -> new LogStreamsClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new LogsClient(clientOptions)); this.networkAclsClient = Suppliers.memoize(() -> new NetworkAclsClient(clientOptions)); + this.organizationTemplatesClient = Suppliers.memoize(() -> new OrganizationTemplatesClient(clientOptions)); this.organizationsClient = Suppliers.memoize(() -> new OrganizationsClient(clientOptions)); this.promptsClient = Suppliers.memoize(() -> new PromptsClient(clientOptions)); this.rateLimitPoliciesClient = Suppliers.memoize(() -> new RateLimitPoliciesClient(clientOptions)); @@ -244,6 +247,10 @@ public NetworkAclsClient networkAcls() { return this.networkAclsClient.get(); } + public OrganizationTemplatesClient organizationTemplates() { + return this.organizationTemplatesClient.get(); + } + public OrganizationsClient organizations() { return this.organizationsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/OrganizationTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/OrganizationTemplatesClient.java new file mode 100644 index 000000000..bb876fb92 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/OrganizationTemplatesClient.java @@ -0,0 +1,150 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.CreateOrganizationTemplateRequestContent; +import com.auth0.client.mgmt.types.ListOrganizationTemplatesRequestParameters; +import com.auth0.client.mgmt.types.ListTemplateOrganizationsRequestParameters; +import com.auth0.client.mgmt.types.OrganizationTemplate; +import com.auth0.client.mgmt.types.OrganizationTemplateAssignedOrganization; +import com.auth0.client.mgmt.types.UpdateOrganizationTemplateRequestContent; + +public class OrganizationTemplatesClient { + protected final ClientOptions clientOptions; + + private final RawOrganizationTemplatesClient rawClient; + + public OrganizationTemplatesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawOrganizationTemplatesClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawOrganizationTemplatesClient withRawResponse() { + return this.rawClient; + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable list() { + return this.rawClient.list().body(); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable list(ListOrganizationTemplatesRequestParameters request) { + return this.rawClient.list(request).body(); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable list( + ListOrganizationTemplatesRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).body(); + } + + /** + * Create an Organization Template. + */ + public OrganizationTemplate create(CreateOrganizationTemplateRequestContent request) { + return this.rawClient.create(request).body(); + } + + /** + * Create an Organization Template. + */ + public OrganizationTemplate create( + CreateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + return this.rawClient.create(request, requestOptions).body(); + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public OrganizationTemplate get(String id) { + return this.rawClient.get(id).body(); + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public OrganizationTemplate get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Update the details of a specific Organization Template. + */ + public OrganizationTemplate update(String id) { + return this.rawClient.update(id).body(); + } + + /** + * Update the details of a specific Organization Template. + */ + public OrganizationTemplate update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update the details of a specific Organization Template. + */ + public OrganizationTemplate update(String id, UpdateOrganizationTemplateRequestContent request) { + return this.rawClient.update(id, request).body(); + } + + /** + * Update the details of a specific Organization Template. + */ + public OrganizationTemplate update( + String id, UpdateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + return this.rawClient.update(id, request, requestOptions).body(); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable listOrganizations(String id) { + return this.rawClient.listOrganizations(id).body(); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable listOrganizations( + String id, RequestOptions requestOptions) { + return this.rawClient.listOrganizations(id, requestOptions).body(); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable listOrganizations( + String id, ListTemplateOrganizationsRequestParameters request) { + return this.rawClient.listOrganizations(id, request).body(); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public SyncPagingIterable listOrganizations( + String id, ListTemplateOrganizationsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.listOrganizations(id, request, requestOptions).body(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java index f50ee76cb..15b26958a 100644 --- a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java @@ -15,6 +15,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.OrganizationTemplateClient; import com.auth0.client.mgmt.organizations.roles.RolesClient; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; @@ -45,6 +46,8 @@ public class OrganizationsClient { protected final Supplier membersClient; + protected final Supplier organizationTemplateClient; + protected final Supplier groupsClient; protected final Supplier rolesClient; @@ -59,6 +62,7 @@ public OrganizationsClient(ClientOptions clientOptions) { this.enabledConnectionsClient = Suppliers.memoize(() -> new EnabledConnectionsClient(clientOptions)); this.invitationsClient = Suppliers.memoize(() -> new InvitationsClient(clientOptions)); this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions)); + this.organizationTemplateClient = Suppliers.memoize(() -> new OrganizationTemplateClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions)); this.rolesClient = Suppliers.memoize(() -> new RolesClient(clientOptions)); } @@ -267,6 +271,10 @@ public MembersClient members() { return this.membersClient.get(); } + public OrganizationTemplateClient organizationTemplate() { + return this.organizationTemplateClient.get(); + } + public GroupsClient groups() { return this.groupsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java index c60e8e784..c5ddbd6d3 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java @@ -19,6 +19,7 @@ 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.errors.UnprocessableEntityError; import com.auth0.client.mgmt.types.ConnectionForList; import com.auth0.client.mgmt.types.CreateConnectionRequestContent; import com.auth0.client.mgmt.types.CreateConnectionResponseContent; @@ -295,6 +296,9 @@ public ManagementApiHttpResponse create( case 409: throw new ConflictError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 422: + throw new UnprocessableEntityError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); @@ -581,6 +585,9 @@ public ManagementApiHttpResponse update( case 409: throw new ConflictError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 422: + throw new UnprocessableEntityError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/RawOrganizationTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/RawOrganizationTemplatesClient.java new file mode 100644 index 000000000..fd3eefb09 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/RawOrganizationTemplatesClient.java @@ -0,0 +1,530 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.MediaTypes; +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.RetryInterceptor; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; +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.types.CreateOrganizationTemplateRequestContent; +import com.auth0.client.mgmt.types.ListOrganizationTemplatesPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListOrganizationTemplatesRequestParameters; +import com.auth0.client.mgmt.types.ListTemplateOrganizationsPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListTemplateOrganizationsRequestParameters; +import com.auth0.client.mgmt.types.OrganizationTemplate; +import com.auth0.client.mgmt.types.OrganizationTemplateAssignedOrganization; +import com.auth0.client.mgmt.types.UpdateOrganizationTemplateRequestContent; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.Collections; +import java.util.List; +import java.util.Optional; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawOrganizationTemplatesClient { + protected final ClientOptions clientOptions; + + public RawOrganizationTemplatesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> list() { + return list(ListOrganizationTemplatesRequestParameters.builder().build()); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListOrganizationTemplatesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> list( + ListOrganizationTemplatesRequestParameters request) { + return list(request, null); + } + + /** + * Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> list( + ListOrganizationTemplatesRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(5), 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); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListOrganizationTemplatesPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListOrganizationTemplatesPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListOrganizationTemplatesRequestParameters nextRequest = + ListOrganizationTemplatesRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = + parsedResponse.getOrganizationTemplates().orElse(Collections.emptyList()); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> list( + 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 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 (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Create an Organization Template. + */ + public ManagementApiHttpResponse create(CreateOrganizationTemplateRequestContent request) { + return create(request, null); + } + + /** + * Create an Organization Template. + */ + public ManagementApiHttpResponse create( + CreateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), 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 409: + throw new ConflictError( + 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 (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public ManagementApiHttpResponse get(String id) { + return get(id, null); + } + + /** + * Retrieve details about a single Organization Template specified by ID. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), response); + } + try { + switch (response.code()) { + 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 (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Update the details of a specific Organization Template. + */ + public ManagementApiHttpResponse update(String id) { + return update(id, UpdateOrganizationTemplateRequestContent.builder().build()); + } + + /** + * Update the details of a specific Organization Template. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateOrganizationTemplateRequestContent.builder().build(), requestOptions); + } + + /** + * Update the details of a specific Organization Template. + */ + public ManagementApiHttpResponse update( + String id, UpdateOrganizationTemplateRequestContent request) { + return update(id, request, null); + } + + /** + * Update the details of a specific Organization Template. + */ + public ManagementApiHttpResponse update( + String id, UpdateOrganizationTemplateRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), 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 (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> listOrganizations( + String id) { + return listOrganizations( + id, ListTemplateOrganizationsRequestParameters.builder().build()); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> listOrganizations( + String id, RequestOptions requestOptions) { + return listOrganizations( + id, ListTemplateOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> listOrganizations( + String id, ListTemplateOrganizationsRequestParameters request) { + return listOrganizations(id, request, null); + } + + /** + * Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (id) in ascending order. + */ + public ManagementApiHttpResponse> listOrganizations( + String id, ListTemplateOrganizationsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organization-templates") + .addPathSegment(id) + .addPathSegments("organizations"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(5), 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); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListTemplateOrganizationsPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListTemplateOrganizationsPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListTemplateOrganizationsRequestParameters nextRequest = + ListTemplateOrganizationsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getOrganizations(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> listOrganizations( + id, 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 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 (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java index 2b794ce11..21a854f46 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java @@ -17,6 +17,7 @@ import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -374,6 +375,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 409: + future.completeExceptionally(new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; } } catch (JsonProcessingException ignored) { // unable to map error response, throwing generic error diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java index da6293f13..f1bd3c16a 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java @@ -17,6 +17,7 @@ import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -310,6 +311,9 @@ public ManagementApiHttpResponse create( case 404: throw new NotFoundError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 409: + throw new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); } } catch (JsonProcessingException ignored) { // unable to map error response, throwing generic error diff --git a/src/main/java/com/auth0/client/mgmt/errors/UnprocessableEntityError.java b/src/main/java/com/auth0/client/mgmt/errors/UnprocessableEntityError.java new file mode 100644 index 000000000..9491be2ee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/errors/UnprocessableEntityError.java @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.errors; + +import com.auth0.client.mgmt.core.ManagementApiException; +import okhttp3.Response; + +public final class UnprocessableEntityError extends ManagementApiException { + /** + * The body of the response that triggered the exception. + */ + private final Object body; + + public UnprocessableEntityError(Object body) { + super("UnprocessableEntityError", 422, body); + this.body = body; + } + + public UnprocessableEntityError(Object body, Response rawResponse) { + super("UnprocessableEntityError", 422, body, rawResponse); + this.body = body; + } + + /** + * @return the body + */ + @java.lang.Override + public Object body() { + return this.body; + } +} diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncNetworkAclsClient.java index 5812859ac..91d93569e 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncNetworkAclsClient.java @@ -70,4 +70,18 @@ public CompletableFuture get(String id) { public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public CompletableFuture delete(String id) { + return this.rawClient.delete(id).thenApply(response -> response.body()); + } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public CompletableFuture delete(String id, RequestOptions requestOptions) { + return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); + } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawNetworkAclsClient.java index dba3eddbc..27c240e07 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawNetworkAclsClient.java @@ -360,4 +360,104 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { }); return future; } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public CompletableFuture> delete(String id) { + return delete(id, null); + } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public CompletableFuture> delete(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("keys/network-acls") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>(null, response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 409: + future.completeExceptionally(new ConflictError( + 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 (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } 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/keys/NetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/keys/NetworkAclsClient.java index ec45e4934..82d36b7e6 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/NetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/NetworkAclsClient.java @@ -69,4 +69,18 @@ public NetworkAclKey get(String id) { public NetworkAclKey get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public void delete(String id) { + this.rawClient.delete(id).body(); + } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public void delete(String id, RequestOptions requestOptions) { + this.rawClient.delete(id, requestOptions).body(); + } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawNetworkAclsClient.java index c6d94a6fa..b2d8df6c4 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawNetworkAclsClient.java @@ -280,4 +280,80 @@ public ManagementApiHttpResponse get(String id, RequestOptions re throw new ManagementException("Network error executing HTTP request", e); } } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public ManagementApiHttpResponse delete(String id) { + return delete(id, null); + } + + /** + * Delete a key used to verify HTTP Message Signatures on Network ACL rules + */ + public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("keys/network-acls") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>(null, response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 409: + throw new ConflictError( + 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 (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncOrganizationTemplateClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncOrganizationTemplateClient.java new file mode 100644 index 000000000..fd81a1840 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncOrganizationTemplateClient.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.types.OrganizationTemplate; +import java.util.concurrent.CompletableFuture; + +public class AsyncOrganizationTemplateClient { + protected final ClientOptions clientOptions; + + private final AsyncRawOrganizationTemplateClient rawClient; + + public AsyncOrganizationTemplateClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawOrganizationTemplateClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawOrganizationTemplateClient withRawResponse() { + return this.rawClient; + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public CompletableFuture get(String id) { + return this.rawClient.get(id).thenApply(response -> response.body()); + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Assign an Organization Template to an organization. + */ + public CompletableFuture assignOrganizationTemplate(String id, String templateId) { + return this.rawClient.assignOrganizationTemplate(id, templateId).thenApply(response -> response.body()); + } + + /** + * Assign an Organization Template to an organization. + */ + public CompletableFuture assignOrganizationTemplate( + String id, String templateId, RequestOptions requestOptions) { + return this.rawClient + .assignOrganizationTemplate(id, templateId, requestOptions) + .thenApply(response -> response.body()); + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public CompletableFuture unassignOrganizationTemplate(String id, String templateId) { + return this.rawClient.unassignOrganizationTemplate(id, templateId).thenApply(response -> response.body()); + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public CompletableFuture unassignOrganizationTemplate( + String id, String templateId, RequestOptions requestOptions) { + return this.rawClient + .unassignOrganizationTemplate(id, templateId, requestOptions) + .thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawOrganizationTemplateClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawOrganizationTemplateClient.java new file mode 100644 index 000000000..2dc59e020 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawOrganizationTemplateClient.java @@ -0,0 +1,335 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations; + +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.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; +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.types.OrganizationTemplate; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.concurrent.CompletableFuture; +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.jetbrains.annotations.NotNull; + +public class AsyncRawOrganizationTemplateClient { + protected final ClientOptions clientOptions; + + public AsyncRawOrganizationTemplateClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public CompletableFuture> get(String id) { + return get(id, null); + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("organization-templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), + response)); + return; + } + try { + switch (response.code()) { + 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 (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } 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; + } + + /** + * Assign an Organization Template to an organization. + */ + public CompletableFuture> assignOrganizationTemplate(String id, String templateId) { + return assignOrganizationTemplate(id, templateId, null); + } + + /** + * Assign an Organization Template to an organization. + */ + public CompletableFuture> assignOrganizationTemplate( + String id, String templateId, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("organization-templates") + .addPathSegment(templateId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PUT", RequestBody.create("", null)) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>(null, response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } 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; + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public CompletableFuture> unassignOrganizationTemplate( + String id, String templateId) { + return unassignOrganizationTemplate(id, templateId, null); + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public CompletableFuture> unassignOrganizationTemplate( + String id, String templateId, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("organization-templates") + .addPathSegment(templateId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>(null, response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } 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/OrganizationTemplateClient.java b/src/main/java/com/auth0/client/mgmt/organizations/OrganizationTemplateClient.java new file mode 100644 index 000000000..191be5f22 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/OrganizationTemplateClient.java @@ -0,0 +1,72 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.types.OrganizationTemplate; + +public class OrganizationTemplateClient { + protected final ClientOptions clientOptions; + + private final RawOrganizationTemplateClient rawClient; + + public OrganizationTemplateClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawOrganizationTemplateClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawOrganizationTemplateClient withRawResponse() { + return this.rawClient; + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public OrganizationTemplate get(String id) { + return this.rawClient.get(id).body(); + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public OrganizationTemplate get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Assign an Organization Template to an organization. + */ + public void assignOrganizationTemplate(String id, String templateId) { + this.rawClient.assignOrganizationTemplate(id, templateId).body(); + } + + /** + * Assign an Organization Template to an organization. + */ + public void assignOrganizationTemplate(String id, String templateId, RequestOptions requestOptions) { + this.rawClient + .assignOrganizationTemplate(id, templateId, requestOptions) + .body(); + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public void unassignOrganizationTemplate(String id, String templateId) { + this.rawClient.unassignOrganizationTemplate(id, templateId).body(); + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public void unassignOrganizationTemplate(String id, String templateId, RequestOptions requestOptions) { + this.rawClient + .unassignOrganizationTemplate(id, templateId, requestOptions) + .body(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawOrganizationTemplateClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawOrganizationTemplateClient.java new file mode 100644 index 000000000..3aacd2d87 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawOrganizationTemplateClient.java @@ -0,0 +1,262 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations; + +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.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; +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.types.OrganizationTemplate; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawOrganizationTemplateClient { + protected final ClientOptions clientOptions; + + public RawOrganizationTemplateClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public ManagementApiHttpResponse get(String id) { + return get(id, null); + } + + /** + * Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("organization-templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, OrganizationTemplate.class), response); + } + try { + switch (response.code()) { + 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 (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Assign an Organization Template to an organization. + */ + public ManagementApiHttpResponse assignOrganizationTemplate(String id, String templateId) { + return assignOrganizationTemplate(id, templateId, null); + } + + /** + * Assign an Organization Template to an organization. + */ + public ManagementApiHttpResponse assignOrganizationTemplate( + String id, String templateId, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("organization-templates") + .addPathSegment(templateId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PUT", RequestBody.create("", null)) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>(null, response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public ManagementApiHttpResponse unassignOrganizationTemplate(String id, String templateId) { + return unassignOrganizationTemplate(id, templateId, null); + } + + /** + * Remove an Organization Template assignment from an organization. + */ + public ManagementApiHttpResponse unassignOrganizationTemplate( + String id, String templateId, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("organization-templates") + .addPathSegment(templateId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>(null, response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java index 9164ae0cb..509431c6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java @@ -43,6 +43,9 @@ public final class ActionTriggerTypeEnum { public static final ActionTriggerTypeEnum SEND_PHONE_MESSAGE = new ActionTriggerTypeEnum(Value.SEND_PHONE_MESSAGE, "send-phone-message"); + public static final ActionTriggerTypeEnum POST_CREDENTIAL_VALIDATION = + new ActionTriggerTypeEnum(Value.POST_CREDENTIAL_VALIDATION, "post-credential-validation"); + public static final ActionTriggerTypeEnum EVENT_STREAM = new ActionTriggerTypeEnum(Value.EVENT_STREAM, "event-stream"); @@ -105,6 +108,8 @@ public T visit(Visitor visitor) { return visitor.visitPostChangePassword(); case SEND_PHONE_MESSAGE: return visitor.visitSendPhoneMessage(); + case POST_CREDENTIAL_VALIDATION: + return visitor.visitPostCredentialValidation(); case EVENT_STREAM: return visitor.visitEventStream(); case POST_LOGIN: @@ -142,6 +147,8 @@ public static ActionTriggerTypeEnum valueOf(String value) { return POST_CHANGE_PASSWORD; case "send-phone-message": return SEND_PHONE_MESSAGE; + case "post-credential-validation": + return POST_CREDENTIAL_VALIDATION; case "event-stream": return EVENT_STREAM; case "post-login": @@ -180,6 +187,8 @@ public enum Value { SIGNUP_POST_IDENTIFIER, + POST_CREDENTIAL_VALIDATION, + UNKNOWN } @@ -212,6 +221,8 @@ public interface Visitor { T visitSignupPostIdentifier(); + T visitPostCredentialValidation(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/B2BIntegrationConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/B2BIntegrationConfiguration.java new file mode 100644 index 000000000..7ffadc643 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/B2BIntegrationConfiguration.java @@ -0,0 +1,137 @@ +/** + * 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 = B2BIntegrationConfiguration.Builder.class) +public final class B2BIntegrationConfiguration { + private final Optional> ssoProfiles; + + private final Optional integrationType; + + private final Map additionalProperties; + + private B2BIntegrationConfiguration( + Optional> ssoProfiles, + Optional integrationType, + Map additionalProperties) { + this.ssoProfiles = ssoProfiles; + this.integrationType = integrationType; + this.additionalProperties = additionalProperties; + } + + /** + * @return List of SSO profile IDs linked to this B2B integration client. Maximum 1 entry. + */ + @JsonProperty("sso_profiles") + public Optional> getSsoProfiles() { + return ssoProfiles; + } + + @JsonProperty("integration_type") + public Optional getIntegrationType() { + return integrationType; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof B2BIntegrationConfiguration && equalTo((B2BIntegrationConfiguration) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(B2BIntegrationConfiguration other) { + return ssoProfiles.equals(other.ssoProfiles) && integrationType.equals(other.integrationType); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.ssoProfiles, this.integrationType); + } + + @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> ssoProfiles = Optional.empty(); + + private Optional integrationType = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(B2BIntegrationConfiguration other) { + ssoProfiles(other.getSsoProfiles()); + integrationType(other.getIntegrationType()); + return this; + } + + /** + *

List of SSO profile IDs linked to this B2B integration client. Maximum 1 entry.

+ */ + @JsonSetter(value = "sso_profiles", nulls = Nulls.SKIP) + public Builder ssoProfiles(Optional> ssoProfiles) { + this.ssoProfiles = ssoProfiles; + return this; + } + + public Builder ssoProfiles(List ssoProfiles) { + this.ssoProfiles = Optional.ofNullable(ssoProfiles); + return this; + } + + @JsonSetter(value = "integration_type", nulls = Nulls.SKIP) + public Builder integrationType(Optional integrationType) { + this.integrationType = integrationType; + return this; + } + + public Builder integrationType(B2BIntegrationConfigurationIntegrationTypeEnum integrationType) { + this.integrationType = Optional.ofNullable(integrationType); + return this; + } + + public B2BIntegrationConfiguration build() { + return new B2BIntegrationConfiguration(ssoProfiles, integrationType, 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/B2BIntegrationConfigurationIntegrationTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/B2BIntegrationConfigurationIntegrationTypeEnum.java new file mode 100644 index 000000000..c276229b1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/B2BIntegrationConfigurationIntegrationTypeEnum.java @@ -0,0 +1,97 @@ +/** + * 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 B2BIntegrationConfigurationIntegrationTypeEnum { + public static final B2BIntegrationConfigurationIntegrationTypeEnum CUSTOM_AUTH_SERVER = + new B2BIntegrationConfigurationIntegrationTypeEnum(Value.CUSTOM_AUTH_SERVER, "custom_auth_server"); + + public static final B2BIntegrationConfigurationIntegrationTypeEnum APPLICATION = + new B2BIntegrationConfigurationIntegrationTypeEnum(Value.APPLICATION, "application"); + + public static final B2BIntegrationConfigurationIntegrationTypeEnum THIRD_PARTY = + new B2BIntegrationConfigurationIntegrationTypeEnum(Value.THIRD_PARTY, "third_party"); + + private final Value value; + + private final String string; + + B2BIntegrationConfigurationIntegrationTypeEnum(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 B2BIntegrationConfigurationIntegrationTypeEnum + && this.string.equals(((B2BIntegrationConfigurationIntegrationTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CUSTOM_AUTH_SERVER: + return visitor.visitCustomAuthServer(); + case APPLICATION: + return visitor.visitApplication(); + case THIRD_PARTY: + return visitor.visitThirdParty(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static B2BIntegrationConfigurationIntegrationTypeEnum valueOf(String value) { + switch (value) { + case "custom_auth_server": + return CUSTOM_AUTH_SERVER; + case "application": + return APPLICATION; + case "third_party": + return THIRD_PARTY; + default: + return new B2BIntegrationConfigurationIntegrationTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CUSTOM_AUTH_SERVER, + + THIRD_PARTY, + + APPLICATION, + + UNKNOWN + } + + public interface Visitor { + T visitCustomAuthServer(); + + T visitThirdParty(); + + T visitApplication(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/Client.java b/src/main/java/com/auth0/client/mgmt/types/Client.java index 6ff57f2f1..ce2cb3645 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Client.java +++ b/src/main/java/com/auth0/client/mgmt/types/Client.java @@ -132,6 +132,8 @@ public final class Client { private final Optional expressConfiguration; + private final Optional b2BIntegrationConfiguration; + private final Optional myOrganizationConfiguration; private final Optional identityAssertionAuthorizationGrant; @@ -209,6 +211,7 @@ private Client( OptionalNullable parRequestExpiry, Optional tokenQuota, Optional expressConfiguration, + Optional b2BIntegrationConfiguration, Optional myOrganizationConfiguration, Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, @@ -274,6 +277,7 @@ private Client( this.parRequestExpiry = parRequestExpiry; this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -684,6 +688,11 @@ public Optional getExpressConfiguration() { return expressConfiguration; } + @JsonProperty("b2b_integration_configuration") + public Optional getB2BIntegrationConfiguration() { + return b2BIntegrationConfiguration; + } + @JsonProperty("my_organization_configuration") public Optional getMyOrganizationConfiguration() { return myOrganizationConfiguration; @@ -858,6 +867,7 @@ private boolean equalTo(Client other) { && parRequestExpiry.equals(other.parRequestExpiry) && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) + && b2BIntegrationConfiguration.equals(other.b2BIntegrationConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) @@ -927,6 +937,7 @@ public int hashCode() { this.parRequestExpiry, this.tokenQuota, this.expressConfiguration, + this.b2BIntegrationConfiguration, this.myOrganizationConfiguration, this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, @@ -1059,6 +1070,8 @@ public static final class Builder { private Optional expressConfiguration = Optional.empty(); + private Optional b2BIntegrationConfiguration = Optional.empty(); + private Optional myOrganizationConfiguration = Optional.empty(); private Optional identityAssertionAuthorizationGrant = Optional.empty(); @@ -1140,6 +1153,7 @@ public Builder from(Client other) { parRequestExpiry(other.getParRequestExpiry()); tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); + b2BIntegrationConfiguration(other.getB2BIntegrationConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); @@ -2014,6 +2028,17 @@ public Builder expressConfiguration(ExpressConfiguration expressConfiguration) { return this; } + @JsonSetter(value = "b2b_integration_configuration", nulls = Nulls.SKIP) + public Builder b2BIntegrationConfiguration(Optional b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; + return this; + } + + public Builder b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = Optional.ofNullable(b2BIntegrationConfiguration); + return this; + } + @JsonSetter(value = "my_organization_configuration", nulls = Nulls.SKIP) public Builder myOrganizationConfiguration( Optional myOrganizationConfiguration) { @@ -2196,6 +2221,7 @@ public Client build() { parRequestExpiry, tokenQuota, expressConfiguration, + b2BIntegrationConfiguration, myOrganizationConfiguration, identityAssertionAuthorizationGrant, thirdPartySecurityMode, diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java index 9be55678e..0bfdbff4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java @@ -44,9 +44,6 @@ public final class ClientAppTypeEnum { public static final ClientAppTypeEnum RMS = new ClientAppTypeEnum(Value.RMS, "rms"); - public static final ClientAppTypeEnum B2B_INTEGRATION = - new ClientAppTypeEnum(Value.B2B_INTEGRATION, "b2b_integration"); - public static final ClientAppTypeEnum CLOUDBEES = new ClientAppTypeEnum(Value.CLOUDBEES, "cloudbees"); public static final ClientAppTypeEnum SALESFORCE = new ClientAppTypeEnum(Value.SALESFORCE, "salesforce"); @@ -130,8 +127,6 @@ public T visit(Visitor visitor) { return visitor.visitEchosign(); case RMS: return visitor.visitRms(); - case B2B_INTEGRATION: - return visitor.visitB2BIntegration(); case CLOUDBEES: return visitor.visitCloudbees(); case SALESFORCE: @@ -191,8 +186,6 @@ public static ClientAppTypeEnum valueOf(String value) { return ECHOSIGN; case "rms": return RMS; - case "b2b_integration": - return B2B_INTEGRATION; case "cloudbees": return CLOUDBEES; case "salesforce": @@ -227,8 +220,6 @@ public enum Value { EXPRESS_CONFIGURATION, - B2B_INTEGRATION, - RMS, BOX, @@ -283,8 +274,6 @@ public interface Visitor { T visitExpressConfiguration(); - T visitB2BIntegration(); - T visitRms(); T visitBox(); diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionDeletionBehaviorEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionDeletionBehaviorEnum.java new file mode 100644 index 000000000..4dbe7c858 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionDeletionBehaviorEnum.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 ConnectionDeletionBehaviorEnum { + public static final ConnectionDeletionBehaviorEnum ALLOW = new ConnectionDeletionBehaviorEnum(Value.ALLOW, "allow"); + + public static final ConnectionDeletionBehaviorEnum ALLOW_IF_EMPTY = + new ConnectionDeletionBehaviorEnum(Value.ALLOW_IF_EMPTY, "allow_if_empty"); + + private final Value value; + + private final String string; + + ConnectionDeletionBehaviorEnum(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 ConnectionDeletionBehaviorEnum + && this.string.equals(((ConnectionDeletionBehaviorEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ALLOW: + return visitor.visitAllow(); + case ALLOW_IF_EMPTY: + return visitor.visitAllowIfEmpty(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionDeletionBehaviorEnum valueOf(String value) { + switch (value) { + case "allow": + return ALLOW; + case "allow_if_empty": + return ALLOW_IF_EMPTY; + default: + return new ConnectionDeletionBehaviorEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ALLOW, + + ALLOW_IF_EMPTY, + + UNKNOWN + } + + public interface Visitor { + T visitAllow(); + + T visitAllowIfEmpty(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java index b57a5be42..7b53e05d5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java @@ -11,6 +11,9 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum BAIDU = new ConnectionIdentityProviderEnum(Value.BAIDU, "baidu"); + public static final ConnectionIdentityProviderEnum SUPABASE_MCP = + new ConnectionIdentityProviderEnum(Value.SUPABASE_MCP, "supabase-mcp"); + public static final ConnectionIdentityProviderEnum BITLY = new ConnectionIdentityProviderEnum(Value.BITLY, "bitly"); public static final ConnectionIdentityProviderEnum PAYPAL_SANDBOX = @@ -18,6 +21,12 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum SAMLP = new ConnectionIdentityProviderEnum(Value.SAMLP, "samlp"); + public static final ConnectionIdentityProviderEnum GUSTO_MCP = + new ConnectionIdentityProviderEnum(Value.GUSTO_MCP, "gusto-mcp"); + + public static final ConnectionIdentityProviderEnum GITLAB_MCP = + new ConnectionIdentityProviderEnum(Value.GITLAB_MCP, "gitlab-mcp"); + public static final ConnectionIdentityProviderEnum DROPBOX = new ConnectionIdentityProviderEnum(Value.DROPBOX, "dropbox"); @@ -30,6 +39,9 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum PINGFEDERATE = new ConnectionIdentityProviderEnum(Value.PINGFEDERATE, "pingfederate"); + public static final ConnectionIdentityProviderEnum XERO_MCP = + new ConnectionIdentityProviderEnum(Value.XERO_MCP, "xero-mcp"); + public static final ConnectionIdentityProviderEnum THIRTYSEVENSIGNALS = new ConnectionIdentityProviderEnum(Value.THIRTYSEVENSIGNALS, "thirtysevensignals"); @@ -37,6 +49,9 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum OIDC = new ConnectionIdentityProviderEnum(Value.OIDC, "oidc"); + public static final ConnectionIdentityProviderEnum FIGMA_MCP = + new ConnectionIdentityProviderEnum(Value.FIGMA_MCP, "figma-mcp"); + public static final ConnectionIdentityProviderEnum SALESFORCE_COMMUNITY = new ConnectionIdentityProviderEnum(Value.SALESFORCE_COMMUNITY, "salesforce-community"); @@ -70,17 +85,32 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum PAYPAL = new ConnectionIdentityProviderEnum(Value.PAYPAL, "paypal"); + public static final ConnectionIdentityProviderEnum HUBSPOT_MCP = + new ConnectionIdentityProviderEnum(Value.HUBSPOT_MCP, "hubspot-mcp"); + + public static final ConnectionIdentityProviderEnum LINEAR_MCP = + new ConnectionIdentityProviderEnum(Value.LINEAR_MCP, "linear-mcp"); + public static final ConnectionIdentityProviderEnum LINKEDIN = new ConnectionIdentityProviderEnum(Value.LINKEDIN, "linkedin"); + public static final ConnectionIdentityProviderEnum ATLASSIAN_MCP = + new ConnectionIdentityProviderEnum(Value.ATLASSIAN_MCP, "atlassian-mcp"); + public static final ConnectionIdentityProviderEnum GOOGLE_APPS = new ConnectionIdentityProviderEnum(Value.GOOGLE_APPS, "google-apps"); public static final ConnectionIdentityProviderEnum DWOLLA = new ConnectionIdentityProviderEnum(Value.DWOLLA, "dwolla"); + public static final ConnectionIdentityProviderEnum NOTION_MCP = + new ConnectionIdentityProviderEnum(Value.NOTION_MCP, "notion-mcp"); + public static final ConnectionIdentityProviderEnum SHOP = new ConnectionIdentityProviderEnum(Value.SHOP, "shop"); + public static final ConnectionIdentityProviderEnum CLOUDFLARE_MCP = + new ConnectionIdentityProviderEnum(Value.CLOUDFLARE_MCP, "cloudflare-mcp"); + public static final ConnectionIdentityProviderEnum AUTH0OIDC = new ConnectionIdentityProviderEnum(Value.AUTH0OIDC, "auth0-oidc"); @@ -91,12 +121,18 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum AUTH0 = new ConnectionIdentityProviderEnum(Value.AUTH0, "auth0"); + public static final ConnectionIdentityProviderEnum HEROKU_MCP = + new ConnectionIdentityProviderEnum(Value.HEROKU_MCP, "heroku-mcp"); + public static final ConnectionIdentityProviderEnum GOOGLE_OAUTH2 = new ConnectionIdentityProviderEnum(Value.GOOGLE_OAUTH2, "google-oauth2"); public static final ConnectionIdentityProviderEnum WORDPRESS = new ConnectionIdentityProviderEnum(Value.WORDPRESS, "wordpress"); + public static final ConnectionIdentityProviderEnum ASANA_MCP = + new ConnectionIdentityProviderEnum(Value.ASANA_MCP, "asana-mcp"); + public static final ConnectionIdentityProviderEnum EXACT = new ConnectionIdentityProviderEnum(Value.EXACT, "exact"); public static final ConnectionIdentityProviderEnum FITBIT = @@ -105,15 +141,27 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum EVERNOTE = new ConnectionIdentityProviderEnum(Value.EVERNOTE, "evernote"); + public static final ConnectionIdentityProviderEnum SLACK_MCP = + new ConnectionIdentityProviderEnum(Value.SLACK_MCP, "slack-mcp"); + public static final ConnectionIdentityProviderEnum SHAREPOINT = new ConnectionIdentityProviderEnum(Value.SHAREPOINT, "sharepoint"); public static final ConnectionIdentityProviderEnum SHOPIFY = new ConnectionIdentityProviderEnum(Value.SHOPIFY, "shopify"); + public static final ConnectionIdentityProviderEnum VERCEL_MCP = + new ConnectionIdentityProviderEnum(Value.VERCEL_MCP, "vercel-mcp"); + public static final ConnectionIdentityProviderEnum SALESFORCE_SANDBOX = new ConnectionIdentityProviderEnum(Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); + public static final ConnectionIdentityProviderEnum INTERCOM_MCP = + new ConnectionIdentityProviderEnum(Value.INTERCOM_MCP, "intercom-mcp"); + + public static final ConnectionIdentityProviderEnum SENTRY_MCP = + new ConnectionIdentityProviderEnum(Value.SENTRY_MCP, "sentry-mcp"); + public static final ConnectionIdentityProviderEnum FACEBOOK = new ConnectionIdentityProviderEnum(Value.FACEBOOK, "facebook"); @@ -127,6 +175,9 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum LINE = new ConnectionIdentityProviderEnum(Value.LINE, "line"); + public static final ConnectionIdentityProviderEnum DOCUSIGN_MCP = + new ConnectionIdentityProviderEnum(Value.DOCUSIGN_MCP, "docusign-mcp"); + public static final ConnectionIdentityProviderEnum UNTAPPD = new ConnectionIdentityProviderEnum(Value.UNTAPPD, "untappd"); @@ -136,6 +187,9 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum SALESFORCE = new ConnectionIdentityProviderEnum(Value.SALESFORCE, "salesforce"); + public static final ConnectionIdentityProviderEnum PAGERDUTY_MCP = + new ConnectionIdentityProviderEnum(Value.PAGERDUTY_MCP, "pagerduty-mcp"); + public static final ConnectionIdentityProviderEnum BITBUCKET = new ConnectionIdentityProviderEnum(Value.BITBUCKET, "bitbucket"); @@ -190,12 +244,18 @@ public T visit(Visitor visitor) { return visitor.visitAd(); case BAIDU: return visitor.visitBaidu(); + case SUPABASE_MCP: + return visitor.visitSupabaseMcp(); case BITLY: return visitor.visitBitly(); case PAYPAL_SANDBOX: return visitor.visitPaypalSandbox(); case SAMLP: return visitor.visitSamlp(); + case GUSTO_MCP: + return visitor.visitGustoMcp(); + case GITLAB_MCP: + return visitor.visitGitlabMcp(); case DROPBOX: return visitor.visitDropbox(); case VKONTAKTE: @@ -204,12 +264,16 @@ public T visit(Visitor visitor) { return visitor.visitInstagram(); case PINGFEDERATE: return visitor.visitPingfederate(); + case XERO_MCP: + return visitor.visitXeroMcp(); case THIRTYSEVENSIGNALS: return visitor.visitThirtysevensignals(); case WAAD: return visitor.visitWaad(); case OIDC: return visitor.visitOidc(); + case FIGMA_MCP: + return visitor.visitFigmaMcp(); case SALESFORCE_COMMUNITY: return visitor.visitSalesforceCommunity(); case DACCOUNT: @@ -236,14 +300,24 @@ public T visit(Visitor visitor) { return visitor.visitCustom(); case PAYPAL: return visitor.visitPaypal(); + case HUBSPOT_MCP: + return visitor.visitHubspotMcp(); + case LINEAR_MCP: + return visitor.visitLinearMcp(); case LINKEDIN: return visitor.visitLinkedin(); + case ATLASSIAN_MCP: + return visitor.visitAtlassianMcp(); case GOOGLE_APPS: return visitor.visitGoogleApps(); case DWOLLA: return visitor.visitDwolla(); + case NOTION_MCP: + return visitor.visitNotionMcp(); case SHOP: return visitor.visitShop(); + case CLOUDFLARE_MCP: + return visitor.visitCloudflareMcp(); case AUTH0OIDC: return visitor.visitAuth0Oidc(); case PLANNINGCENTER: @@ -252,22 +326,34 @@ public T visit(Visitor visitor) { return visitor.visitOkta(); case AUTH0: return visitor.visitAuth0(); + case HEROKU_MCP: + return visitor.visitHerokuMcp(); case GOOGLE_OAUTH2: return visitor.visitGoogleOauth2(); case WORDPRESS: return visitor.visitWordpress(); + case ASANA_MCP: + return visitor.visitAsanaMcp(); case EXACT: return visitor.visitExact(); case FITBIT: return visitor.visitFitbit(); case EVERNOTE: return visitor.visitEvernote(); + case SLACK_MCP: + return visitor.visitSlackMcp(); case SHAREPOINT: return visitor.visitSharepoint(); case SHOPIFY: return visitor.visitShopify(); + case VERCEL_MCP: + return visitor.visitVercelMcp(); case SALESFORCE_SANDBOX: return visitor.visitSalesforceSandbox(); + case INTERCOM_MCP: + return visitor.visitIntercomMcp(); + case SENTRY_MCP: + return visitor.visitSentryMcp(); case FACEBOOK: return visitor.visitFacebook(); case APPLE: @@ -278,12 +364,16 @@ public T visit(Visitor visitor) { return visitor.visitAmazon(); case LINE: return visitor.visitLine(); + case DOCUSIGN_MCP: + return visitor.visitDocusignMcp(); case UNTAPPD: return visitor.visitUntappd(); case GITHUB: return visitor.visitGithub(); case SALESFORCE: return visitor.visitSalesforce(); + case PAGERDUTY_MCP: + return visitor.visitPagerdutyMcp(); case BITBUCKET: return visitor.visitBitbucket(); case OFFICE365: @@ -309,12 +399,18 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return AD; case "baidu": return BAIDU; + case "supabase-mcp": + return SUPABASE_MCP; case "bitly": return BITLY; case "paypal-sandbox": return PAYPAL_SANDBOX; case "samlp": return SAMLP; + case "gusto-mcp": + return GUSTO_MCP; + case "gitlab-mcp": + return GITLAB_MCP; case "dropbox": return DROPBOX; case "vkontakte": @@ -323,12 +419,16 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return INSTAGRAM; case "pingfederate": return PINGFEDERATE; + case "xero-mcp": + return XERO_MCP; case "thirtysevensignals": return THIRTYSEVENSIGNALS; case "waad": return WAAD; case "oidc": return OIDC; + case "figma-mcp": + return FIGMA_MCP; case "salesforce-community": return SALESFORCE_COMMUNITY; case "daccount": @@ -355,14 +455,24 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return CUSTOM; case "paypal": return PAYPAL; + case "hubspot-mcp": + return HUBSPOT_MCP; + case "linear-mcp": + return LINEAR_MCP; case "linkedin": return LINKEDIN; + case "atlassian-mcp": + return ATLASSIAN_MCP; case "google-apps": return GOOGLE_APPS; case "dwolla": return DWOLLA; + case "notion-mcp": + return NOTION_MCP; case "shop": return SHOP; + case "cloudflare-mcp": + return CLOUDFLARE_MCP; case "auth0-oidc": return AUTH0OIDC; case "planningcenter": @@ -371,22 +481,34 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return OKTA; case "auth0": return AUTH0; + case "heroku-mcp": + return HEROKU_MCP; case "google-oauth2": return GOOGLE_OAUTH2; case "wordpress": return WORDPRESS; + case "asana-mcp": + return ASANA_MCP; case "exact": return EXACT; case "fitbit": return FITBIT; case "evernote": return EVERNOTE; + case "slack-mcp": + return SLACK_MCP; case "sharepoint": return SHAREPOINT; case "shopify": return SHOPIFY; + case "vercel-mcp": + return VERCEL_MCP; case "salesforce-sandbox": return SALESFORCE_SANDBOX; + case "intercom-mcp": + return INTERCOM_MCP; + case "sentry-mcp": + return SENTRY_MCP; case "facebook": return FACEBOOK; case "apple": @@ -397,12 +519,16 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return AMAZON; case "line": return LINE; + case "docusign-mcp": + return DOCUSIGN_MCP; case "untappd": return UNTAPPD; case "github": return GITHUB; case "salesforce": return SALESFORCE; + case "pagerduty-mcp": + return PAGERDUTY_MCP; case "bitbucket": return BITBUCKET; case "office365": @@ -531,6 +657,42 @@ public enum Value { YANDEX, + NOTION_MCP, + + ASANA_MCP, + + ATLASSIAN_MCP, + + CLOUDFLARE_MCP, + + DOCUSIGN_MCP, + + FIGMA_MCP, + + GITLAB_MCP, + + GUSTO_MCP, + + HEROKU_MCP, + + HUBSPOT_MCP, + + INTERCOM_MCP, + + LINEAR_MCP, + + PAGERDUTY_MCP, + + SENTRY_MCP, + + SLACK_MCP, + + SUPABASE_MCP, + + VERCEL_MCP, + + XERO_MCP, + UNKNOWN } @@ -645,6 +807,42 @@ public interface Visitor { T visitYandex(); + T visitNotionMcp(); + + T visitAsanaMcp(); + + T visitAtlassianMcp(); + + T visitCloudflareMcp(); + + T visitDocusignMcp(); + + T visitFigmaMcp(); + + T visitGitlabMcp(); + + T visitGustoMcp(); + + T visitHerokuMcp(); + + T visitHubspotMcp(); + + T visitIntercomMcp(); + + T visitLinearMcp(); + + T visitPagerdutyMcp(); + + T visitSentryMcp(); + + T visitSlackMcp(); + + T visitSupabaseMcp(); + + T visitVercelMcp(); + + T visitXeroMcp(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java index 908131fbb..144a8dd8c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java @@ -37,6 +37,8 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm private final Optional dpopSigningAlg; + private final Optional enablePushedAuthorizationRequests; + private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -49,6 +51,8 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm private final Optional oidcMetadata; + private final Optional pushedAuthorizationRequestEndpoint; + private final Optional scope; private final Optional sendBackChannelNonce; @@ -81,12 +85,14 @@ private ConnectionOptionsCommonOidc( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, + Optional enablePushedAuthorizationRequests, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, Optional jwksUri, Optional oidcMetadata, + Optional pushedAuthorizationRequestEndpoint, Optional scope, Optional sendBackChannelNonce, Optional setUserRootAttributes, @@ -105,12 +111,14 @@ private ConnectionOptionsCommonOidc( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; this.jwksUri = jwksUri; this.oidcMetadata = oidcMetadata; + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; this.scope = scope; this.sendBackChannelNonce = sendBackChannelNonce; this.setUserRootAttributes = setUserRootAttributes; @@ -161,6 +169,12 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } + @JsonProperty("enable_pushed_authorization_requests") + @java.lang.Override + public Optional getEnablePushedAuthorizationRequests() { + return enablePushedAuthorizationRequests; + } + @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -201,6 +215,12 @@ public Optional getOidcMetadata() { return oidcMetadata; } + @JsonProperty("pushed_authorization_request_endpoint") + @java.lang.Override + public Optional getPushedAuthorizationRequestEndpoint() { + return pushedAuthorizationRequestEndpoint; + } + @JsonProperty("scope") @java.lang.Override public Optional getScope() { @@ -322,12 +342,14 @@ private boolean equalTo(ConnectionOptionsCommonOidc other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) + && enablePushedAuthorizationRequests.equals(other.enablePushedAuthorizationRequests) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) && jwksUri.equals(other.jwksUri) && oidcMetadata.equals(other.oidcMetadata) + && pushedAuthorizationRequestEndpoint.equals(other.pushedAuthorizationRequestEndpoint) && scope.equals(other.scope) && sendBackChannelNonce.equals(other.sendBackChannelNonce) && setUserRootAttributes.equals(other.setUserRootAttributes) @@ -350,12 +372,14 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, + this.enablePushedAuthorizationRequests, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, this.issuer, this.jwksUri, this.oidcMetadata, + this.pushedAuthorizationRequestEndpoint, this.scope, this.sendBackChannelNonce, this.setUserRootAttributes, @@ -411,6 +435,10 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); + _FinalStage enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests); + + _FinalStage enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests); + _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -443,6 +471,10 @@ _FinalStage idTokenSignedResponseAlgs( _FinalStage oidcMetadata(ConnectionOptionsOidcMetadata oidcMetadata); + _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint); + + _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint); + _FinalStage scope(Optional scope); _FinalStage scope(String scope); @@ -545,6 +577,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional scope = Optional.empty(); + private Optional pushedAuthorizationRequestEndpoint = Optional.empty(); + private Optional oidcMetadata = Optional.empty(); private Optional jwksUri = Optional.empty(); @@ -558,6 +592,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); + private Optional enablePushedAuthorizationRequests = Optional.empty(); + private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -581,12 +617,14 @@ public Builder from(ConnectionOptionsCommonOidc other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); + enablePushedAuthorizationRequests(other.getEnablePushedAuthorizationRequests()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); jwksUri(other.getJwksUri()); oidcMetadata(other.getOidcMetadata()); + pushedAuthorizationRequestEndpoint(other.getPushedAuthorizationRequestEndpoint()); scope(other.getScope()); sendBackChannelNonce(other.getSendBackChannelNonce()); setUserRootAttributes(other.getSetUserRootAttributes()); @@ -835,6 +873,19 @@ public _FinalStage scope(Optional scope) { return this; } + @java.lang.Override + public _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = Optional.ofNullable(pushedAuthorizationRequestEndpoint); + return this; + } + + @java.lang.Override + @JsonSetter(value = "pushed_authorization_request_endpoint", nulls = Nulls.SKIP) + public _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; + return this; + } + @java.lang.Override public _FinalStage oidcMetadata(ConnectionOptionsOidcMetadata oidcMetadata) { this.oidcMetadata = Optional.ofNullable(oidcMetadata); @@ -940,6 +991,19 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } + @java.lang.Override + public _FinalStage enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = Optional.ofNullable(enablePushedAuthorizationRequests); + return this; + } + + @java.lang.Override + @JsonSetter(value = "enable_pushed_authorization_requests", nulls = Nulls.SKIP) + public _FinalStage enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; + return this; + } + @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1014,12 +1078,14 @@ public ConnectionOptionsCommonOidc build() { connectionSettings, domainAliases, dpopSigningAlg, + enablePushedAuthorizationRequests, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, issuer, jwksUri, oidcMetadata, + pushedAuthorizationRequestEndpoint, scope, sendBackChannelNonce, setUserRootAttributes, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java index ab6311bbb..97784d027 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java @@ -37,6 +37,8 @@ public final class ConnectionOptionsOidc implements IConnectionOptionsCommonOidc private final Optional dpopSigningAlg; + private final Optional enablePushedAuthorizationRequests; + private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -49,6 +51,8 @@ public final class ConnectionOptionsOidc implements IConnectionOptionsCommonOidc private final Optional oidcMetadata; + private final Optional pushedAuthorizationRequestEndpoint; + private final Optional scope; private final Optional sendBackChannelNonce; @@ -89,12 +93,14 @@ private ConnectionOptionsOidc( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, + Optional enablePushedAuthorizationRequests, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, Optional jwksUri, Optional oidcMetadata, + Optional pushedAuthorizationRequestEndpoint, Optional scope, Optional sendBackChannelNonce, Optional setUserRootAttributes, @@ -117,12 +123,14 @@ private ConnectionOptionsOidc( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; this.jwksUri = jwksUri; this.oidcMetadata = oidcMetadata; + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; this.scope = scope; this.sendBackChannelNonce = sendBackChannelNonce; this.setUserRootAttributes = setUserRootAttributes; @@ -177,6 +185,12 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } + @JsonProperty("enable_pushed_authorization_requests") + @java.lang.Override + public Optional getEnablePushedAuthorizationRequests() { + return enablePushedAuthorizationRequests; + } + @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -217,6 +231,12 @@ public Optional getOidcMetadata() { return oidcMetadata; } + @JsonProperty("pushed_authorization_request_endpoint") + @java.lang.Override + public Optional getPushedAuthorizationRequestEndpoint() { + return pushedAuthorizationRequestEndpoint; + } + @JsonProperty("scope") @java.lang.Override public Optional getScope() { @@ -359,12 +379,14 @@ private boolean equalTo(ConnectionOptionsOidc other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) + && enablePushedAuthorizationRequests.equals(other.enablePushedAuthorizationRequests) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) && jwksUri.equals(other.jwksUri) && oidcMetadata.equals(other.oidcMetadata) + && pushedAuthorizationRequestEndpoint.equals(other.pushedAuthorizationRequestEndpoint) && scope.equals(other.scope) && sendBackChannelNonce.equals(other.sendBackChannelNonce) && setUserRootAttributes.equals(other.setUserRootAttributes) @@ -391,12 +413,14 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, + this.enablePushedAuthorizationRequests, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, this.issuer, this.jwksUri, this.oidcMetadata, + this.pushedAuthorizationRequestEndpoint, this.scope, this.sendBackChannelNonce, this.setUserRootAttributes, @@ -456,6 +480,10 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); + _FinalStage enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests); + + _FinalStage enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests); + _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -488,6 +516,10 @@ _FinalStage idTokenSignedResponseAlgs( _FinalStage oidcMetadata(ConnectionOptionsOidcMetadata oidcMetadata); + _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint); + + _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint); + _FinalStage scope(Optional scope); _FinalStage scope(String scope); @@ -614,6 +646,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional scope = Optional.empty(); + private Optional pushedAuthorizationRequestEndpoint = Optional.empty(); + private Optional oidcMetadata = Optional.empty(); private Optional jwksUri = Optional.empty(); @@ -627,6 +661,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); + private Optional enablePushedAuthorizationRequests = Optional.empty(); + private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -650,12 +686,14 @@ public Builder from(ConnectionOptionsOidc other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); + enablePushedAuthorizationRequests(other.getEnablePushedAuthorizationRequests()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); jwksUri(other.getJwksUri()); oidcMetadata(other.getOidcMetadata()); + pushedAuthorizationRequestEndpoint(other.getPushedAuthorizationRequestEndpoint()); scope(other.getScope()); sendBackChannelNonce(other.getSendBackChannelNonce()); setUserRootAttributes(other.getSetUserRootAttributes()); @@ -960,6 +998,19 @@ public _FinalStage scope(Optional scope) { return this; } + @java.lang.Override + public _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = Optional.ofNullable(pushedAuthorizationRequestEndpoint); + return this; + } + + @java.lang.Override + @JsonSetter(value = "pushed_authorization_request_endpoint", nulls = Nulls.SKIP) + public _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; + return this; + } + @java.lang.Override public _FinalStage oidcMetadata(ConnectionOptionsOidcMetadata oidcMetadata) { this.oidcMetadata = Optional.ofNullable(oidcMetadata); @@ -1065,6 +1116,19 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } + @java.lang.Override + public _FinalStage enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = Optional.ofNullable(enablePushedAuthorizationRequests); + return this; + } + + @java.lang.Override + @JsonSetter(value = "enable_pushed_authorization_requests", nulls = Nulls.SKIP) + public _FinalStage enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; + return this; + } + @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1139,12 +1203,14 @@ public ConnectionOptionsOidc build() { connectionSettings, domainAliases, dpopSigningAlg, + enablePushedAuthorizationRequests, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, issuer, jwksUri, oidcMetadata, + pushedAuthorizationRequestEndpoint, scope, sendBackChannelNonce, setUserRootAttributes, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java index 58ddf0c86..6378dd21e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java @@ -60,6 +60,8 @@ public final class ConnectionOptionsOidcMetadata { private final Optional opTosUri; + private final Optional pushedAuthorizationRequestEndpoint; + private final Optional registrationEndpoint; private final Optional> requestObjectEncryptionAlgValuesSupported; @@ -72,6 +74,8 @@ public final class ConnectionOptionsOidcMetadata { private final Optional requestUriParameterSupported; + private final Optional requirePushedAuthorizationRequests; + private final Optional requireRequestUriRegistration; private final Optional> responseModesSupported; @@ -120,12 +124,14 @@ private ConnectionOptionsOidcMetadata( String jwksUri, Optional opPolicyUri, Optional opTosUri, + Optional pushedAuthorizationRequestEndpoint, Optional registrationEndpoint, Optional> requestObjectEncryptionAlgValuesSupported, Optional> requestObjectEncryptionEncValuesSupported, Optional> requestObjectSigningAlgValuesSupported, Optional requestParameterSupported, Optional requestUriParameterSupported, + Optional requirePushedAuthorizationRequests, Optional requireRequestUriRegistration, Optional> responseModesSupported, Optional> responseTypesSupported, @@ -158,12 +164,14 @@ private ConnectionOptionsOidcMetadata( this.jwksUri = jwksUri; this.opPolicyUri = opPolicyUri; this.opTosUri = opTosUri; + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; this.registrationEndpoint = registrationEndpoint; this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; this.requestParameterSupported = requestParameterSupported; this.requestUriParameterSupported = requestUriParameterSupported; + this.requirePushedAuthorizationRequests = requirePushedAuthorizationRequests; this.requireRequestUriRegistration = requireRequestUriRegistration; this.responseModesSupported = responseModesSupported; this.responseTypesSupported = responseTypesSupported; @@ -266,6 +274,11 @@ public Optional getOpTosUri() { return opTosUri; } + @JsonProperty("pushed_authorization_request_endpoint") + public Optional getPushedAuthorizationRequestEndpoint() { + return pushedAuthorizationRequestEndpoint; + } + @JsonProperty("registration_endpoint") public Optional getRegistrationEndpoint() { return registrationEndpoint; @@ -296,6 +309,11 @@ public Optional getRequestUriParameterSupported() { return requestUriParameterSupported; } + @JsonProperty("require_pushed_authorization_requests") + public Optional getRequirePushedAuthorizationRequests() { + return requirePushedAuthorizationRequests; + } + @JsonProperty("require_request_uri_registration") public Optional getRequireRequestUriRegistration() { return requireRequestUriRegistration; @@ -405,12 +423,14 @@ private boolean equalTo(ConnectionOptionsOidcMetadata other) { && jwksUri.equals(other.jwksUri) && opPolicyUri.equals(other.opPolicyUri) && opTosUri.equals(other.opTosUri) + && pushedAuthorizationRequestEndpoint.equals(other.pushedAuthorizationRequestEndpoint) && registrationEndpoint.equals(other.registrationEndpoint) && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) && requestParameterSupported.equals(other.requestParameterSupported) && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requirePushedAuthorizationRequests.equals(other.requirePushedAuthorizationRequests) && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) && responseModesSupported.equals(other.responseModesSupported) && responseTypesSupported.equals(other.responseTypesSupported) @@ -447,12 +467,14 @@ public int hashCode() { this.jwksUri, this.opPolicyUri, this.opTosUri, + this.pushedAuthorizationRequestEndpoint, this.registrationEndpoint, this.requestObjectEncryptionAlgValuesSupported, this.requestObjectEncryptionEncValuesSupported, this.requestObjectSigningAlgValuesSupported, this.requestParameterSupported, this.requestUriParameterSupported, + this.requirePushedAuthorizationRequests, this.requireRequestUriRegistration, this.responseModesSupported, this.responseTypesSupported, @@ -557,6 +579,10 @@ public interface _FinalStage { _FinalStage opTosUri(String opTosUri); + _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint); + + _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint); + _FinalStage registrationEndpoint(Optional registrationEndpoint); _FinalStage registrationEndpoint(String registrationEndpoint); @@ -584,6 +610,10 @@ _FinalStage requestObjectSigningAlgValuesSupported( _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + _FinalStage requirePushedAuthorizationRequests(Optional requirePushedAuthorizationRequests); + + _FinalStage requirePushedAuthorizationRequests(Boolean requirePushedAuthorizationRequests); + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); @@ -682,6 +712,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional requireRequestUriRegistration = Optional.empty(); + private Optional requirePushedAuthorizationRequests = Optional.empty(); + private Optional requestUriParameterSupported = Optional.empty(); private Optional requestParameterSupported = Optional.empty(); @@ -694,6 +726,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional registrationEndpoint = Optional.empty(); + private Optional pushedAuthorizationRequestEndpoint = Optional.empty(); + private Optional opTosUri = Optional.empty(); private Optional opPolicyUri = Optional.empty(); @@ -746,12 +780,14 @@ public Builder from(ConnectionOptionsOidcMetadata other) { jwksUri(other.getJwksUri()); opPolicyUri(other.getOpPolicyUri()); opTosUri(other.getOpTosUri()); + pushedAuthorizationRequestEndpoint(other.getPushedAuthorizationRequestEndpoint()); registrationEndpoint(other.getRegistrationEndpoint()); requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); requestParameterSupported(other.getRequestParameterSupported()); requestUriParameterSupported(other.getRequestUriParameterSupported()); + requirePushedAuthorizationRequests(other.getRequirePushedAuthorizationRequests()); requireRequestUriRegistration(other.getRequireRequestUriRegistration()); responseModesSupported(other.getResponseModesSupported()); responseTypesSupported(other.getResponseTypesSupported()); @@ -1000,6 +1036,19 @@ public _FinalStage requireRequestUriRegistration(Optional requireReques return this; } + @java.lang.Override + public _FinalStage requirePushedAuthorizationRequests(Boolean requirePushedAuthorizationRequests) { + this.requirePushedAuthorizationRequests = Optional.ofNullable(requirePushedAuthorizationRequests); + return this; + } + + @java.lang.Override + @JsonSetter(value = "require_pushed_authorization_requests", nulls = Nulls.SKIP) + public _FinalStage requirePushedAuthorizationRequests(Optional requirePushedAuthorizationRequests) { + this.requirePushedAuthorizationRequests = requirePushedAuthorizationRequests; + return this; + } + @java.lang.Override public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); @@ -1085,6 +1134,19 @@ public _FinalStage registrationEndpoint(Optional registrationEndpoint) { return this; } + @java.lang.Override + public _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = Optional.ofNullable(pushedAuthorizationRequestEndpoint); + return this; + } + + @java.lang.Override + @JsonSetter(value = "pushed_authorization_request_endpoint", nulls = Nulls.SKIP) + public _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; + return this; + } + @java.lang.Override public _FinalStage opTosUri(String opTosUri) { this.opTosUri = Optional.ofNullable(opTosUri); @@ -1300,12 +1362,14 @@ public ConnectionOptionsOidcMetadata build() { jwksUri, opPolicyUri, opTosUri, + pushedAuthorizationRequestEndpoint, registrationEndpoint, requestObjectEncryptionAlgValuesSupported, requestObjectEncryptionEncValuesSupported, requestObjectSigningAlgValuesSupported, requestParameterSupported, requestUriParameterSupported, + requirePushedAuthorizationRequests, requireRequestUriRegistration, responseModesSupported, responseTypesSupported, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java index 19a9e2165..0a030d0bd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java @@ -39,6 +39,8 @@ public final class ConnectionOptionsOkta implements IConnectionOptionsCommon, IC private final Optional dpopSigningAlg; + private final Optional enablePushedAuthorizationRequests; + private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -51,6 +53,8 @@ public final class ConnectionOptionsOkta implements IConnectionOptionsCommon, IC private final Optional oidcMetadata; + private final Optional pushedAuthorizationRequestEndpoint; + private final Optional scope; private final Optional sendBackChannelNonce; @@ -90,12 +94,14 @@ private ConnectionOptionsOkta( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, + Optional enablePushedAuthorizationRequests, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, Optional jwksUri, Optional oidcMetadata, + Optional pushedAuthorizationRequestEndpoint, Optional scope, Optional sendBackChannelNonce, Optional setUserRootAttributes, @@ -118,12 +124,14 @@ private ConnectionOptionsOkta( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; this.jwksUri = jwksUri; this.oidcMetadata = oidcMetadata; + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; this.scope = scope; this.sendBackChannelNonce = sendBackChannelNonce; this.setUserRootAttributes = setUserRootAttributes; @@ -183,6 +191,12 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } + @JsonProperty("enable_pushed_authorization_requests") + @java.lang.Override + public Optional getEnablePushedAuthorizationRequests() { + return enablePushedAuthorizationRequests; + } + @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -223,6 +237,12 @@ public Optional getOidcMetadata() { return oidcMetadata; } + @JsonProperty("pushed_authorization_request_endpoint") + @java.lang.Override + public Optional getPushedAuthorizationRequestEndpoint() { + return pushedAuthorizationRequestEndpoint; + } + @JsonProperty("scope") @java.lang.Override public Optional getScope() { @@ -360,12 +380,14 @@ private boolean equalTo(ConnectionOptionsOkta other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) + && enablePushedAuthorizationRequests.equals(other.enablePushedAuthorizationRequests) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) && jwksUri.equals(other.jwksUri) && oidcMetadata.equals(other.oidcMetadata) + && pushedAuthorizationRequestEndpoint.equals(other.pushedAuthorizationRequestEndpoint) && scope.equals(other.scope) && sendBackChannelNonce.equals(other.sendBackChannelNonce) && setUserRootAttributes.equals(other.setUserRootAttributes) @@ -392,12 +414,14 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, + this.enablePushedAuthorizationRequests, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, this.issuer, this.jwksUri, this.oidcMetadata, + this.pushedAuthorizationRequestEndpoint, this.scope, this.sendBackChannelNonce, this.setUserRootAttributes, @@ -460,6 +484,10 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); + _FinalStage enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests); + + _FinalStage enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests); + _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -492,6 +520,10 @@ _FinalStage idTokenSignedResponseAlgs( _FinalStage oidcMetadata(ConnectionOptionsOidcMetadata oidcMetadata); + _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint); + + _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint); + _FinalStage scope(Optional scope); _FinalStage scope(String scope); @@ -612,6 +644,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional scope = Optional.empty(); + private Optional pushedAuthorizationRequestEndpoint = Optional.empty(); + private Optional oidcMetadata = Optional.empty(); private Optional jwksUri = Optional.empty(); @@ -625,6 +659,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); + private Optional enablePushedAuthorizationRequests = Optional.empty(); + private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -651,12 +687,14 @@ public Builder from(ConnectionOptionsOkta other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); + enablePushedAuthorizationRequests(other.getEnablePushedAuthorizationRequests()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); jwksUri(other.getJwksUri()); oidcMetadata(other.getOidcMetadata()); + pushedAuthorizationRequestEndpoint(other.getPushedAuthorizationRequestEndpoint()); scope(other.getScope()); sendBackChannelNonce(other.getSendBackChannelNonce()); setUserRootAttributes(other.getSetUserRootAttributes()); @@ -947,6 +985,19 @@ public _FinalStage scope(Optional scope) { return this; } + @java.lang.Override + public _FinalStage pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = Optional.ofNullable(pushedAuthorizationRequestEndpoint); + return this; + } + + @java.lang.Override + @JsonSetter(value = "pushed_authorization_request_endpoint", nulls = Nulls.SKIP) + public _FinalStage pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; + return this; + } + @java.lang.Override public _FinalStage oidcMetadata(ConnectionOptionsOidcMetadata oidcMetadata) { this.oidcMetadata = Optional.ofNullable(oidcMetadata); @@ -1052,6 +1103,19 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } + @java.lang.Override + public _FinalStage enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = Optional.ofNullable(enablePushedAuthorizationRequests); + return this; + } + + @java.lang.Override + @JsonSetter(value = "enable_pushed_authorization_requests", nulls = Nulls.SKIP) + public _FinalStage enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; + return this; + } + @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1140,12 +1204,14 @@ public ConnectionOptionsOkta build() { connectionSettings, domainAliases, dpopSigningAlg, + enablePushedAuthorizationRequests, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, issuer, jwksUri, oidcMetadata, + pushedAuthorizationRequestEndpoint, scope, sendBackChannelNonce, setUserRootAttributes, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java index 3f01f6d61..975e677a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java @@ -67,6 +67,8 @@ public final class ConnectionOptionsSaml implements IConnectionOptionsCommonSaml private final Optional disableSignout; + private final Optional discoveryUrl; + private final Optional> fieldsMap; private final Optional globalTokenRevocationJwtIss; @@ -77,6 +79,8 @@ public final class ConnectionOptionsSaml implements IConnectionOptionsCommonSaml private final Optional metadataXml; + private final Optional oidcMetadata; + private final Optional recipientUrl; private final Optional requestTemplate; @@ -113,11 +117,13 @@ private ConnectionOptionsSaml( Optional deflate, Optional destinationUrl, Optional disableSignout, + Optional discoveryUrl, Optional> fieldsMap, Optional globalTokenRevocationJwtIss, Optional globalTokenRevocationJwtSub, Optional metadataUrl, Optional metadataXml, + Optional oidcMetadata, Optional recipientUrl, Optional requestTemplate, Optional signingCert, @@ -146,11 +152,13 @@ private ConnectionOptionsSaml( this.deflate = deflate; this.destinationUrl = destinationUrl; this.disableSignout = disableSignout; + this.discoveryUrl = discoveryUrl; this.fieldsMap = fieldsMap; this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; this.metadataUrl = metadataUrl; this.metadataXml = metadataXml; + this.oidcMetadata = oidcMetadata; this.recipientUrl = recipientUrl; this.requestTemplate = requestTemplate; this.signingCert = signingCert; @@ -289,6 +297,11 @@ public Optional getDisableSignout() { return disableSignout; } + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + @JsonProperty("fieldsMap") public Optional> getFieldsMap() { return fieldsMap; @@ -314,6 +327,11 @@ public Optional getMetadataXml() { return metadataXml; } + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + @JsonProperty("recipientUrl") public Optional getRecipientUrl() { return recipientUrl; @@ -384,11 +402,13 @@ private boolean equalTo(ConnectionOptionsSaml other) { && deflate.equals(other.deflate) && destinationUrl.equals(other.destinationUrl) && disableSignout.equals(other.disableSignout) + && discoveryUrl.equals(other.discoveryUrl) && fieldsMap.equals(other.fieldsMap) && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) && metadataUrl.equals(other.metadataUrl) && metadataXml.equals(other.metadataXml) + && oidcMetadata.equals(other.oidcMetadata) && recipientUrl.equals(other.recipientUrl) && requestTemplate.equals(other.requestTemplate) && signingCert.equals(other.signingCert) @@ -421,11 +441,13 @@ public int hashCode() { this.deflate, this.destinationUrl, this.disableSignout, + this.discoveryUrl, this.fieldsMap, this.globalTokenRevocationJwtIss, this.globalTokenRevocationJwtSub, this.metadataUrl, this.metadataXml, + this.oidcMetadata, this.recipientUrl, this.requestTemplate, this.signingCert, @@ -488,6 +510,8 @@ public static final class Builder { private Optional disableSignout = Optional.empty(); + private Optional discoveryUrl = Optional.empty(); + private Optional> fieldsMap = Optional.empty(); private Optional globalTokenRevocationJwtIss = Optional.empty(); @@ -498,6 +522,8 @@ public static final class Builder { private Optional metadataXml = Optional.empty(); + private Optional oidcMetadata = Optional.empty(); + private Optional recipientUrl = Optional.empty(); private Optional requestTemplate = Optional.empty(); @@ -537,11 +563,13 @@ public Builder from(ConnectionOptionsSaml other) { deflate(other.getDeflate()); destinationUrl(other.getDestinationUrl()); disableSignout(other.getDisableSignout()); + discoveryUrl(other.getDiscoveryUrl()); fieldsMap(other.getFieldsMap()); globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); metadataUrl(other.getMetadataUrl()); metadataXml(other.getMetadataXml()); + oidcMetadata(other.getOidcMetadata()); recipientUrl(other.getRecipientUrl()); requestTemplate(other.getRequestTemplate()); signingCert(other.getSigningCert()); @@ -814,6 +842,17 @@ public Builder disableSignout(Boolean disableSignout) { return this; } + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) public Builder fieldsMap(Optional> fieldsMap) { this.fieldsMap = fieldsMap; @@ -869,6 +908,17 @@ public Builder metadataXml(String metadataXml) { return this; } + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata(Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata(ConnectionOptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) public Builder recipientUrl(Optional recipientUrl) { this.recipientUrl = recipientUrl; @@ -958,11 +1008,13 @@ public ConnectionOptionsSaml build() { deflate, destinationUrl, disableSignout, + discoveryUrl, fieldsMap, globalTokenRevocationJwtIss, globalTokenRevocationJwtSub, metadataUrl, metadataXml, + oidcMetadata, recipientUrl, requestTemplate, signingCert, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java index d7cbc457e..871650f27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java @@ -35,6 +35,8 @@ public final class ConnectionProfile { private final Optional strategyOverrides; + private final Optional provisioning; + private final Optional crossAppAccessResourceApp; private final Map additionalProperties; @@ -47,6 +49,7 @@ private ConnectionProfile( Optional> enabledFeatures, Optional connectionConfig, Optional strategyOverrides, + Optional provisioning, Optional crossAppAccessResourceApp, Map additionalProperties) { this.id = id; @@ -56,6 +59,7 @@ private ConnectionProfile( this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; this.strategyOverrides = strategyOverrides; + this.provisioning = provisioning; this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -95,6 +99,11 @@ public Optional getStrategyOverrides() { return strategyOverrides; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @JsonProperty("cross_app_access_resource_app") public Optional getCrossAppAccessResourceApp() { return crossAppAccessResourceApp; @@ -119,6 +128,7 @@ private boolean equalTo(ConnectionProfile other) { && enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig) && strategyOverrides.equals(other.strategyOverrides) + && provisioning.equals(other.provisioning) && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @@ -132,6 +142,7 @@ public int hashCode() { this.enabledFeatures, this.connectionConfig, this.strategyOverrides, + this.provisioning, this.crossAppAccessResourceApp); } @@ -160,6 +171,8 @@ public static final class Builder { private Optional strategyOverrides = Optional.empty(); + private Optional provisioning = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); @JsonAnySetter @@ -175,6 +188,7 @@ public Builder from(ConnectionProfile other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); strategyOverrides(other.getStrategyOverrides()); + provisioning(other.getProvisioning()); crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -256,6 +270,17 @@ public Builder strategyOverrides(ConnectionProfileStrategyOverrides strategyOver return this; } + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public Builder provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + + public Builder provisioning(ConnectionProfileProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) public Builder crossAppAccessResourceApp( Optional crossAppAccessResourceApp) { @@ -277,6 +302,7 @@ public ConnectionProfile build() { enabledFeatures, connectionConfig, strategyOverrides, + provisioning, crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioning.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioning.java new file mode 100644 index 000000000..c3c95fed2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioning.java @@ -0,0 +1,106 @@ +/** + * 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 = ConnectionProfileProvisioning.Builder.class) +public final class ConnectionProfileProvisioning { + private final Optional scim; + + private final Map additionalProperties; + + private ConnectionProfileProvisioning( + Optional scim, Map additionalProperties) { + this.scim = scim; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("scim") + public Optional getScim() { + return scim; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionProfileProvisioning && equalTo((ConnectionProfileProvisioning) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionProfileProvisioning other) { + return scim.equals(other.scim); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.scim); + } + + @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 scim = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionProfileProvisioning other) { + scim(other.getScim()); + return this; + } + + @JsonSetter(value = "scim", nulls = Nulls.SKIP) + public Builder scim(Optional scim) { + this.scim = scim; + return this; + } + + public Builder scim(ConnectionProfileProvisioningScim scim) { + this.scim = Optional.ofNullable(scim); + return this; + } + + public ConnectionProfileProvisioning build() { + return new ConnectionProfileProvisioning(scim, 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/ConnectionProfileProvisioningScim.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioningScim.java new file mode 100644 index 000000000..a4fee1c74 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioningScim.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; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionProfileProvisioningScim.Builder.class) +public final class ConnectionProfileProvisioningScim { + private final ConnectionProfileProvisioningScimTokens tokens; + + private final Map additionalProperties; + + private ConnectionProfileProvisioningScim( + ConnectionProfileProvisioningScimTokens tokens, Map additionalProperties) { + this.tokens = tokens; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("tokens") + public ConnectionProfileProvisioningScimTokens getTokens() { + return tokens; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionProfileProvisioningScim && equalTo((ConnectionProfileProvisioningScim) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionProfileProvisioningScim other) { + return tokens.equals(other.tokens); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.tokens); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static TokensStage builder() { + return new Builder(); + } + + public interface TokensStage { + _FinalStage tokens(@NotNull ConnectionProfileProvisioningScimTokens tokens); + + Builder from(ConnectionProfileProvisioningScim other); + } + + public interface _FinalStage { + ConnectionProfileProvisioningScim build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements TokensStage, _FinalStage { + private ConnectionProfileProvisioningScimTokens tokens; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ConnectionProfileProvisioningScim other) { + tokens(other.getTokens()); + return this; + } + + @java.lang.Override + @JsonSetter("tokens") + public _FinalStage tokens(@NotNull ConnectionProfileProvisioningScimTokens tokens) { + this.tokens = Objects.requireNonNull(tokens, "tokens must not be null"); + return this; + } + + @java.lang.Override + public ConnectionProfileProvisioningScim build() { + return new ConnectionProfileProvisioningScim(tokens, 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/ConnectionProfileProvisioningScimTokenScopeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioningScimTokenScopeEnum.java new file mode 100644 index 000000000..db42316c9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioningScimTokenScopeEnum.java @@ -0,0 +1,119 @@ +/** + * 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 ConnectionProfileProvisioningScimTokenScopeEnum { + public static final ConnectionProfileProvisioningScimTokenScopeEnum DELETE_USERS = + new ConnectionProfileProvisioningScimTokenScopeEnum(Value.DELETE_USERS, "delete:users"); + + public static final ConnectionProfileProvisioningScimTokenScopeEnum GET_USERS = + new ConnectionProfileProvisioningScimTokenScopeEnum(Value.GET_USERS, "get:users"); + + public static final ConnectionProfileProvisioningScimTokenScopeEnum PUT_USERS = + new ConnectionProfileProvisioningScimTokenScopeEnum(Value.PUT_USERS, "put:users"); + + public static final ConnectionProfileProvisioningScimTokenScopeEnum POST_USERS = + new ConnectionProfileProvisioningScimTokenScopeEnum(Value.POST_USERS, "post:users"); + + public static final ConnectionProfileProvisioningScimTokenScopeEnum PATCH_USERS = + new ConnectionProfileProvisioningScimTokenScopeEnum(Value.PATCH_USERS, "patch:users"); + + private final Value value; + + private final String string; + + ConnectionProfileProvisioningScimTokenScopeEnum(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 ConnectionProfileProvisioningScimTokenScopeEnum + && this.string.equals(((ConnectionProfileProvisioningScimTokenScopeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case DELETE_USERS: + return visitor.visitDeleteUsers(); + case GET_USERS: + return visitor.visitGetUsers(); + case PUT_USERS: + return visitor.visitPutUsers(); + case POST_USERS: + return visitor.visitPostUsers(); + case PATCH_USERS: + return visitor.visitPatchUsers(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionProfileProvisioningScimTokenScopeEnum valueOf(String value) { + switch (value) { + case "delete:users": + return DELETE_USERS; + case "get:users": + return GET_USERS; + case "put:users": + return PUT_USERS; + case "post:users": + return POST_USERS; + case "patch:users": + return PATCH_USERS; + default: + return new ConnectionProfileProvisioningScimTokenScopeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + GET_USERS, + + POST_USERS, + + PATCH_USERS, + + DELETE_USERS, + + PUT_USERS, + + UNKNOWN + } + + public interface Visitor { + T visitGetUsers(); + + T visitPostUsers(); + + T visitPatchUsers(); + + T visitDeleteUsers(); + + T visitPutUsers(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioningScimTokens.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioningScimTokens.java new file mode 100644 index 000000000..c572daa5a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileProvisioningScimTokens.java @@ -0,0 +1,232 @@ +/** + * 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.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.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionProfileProvisioningScimTokens.Builder.class) +public final class ConnectionProfileProvisioningScimTokens { + private final List scopes; + + private final OptionalNullable defaultExpiry; + + private final OptionalNullable maxAllowedExpiry; + + private final Map additionalProperties; + + private ConnectionProfileProvisioningScimTokens( + List scopes, + OptionalNullable defaultExpiry, + OptionalNullable maxAllowedExpiry, + Map additionalProperties) { + this.scopes = scopes; + this.defaultExpiry = defaultExpiry; + this.maxAllowedExpiry = maxAllowedExpiry; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("scopes") + public List getScopes() { + return scopes; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("default_expiry") + public OptionalNullable getDefaultExpiry() { + if (defaultExpiry == null) { + return OptionalNullable.absent(); + } + return defaultExpiry; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("max_allowed_expiry") + public OptionalNullable getMaxAllowedExpiry() { + if (maxAllowedExpiry == null) { + return OptionalNullable.absent(); + } + return maxAllowedExpiry; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("default_expiry") + private OptionalNullable _getDefaultExpiry() { + return defaultExpiry; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("max_allowed_expiry") + private OptionalNullable _getMaxAllowedExpiry() { + return maxAllowedExpiry; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionProfileProvisioningScimTokens + && equalTo((ConnectionProfileProvisioningScimTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionProfileProvisioningScimTokens other) { + return scopes.equals(other.scopes) + && defaultExpiry.equals(other.defaultExpiry) + && maxAllowedExpiry.equals(other.maxAllowedExpiry); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.scopes, this.defaultExpiry, this.maxAllowedExpiry); + } + + @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 scopes = new ArrayList<>(); + + private OptionalNullable defaultExpiry = OptionalNullable.absent(); + + private OptionalNullable maxAllowedExpiry = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionProfileProvisioningScimTokens other) { + scopes(other.getScopes()); + defaultExpiry(other.getDefaultExpiry()); + maxAllowedExpiry(other.getMaxAllowedExpiry()); + return this; + } + + @JsonSetter(value = "scopes", nulls = Nulls.SKIP) + public Builder scopes(List scopes) { + this.scopes.clear(); + if (scopes != null) { + this.scopes.addAll(scopes); + } + return this; + } + + public Builder addScopes(ConnectionProfileProvisioningScimTokenScopeEnum scopes) { + this.scopes.add(scopes); + return this; + } + + public Builder addAllScopes(List scopes) { + if (scopes != null) { + this.scopes.addAll(scopes); + } + return this; + } + + @JsonSetter(value = "default_expiry", nulls = Nulls.SKIP) + public Builder defaultExpiry(@Nullable OptionalNullable defaultExpiry) { + this.defaultExpiry = defaultExpiry; + return this; + } + + public Builder defaultExpiry(Integer defaultExpiry) { + this.defaultExpiry = OptionalNullable.of(defaultExpiry); + return this; + } + + public Builder defaultExpiry(Optional defaultExpiry) { + if (defaultExpiry.isPresent()) { + this.defaultExpiry = OptionalNullable.of(defaultExpiry.get()); + } else { + this.defaultExpiry = OptionalNullable.absent(); + } + return this; + } + + public Builder defaultExpiry(com.auth0.client.mgmt.core.Nullable defaultExpiry) { + if (defaultExpiry.isNull()) { + this.defaultExpiry = OptionalNullable.ofNull(); + } else if (defaultExpiry.isEmpty()) { + this.defaultExpiry = OptionalNullable.absent(); + } else { + this.defaultExpiry = OptionalNullable.of(defaultExpiry.get()); + } + return this; + } + + @JsonSetter(value = "max_allowed_expiry", nulls = Nulls.SKIP) + public Builder maxAllowedExpiry(@Nullable OptionalNullable maxAllowedExpiry) { + this.maxAllowedExpiry = maxAllowedExpiry; + return this; + } + + public Builder maxAllowedExpiry(Integer maxAllowedExpiry) { + this.maxAllowedExpiry = OptionalNullable.of(maxAllowedExpiry); + return this; + } + + public Builder maxAllowedExpiry(Optional maxAllowedExpiry) { + if (maxAllowedExpiry.isPresent()) { + this.maxAllowedExpiry = OptionalNullable.of(maxAllowedExpiry.get()); + } else { + this.maxAllowedExpiry = OptionalNullable.absent(); + } + return this; + } + + public Builder maxAllowedExpiry(com.auth0.client.mgmt.core.Nullable maxAllowedExpiry) { + if (maxAllowedExpiry.isNull()) { + this.maxAllowedExpiry = OptionalNullable.ofNull(); + } else if (maxAllowedExpiry.isEmpty()) { + this.maxAllowedExpiry = OptionalNullable.absent(); + } else { + this.maxAllowedExpiry = OptionalNullable.of(maxAllowedExpiry.get()); + } + return this; + } + + public ConnectionProfileProvisioningScimTokens build() { + return new ConnectionProfileProvisioningScimTokens( + scopes, defaultExpiry, maxAllowedExpiry, 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/ConnectionProfileStrategyOverride.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java index 0298a55e9..d47a90ec5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java @@ -25,14 +25,18 @@ public final class ConnectionProfileStrategyOverride { private final Optional connectionConfig; + private final Optional provisioning; + private final Map additionalProperties; private ConnectionProfileStrategyOverride( Optional> enabledFeatures, Optional connectionConfig, + Optional provisioning, Map additionalProperties) { this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; + this.provisioning = provisioning; this.additionalProperties = additionalProperties; } @@ -46,6 +50,11 @@ public Optional getConnectio return connectionConfig; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -58,12 +67,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(ConnectionProfileStrategyOverride other) { - return enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig); + return enabledFeatures.equals(other.enabledFeatures) + && connectionConfig.equals(other.connectionConfig) + && provisioning.equals(other.provisioning); } @java.lang.Override public int hashCode() { - return Objects.hash(this.enabledFeatures, this.connectionConfig); + return Objects.hash(this.enabledFeatures, this.connectionConfig, this.provisioning); } @java.lang.Override @@ -81,6 +92,8 @@ public static final class Builder { private Optional connectionConfig = Optional.empty(); + private Optional provisioning = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -89,6 +102,7 @@ private Builder() {} public Builder from(ConnectionProfileStrategyOverride other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); + provisioning(other.getProvisioning()); return this; } @@ -114,8 +128,20 @@ public Builder connectionConfig(ConnectionProfileStrategyOverridesConnectionConf return this; } + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public Builder provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + + public Builder provisioning(ConnectionProfileStrategyOverridesProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + public ConnectionProfileStrategyOverride build() { - return new ConnectionProfileStrategyOverride(enabledFeatures, connectionConfig, additionalProperties); + return new ConnectionProfileStrategyOverride( + enabledFeatures, connectionConfig, provisioning, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesProvisioning.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesProvisioning.java new file mode 100644 index 000000000..15f8658b8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesProvisioning.java @@ -0,0 +1,107 @@ +/** + * 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 = ConnectionProfileStrategyOverridesProvisioning.Builder.class) +public final class ConnectionProfileStrategyOverridesProvisioning { + private final Optional scim; + + private final Map additionalProperties; + + private ConnectionProfileStrategyOverridesProvisioning( + Optional scim, Map additionalProperties) { + this.scim = scim; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("scim") + public Optional getScim() { + return scim; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionProfileStrategyOverridesProvisioning + && equalTo((ConnectionProfileStrategyOverridesProvisioning) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionProfileStrategyOverridesProvisioning other) { + return scim.equals(other.scim); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.scim); + } + + @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 scim = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionProfileStrategyOverridesProvisioning other) { + scim(other.getScim()); + return this; + } + + @JsonSetter(value = "scim", nulls = Nulls.SKIP) + public Builder scim(Optional scim) { + this.scim = scim; + return this; + } + + public Builder scim(ConnectionProfileProvisioningScim scim) { + this.scim = Optional.ofNullable(scim); + return this; + } + + public ConnectionProfileStrategyOverridesProvisioning build() { + return new ConnectionProfileStrategyOverridesProvisioning(scim, 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/ConnectionProfileTemplate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java index 2dfd766cd..7c1225b56 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java @@ -33,6 +33,8 @@ public final class ConnectionProfileTemplate { private final Optional strategyOverrides; + private final Optional provisioning; + private final Map additionalProperties; private ConnectionProfileTemplate( @@ -42,6 +44,7 @@ private ConnectionProfileTemplate( Optional> enabledFeatures, Optional connectionConfig, Optional strategyOverrides, + Optional provisioning, Map additionalProperties) { this.name = name; this.organization = organization; @@ -49,6 +52,7 @@ private ConnectionProfileTemplate( this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; this.strategyOverrides = strategyOverrides; + this.provisioning = provisioning; this.additionalProperties = additionalProperties; } @@ -82,6 +86,11 @@ public Optional getStrategyOverrides() { return strategyOverrides; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -99,7 +108,8 @@ private boolean equalTo(ConnectionProfileTemplate other) { && connectionNamePrefixTemplate.equals(other.connectionNamePrefixTemplate) && enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig) - && strategyOverrides.equals(other.strategyOverrides); + && strategyOverrides.equals(other.strategyOverrides) + && provisioning.equals(other.provisioning); } @java.lang.Override @@ -110,7 +120,8 @@ public int hashCode() { this.connectionNamePrefixTemplate, this.enabledFeatures, this.connectionConfig, - this.strategyOverrides); + this.strategyOverrides, + this.provisioning); } @java.lang.Override @@ -136,6 +147,8 @@ public static final class Builder { private Optional strategyOverrides = Optional.empty(); + private Optional provisioning = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -148,6 +161,7 @@ public Builder from(ConnectionProfileTemplate other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); strategyOverrides(other.getStrategyOverrides()); + provisioning(other.getProvisioning()); return this; } @@ -217,6 +231,17 @@ public Builder strategyOverrides(ConnectionProfileStrategyOverrides strategyOver return this; } + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public Builder provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + + public Builder provisioning(ConnectionProfileProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + public ConnectionProfileTemplate build() { return new ConnectionProfileTemplate( name, @@ -225,6 +250,7 @@ public ConnectionProfileTemplate build() { enabledFeatures, connectionConfig, strategyOverrides, + provisioning, additionalProperties); } 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 ce3dea7e1..2ba2199a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -91,6 +91,10 @@ public final class ConnectionPropertiesOptions { private final Optional dpopSigningAlg; + private final Optional enablePushedAuthorizationRequests; + + private final Optional pushedAuthorizationRequestEndpoint; + private final OptionalNullable tokenEndpointAuthMethod; private final OptionalNullable tokenEndpointAuthSigningAlg; @@ -141,6 +145,8 @@ private ConnectionPropertiesOptions( Optional assertionDecryptionSettings, OptionalNullable> idTokenSignedResponseAlgs, Optional dpopSigningAlg, + Optional enablePushedAuthorizationRequests, + Optional pushedAuthorizationRequestEndpoint, OptionalNullable tokenEndpointAuthMethod, OptionalNullable tokenEndpointAuthSigningAlg, Optional tokenEndpointJwtcaAudFormat, @@ -182,6 +188,8 @@ private ConnectionPropertiesOptions( this.assertionDecryptionSettings = assertionDecryptionSettings; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.dpopSigningAlg = dpopSigningAlg; + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; @@ -427,6 +435,16 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } + @JsonProperty("enable_pushed_authorization_requests") + public Optional getEnablePushedAuthorizationRequests() { + return enablePushedAuthorizationRequests; + } + + @JsonProperty("pushed_authorization_request_endpoint") + public Optional getPushedAuthorizationRequestEndpoint() { + return pushedAuthorizationRequestEndpoint; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("token_endpoint_auth_method") public OptionalNullable getTokenEndpointAuthMethod() { @@ -626,6 +644,8 @@ private boolean equalTo(ConnectionPropertiesOptions other) { && assertionDecryptionSettings.equals(other.assertionDecryptionSettings) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && dpopSigningAlg.equals(other.dpopSigningAlg) + && enablePushedAuthorizationRequests.equals(other.enablePushedAuthorizationRequests) + && pushedAuthorizationRequestEndpoint.equals(other.pushedAuthorizationRequestEndpoint) && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) @@ -671,6 +691,8 @@ public int hashCode() { this.assertionDecryptionSettings, this.idTokenSignedResponseAlgs, this.dpopSigningAlg, + this.enablePushedAuthorizationRequests, + this.pushedAuthorizationRequestEndpoint, this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, @@ -761,6 +783,10 @@ public static final class Builder { private Optional dpopSigningAlg = Optional.empty(); + private Optional enablePushedAuthorizationRequests = Optional.empty(); + + private Optional pushedAuthorizationRequestEndpoint = Optional.empty(); + private OptionalNullable tokenEndpointAuthMethod = OptionalNullable.absent(); @@ -816,6 +842,8 @@ public Builder from(ConnectionPropertiesOptions other) { assertionDecryptionSettings(other.getAssertionDecryptionSettings()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); dpopSigningAlg(other.getDpopSigningAlg()); + enablePushedAuthorizationRequests(other.getEnablePushedAuthorizationRequests()); + pushedAuthorizationRequestEndpoint(other.getPushedAuthorizationRequestEndpoint()); tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); @@ -1496,6 +1524,28 @@ public Builder dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { return this; } + @JsonSetter(value = "enable_pushed_authorization_requests", nulls = Nulls.SKIP) + public Builder enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; + return this; + } + + public Builder enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = Optional.ofNullable(enablePushedAuthorizationRequests); + return this; + } + + @JsonSetter(value = "pushed_authorization_request_endpoint", nulls = Nulls.SKIP) + public Builder pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; + return this; + } + + public Builder pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = Optional.ofNullable(pushedAuthorizationRequestEndpoint); + return this; + } + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) public Builder tokenEndpointAuthMethod( @Nullable OptionalNullable tokenEndpointAuthMethod) { @@ -1698,6 +1748,8 @@ public ConnectionPropertiesOptions build() { assertionDecryptionSettings, idTokenSignedResponseAlgs, dpopSigningAlg, + enablePushedAuthorizationRequests, + pushedAuthorizationRequestEndpoint, tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java index 0f67f9076..9b3a5667c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java @@ -3,6 +3,7 @@ */ 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; @@ -19,6 +20,7 @@ import java.util.Objects; import java.util.Optional; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSaml.Builder.class) @@ -44,6 +46,8 @@ public final class ConnectionResponseContentSaml private final ConnectionResponseContentSamlStrategy strategy; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional options; private final Optional provisioningTicketUrl; @@ -63,6 +67,7 @@ private ConnectionResponseContentSaml( Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSamlStrategy strategy, + OptionalNullable crossAppAccessResourceApp, Optional options, Optional provisioningTicketUrl, Optional showAsButton, @@ -77,6 +82,7 @@ private ConnectionResponseContentSaml( this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.options = options; this.provisioningTicketUrl = provisioningTicketUrl; this.showAsButton = showAsButton; @@ -145,6 +151,15 @@ public ConnectionResponseContentSamlStrategy getStrategy() { return strategy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + public OptionalNullable getCrossAppAccessResourceApp() { + if (crossAppAccessResourceApp == null) { + return OptionalNullable.absent(); + } + return crossAppAccessResourceApp; + } + @JsonProperty("options") public Optional getOptions() { return options; @@ -160,6 +175,12 @@ public Optional getShowAsButton() { return showAsButton; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + private OptionalNullable _getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -182,6 +203,7 @@ private boolean equalTo(ConnectionResponseContentSaml other) { && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && options.equals(other.options) && provisioningTicketUrl.equals(other.provisioningTicketUrl) && showAsButton.equals(other.showAsButton); @@ -200,6 +222,7 @@ public int hashCode() { this.isDomainConnection, this.metadata, this.strategy, + this.crossAppAccessResourceApp, this.options, this.provisioningTicketUrl, this.showAsButton); @@ -266,6 +289,16 @@ public interface _FinalStage { _FinalStage metadata(Map> metadata); + _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(Optional crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp); + _FinalStage options(Optional options); _FinalStage options(ConnectionOptionsSaml options); @@ -293,6 +326,9 @@ public static final class Builder implements IdStage, NameStage, StrategyStage, private Optional options = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional>> metadata = Optional.empty(); private Optional isDomainConnection = Optional.empty(); @@ -324,6 +360,7 @@ public Builder from(ConnectionResponseContentSaml other) { isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); options(other.getOptions()); provisioningTicketUrl(other.getProvisioningTicketUrl()); showAsButton(other.getShowAsButton()); @@ -390,6 +427,44 @@ public _FinalStage options(Optional options) { return this; } + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isNull()) { + this.crossAppAccessResourceApp = OptionalNullable.ofNull(); + } else if (crossAppAccessResourceApp.isEmpty()) { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } else { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isPresent()) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } else { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + @java.lang.Override public _FinalStage metadata(Map> metadata) { this.metadata = Optional.ofNullable(metadata); @@ -501,6 +576,7 @@ public ConnectionResponseContentSaml build() { isDomainConnection, metadata, strategy, + crossAppAccessResourceApp, options, provisioningTicketUrl, showAsButton, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java index 16be79e84..da54adb42 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java @@ -11,6 +11,9 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum BAIDU = new ConnectionStrategyEnum(Value.BAIDU, "baidu"); + public static final ConnectionStrategyEnum SUPABASE_MCP = + new ConnectionStrategyEnum(Value.SUPABASE_MCP, "supabase-mcp"); + public static final ConnectionStrategyEnum BITLY = new ConnectionStrategyEnum(Value.BITLY, "bitly"); public static final ConnectionStrategyEnum PAYPAL_SANDBOX = @@ -18,6 +21,10 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum SAMLP = new ConnectionStrategyEnum(Value.SAMLP, "samlp"); + public static final ConnectionStrategyEnum GUSTO_MCP = new ConnectionStrategyEnum(Value.GUSTO_MCP, "gusto-mcp"); + + public static final ConnectionStrategyEnum GITLAB_MCP = new ConnectionStrategyEnum(Value.GITLAB_MCP, "gitlab-mcp"); + public static final ConnectionStrategyEnum DROPBOX = new ConnectionStrategyEnum(Value.DROPBOX, "dropbox"); public static final ConnectionStrategyEnum VKONTAKTE = new ConnectionStrategyEnum(Value.VKONTAKTE, "vkontakte"); @@ -30,6 +37,8 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum PINGFEDERATE = new ConnectionStrategyEnum(Value.PINGFEDERATE, "pingfederate"); + public static final ConnectionStrategyEnum XERO_MCP = new ConnectionStrategyEnum(Value.XERO_MCP, "xero-mcp"); + public static final ConnectionStrategyEnum THIRTYSEVENSIGNALS = new ConnectionStrategyEnum(Value.THIRTYSEVENSIGNALS, "thirtysevensignals"); @@ -37,6 +46,8 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum OIDC = new ConnectionStrategyEnum(Value.OIDC, "oidc"); + public static final ConnectionStrategyEnum FIGMA_MCP = new ConnectionStrategyEnum(Value.FIGMA_MCP, "figma-mcp"); + public static final ConnectionStrategyEnum SALESFORCE_COMMUNITY = new ConnectionStrategyEnum(Value.SALESFORCE_COMMUNITY, "salesforce-community"); @@ -65,15 +76,28 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum PAYPAL = new ConnectionStrategyEnum(Value.PAYPAL, "paypal"); + public static final ConnectionStrategyEnum HUBSPOT_MCP = + new ConnectionStrategyEnum(Value.HUBSPOT_MCP, "hubspot-mcp"); + + public static final ConnectionStrategyEnum LINEAR_MCP = new ConnectionStrategyEnum(Value.LINEAR_MCP, "linear-mcp"); + public static final ConnectionStrategyEnum LINKEDIN = new ConnectionStrategyEnum(Value.LINKEDIN, "linkedin"); + public static final ConnectionStrategyEnum ATLASSIAN_MCP = + new ConnectionStrategyEnum(Value.ATLASSIAN_MCP, "atlassian-mcp"); + public static final ConnectionStrategyEnum GOOGLE_APPS = new ConnectionStrategyEnum(Value.GOOGLE_APPS, "google-apps"); public static final ConnectionStrategyEnum DWOLLA = new ConnectionStrategyEnum(Value.DWOLLA, "dwolla"); + public static final ConnectionStrategyEnum NOTION_MCP = new ConnectionStrategyEnum(Value.NOTION_MCP, "notion-mcp"); + public static final ConnectionStrategyEnum SHOP = new ConnectionStrategyEnum(Value.SHOP, "shop"); + public static final ConnectionStrategyEnum CLOUDFLARE_MCP = + new ConnectionStrategyEnum(Value.CLOUDFLARE_MCP, "cloudflare-mcp"); + public static final ConnectionStrategyEnum AUTH0OIDC = new ConnectionStrategyEnum(Value.AUTH0OIDC, "auth0-oidc"); public static final ConnectionStrategyEnum PLANNINGCENTER = @@ -83,24 +107,37 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum AUTH0 = new ConnectionStrategyEnum(Value.AUTH0, "auth0"); + public static final ConnectionStrategyEnum HEROKU_MCP = new ConnectionStrategyEnum(Value.HEROKU_MCP, "heroku-mcp"); + public static final ConnectionStrategyEnum GOOGLE_OAUTH2 = new ConnectionStrategyEnum(Value.GOOGLE_OAUTH2, "google-oauth2"); public static final ConnectionStrategyEnum WORDPRESS = new ConnectionStrategyEnum(Value.WORDPRESS, "wordpress"); + public static final ConnectionStrategyEnum ASANA_MCP = new ConnectionStrategyEnum(Value.ASANA_MCP, "asana-mcp"); + public static final ConnectionStrategyEnum EXACT = new ConnectionStrategyEnum(Value.EXACT, "exact"); public static final ConnectionStrategyEnum FITBIT = new ConnectionStrategyEnum(Value.FITBIT, "fitbit"); public static final ConnectionStrategyEnum EVERNOTE = new ConnectionStrategyEnum(Value.EVERNOTE, "evernote"); + public static final ConnectionStrategyEnum SLACK_MCP = new ConnectionStrategyEnum(Value.SLACK_MCP, "slack-mcp"); + public static final ConnectionStrategyEnum SHAREPOINT = new ConnectionStrategyEnum(Value.SHAREPOINT, "sharepoint"); public static final ConnectionStrategyEnum SHOPIFY = new ConnectionStrategyEnum(Value.SHOPIFY, "shopify"); + public static final ConnectionStrategyEnum VERCEL_MCP = new ConnectionStrategyEnum(Value.VERCEL_MCP, "vercel-mcp"); + public static final ConnectionStrategyEnum SALESFORCE_SANDBOX = new ConnectionStrategyEnum(Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); + public static final ConnectionStrategyEnum INTERCOM_MCP = + new ConnectionStrategyEnum(Value.INTERCOM_MCP, "intercom-mcp"); + + public static final ConnectionStrategyEnum SENTRY_MCP = new ConnectionStrategyEnum(Value.SENTRY_MCP, "sentry-mcp"); + public static final ConnectionStrategyEnum FACEBOOK = new ConnectionStrategyEnum(Value.FACEBOOK, "facebook"); public static final ConnectionStrategyEnum APPLE = new ConnectionStrategyEnum(Value.APPLE, "apple"); @@ -111,12 +148,18 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum LINE = new ConnectionStrategyEnum(Value.LINE, "line"); + public static final ConnectionStrategyEnum DOCUSIGN_MCP = + new ConnectionStrategyEnum(Value.DOCUSIGN_MCP, "docusign-mcp"); + public static final ConnectionStrategyEnum UNTAPPD = new ConnectionStrategyEnum(Value.UNTAPPD, "untappd"); public static final ConnectionStrategyEnum GITHUB = new ConnectionStrategyEnum(Value.GITHUB, "github"); public static final ConnectionStrategyEnum SALESFORCE = new ConnectionStrategyEnum(Value.SALESFORCE, "salesforce"); + public static final ConnectionStrategyEnum PAGERDUTY_MCP = + new ConnectionStrategyEnum(Value.PAGERDUTY_MCP, "pagerduty-mcp"); + public static final ConnectionStrategyEnum BITBUCKET = new ConnectionStrategyEnum(Value.BITBUCKET, "bitbucket"); public static final ConnectionStrategyEnum OFFICE365 = new ConnectionStrategyEnum(Value.OFFICE365, "office365"); @@ -167,12 +210,18 @@ public T visit(Visitor visitor) { return visitor.visitAd(); case BAIDU: return visitor.visitBaidu(); + case SUPABASE_MCP: + return visitor.visitSupabaseMcp(); case BITLY: return visitor.visitBitly(); case PAYPAL_SANDBOX: return visitor.visitPaypalSandbox(); case SAMLP: return visitor.visitSamlp(); + case GUSTO_MCP: + return visitor.visitGustoMcp(); + case GITLAB_MCP: + return visitor.visitGitlabMcp(); case DROPBOX: return visitor.visitDropbox(); case VKONTAKTE: @@ -183,12 +232,16 @@ public T visit(Visitor visitor) { return visitor.visitAuth0Adldap(); case PINGFEDERATE: return visitor.visitPingfederate(); + case XERO_MCP: + return visitor.visitXeroMcp(); case THIRTYSEVENSIGNALS: return visitor.visitThirtysevensignals(); case WAAD: return visitor.visitWaad(); case OIDC: return visitor.visitOidc(); + case FIGMA_MCP: + return visitor.visitFigmaMcp(); case SALESFORCE_COMMUNITY: return visitor.visitSalesforceCommunity(); case DACCOUNT: @@ -215,14 +268,24 @@ public T visit(Visitor visitor) { return visitor.visitCustom(); case PAYPAL: return visitor.visitPaypal(); + case HUBSPOT_MCP: + return visitor.visitHubspotMcp(); + case LINEAR_MCP: + return visitor.visitLinearMcp(); case LINKEDIN: return visitor.visitLinkedin(); + case ATLASSIAN_MCP: + return visitor.visitAtlassianMcp(); case GOOGLE_APPS: return visitor.visitGoogleApps(); case DWOLLA: return visitor.visitDwolla(); + case NOTION_MCP: + return visitor.visitNotionMcp(); case SHOP: return visitor.visitShop(); + case CLOUDFLARE_MCP: + return visitor.visitCloudflareMcp(); case AUTH0OIDC: return visitor.visitAuth0Oidc(); case PLANNINGCENTER: @@ -231,22 +294,34 @@ public T visit(Visitor visitor) { return visitor.visitOkta(); case AUTH0: return visitor.visitAuth0(); + case HEROKU_MCP: + return visitor.visitHerokuMcp(); case GOOGLE_OAUTH2: return visitor.visitGoogleOauth2(); case WORDPRESS: return visitor.visitWordpress(); + case ASANA_MCP: + return visitor.visitAsanaMcp(); case EXACT: return visitor.visitExact(); case FITBIT: return visitor.visitFitbit(); case EVERNOTE: return visitor.visitEvernote(); + case SLACK_MCP: + return visitor.visitSlackMcp(); case SHAREPOINT: return visitor.visitSharepoint(); case SHOPIFY: return visitor.visitShopify(); + case VERCEL_MCP: + return visitor.visitVercelMcp(); case SALESFORCE_SANDBOX: return visitor.visitSalesforceSandbox(); + case INTERCOM_MCP: + return visitor.visitIntercomMcp(); + case SENTRY_MCP: + return visitor.visitSentryMcp(); case FACEBOOK: return visitor.visitFacebook(); case APPLE: @@ -257,12 +332,16 @@ public T visit(Visitor visitor) { return visitor.visitAmazon(); case LINE: return visitor.visitLine(); + case DOCUSIGN_MCP: + return visitor.visitDocusignMcp(); case UNTAPPD: return visitor.visitUntappd(); case GITHUB: return visitor.visitGithub(); case SALESFORCE: return visitor.visitSalesforce(); + case PAGERDUTY_MCP: + return visitor.visitPagerdutyMcp(); case BITBUCKET: return visitor.visitBitbucket(); case OFFICE365: @@ -288,12 +367,18 @@ public static ConnectionStrategyEnum valueOf(String value) { return AD; case "baidu": return BAIDU; + case "supabase-mcp": + return SUPABASE_MCP; case "bitly": return BITLY; case "paypal-sandbox": return PAYPAL_SANDBOX; case "samlp": return SAMLP; + case "gusto-mcp": + return GUSTO_MCP; + case "gitlab-mcp": + return GITLAB_MCP; case "dropbox": return DROPBOX; case "vkontakte": @@ -304,12 +389,16 @@ public static ConnectionStrategyEnum valueOf(String value) { return AUTH0ADLDAP; case "pingfederate": return PINGFEDERATE; + case "xero-mcp": + return XERO_MCP; case "thirtysevensignals": return THIRTYSEVENSIGNALS; case "waad": return WAAD; case "oidc": return OIDC; + case "figma-mcp": + return FIGMA_MCP; case "salesforce-community": return SALESFORCE_COMMUNITY; case "daccount": @@ -336,14 +425,24 @@ public static ConnectionStrategyEnum valueOf(String value) { return CUSTOM; case "paypal": return PAYPAL; + case "hubspot-mcp": + return HUBSPOT_MCP; + case "linear-mcp": + return LINEAR_MCP; case "linkedin": return LINKEDIN; + case "atlassian-mcp": + return ATLASSIAN_MCP; case "google-apps": return GOOGLE_APPS; case "dwolla": return DWOLLA; + case "notion-mcp": + return NOTION_MCP; case "shop": return SHOP; + case "cloudflare-mcp": + return CLOUDFLARE_MCP; case "auth0-oidc": return AUTH0OIDC; case "planningcenter": @@ -352,22 +451,34 @@ public static ConnectionStrategyEnum valueOf(String value) { return OKTA; case "auth0": return AUTH0; + case "heroku-mcp": + return HEROKU_MCP; case "google-oauth2": return GOOGLE_OAUTH2; case "wordpress": return WORDPRESS; + case "asana-mcp": + return ASANA_MCP; case "exact": return EXACT; case "fitbit": return FITBIT; case "evernote": return EVERNOTE; + case "slack-mcp": + return SLACK_MCP; case "sharepoint": return SHAREPOINT; case "shopify": return SHOPIFY; + case "vercel-mcp": + return VERCEL_MCP; case "salesforce-sandbox": return SALESFORCE_SANDBOX; + case "intercom-mcp": + return INTERCOM_MCP; + case "sentry-mcp": + return SENTRY_MCP; case "facebook": return FACEBOOK; case "apple": @@ -378,12 +489,16 @@ public static ConnectionStrategyEnum valueOf(String value) { return AMAZON; case "line": return LINE; + case "docusign-mcp": + return DOCUSIGN_MCP; case "untappd": return UNTAPPD; case "github": return GITHUB; case "salesforce": return SALESFORCE; + case "pagerduty-mcp": + return PAGERDUTY_MCP; case "bitbucket": return BITBUCKET; case "office365": @@ -512,6 +627,42 @@ public enum Value { YANDEX, + NOTION_MCP, + + ASANA_MCP, + + ATLASSIAN_MCP, + + CLOUDFLARE_MCP, + + DOCUSIGN_MCP, + + FIGMA_MCP, + + GITLAB_MCP, + + GUSTO_MCP, + + HEROKU_MCP, + + HUBSPOT_MCP, + + INTERCOM_MCP, + + LINEAR_MCP, + + PAGERDUTY_MCP, + + SENTRY_MCP, + + SLACK_MCP, + + SUPABASE_MCP, + + VERCEL_MCP, + + XERO_MCP, + AUTH0ADLDAP, UNKNOWN @@ -628,6 +779,42 @@ public interface Visitor { T visitYandex(); + T visitNotionMcp(); + + T visitAsanaMcp(); + + T visitAtlassianMcp(); + + T visitCloudflareMcp(); + + T visitDocusignMcp(); + + T visitFigmaMcp(); + + T visitGitlabMcp(); + + T visitGustoMcp(); + + T visitHerokuMcp(); + + T visitHubspotMcp(); + + T visitIntercomMcp(); + + T visitLinearMcp(); + + T visitPagerdutyMcp(); + + T visitSentryMcp(); + + T visitSlackMcp(); + + T visitSupabaseMcp(); + + T visitVercelMcp(); + + T visitXeroMcp(); + T visitAuth0Adldap(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java index 672f485dd..0d39b2d89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java @@ -96,6 +96,10 @@ public final class ConnectionsOidcMetadata { private final Optional endSessionEndpoint; + private final Optional pushedAuthorizationRequestEndpoint; + + private final Optional requirePushedAuthorizationRequests; + private final Optional> dpopSigningAlgValuesSupported; private final Map additionalProperties; @@ -137,6 +141,8 @@ private ConnectionsOidcMetadata( Optional opPolicyUri, Optional opTosUri, Optional endSessionEndpoint, + Optional pushedAuthorizationRequestEndpoint, + Optional requirePushedAuthorizationRequests, Optional> dpopSigningAlgValuesSupported, Map additionalProperties) { this.issuer = issuer; @@ -175,6 +181,8 @@ private ConnectionsOidcMetadata( this.opPolicyUri = opPolicyUri; this.opTosUri = opTosUri; this.endSessionEndpoint = endSessionEndpoint; + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; + this.requirePushedAuthorizationRequests = requirePushedAuthorizationRequests; this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.additionalProperties = additionalProperties; } @@ -475,6 +483,22 @@ public Optional getEndSessionEndpoint() { return endSessionEndpoint; } + /** + * @return URL of the identity provider's Pushed Authorization Request (PAR) endpoint, as per https://datatracker.ietf.org/doc/html/rfc9126. Must use HTTPS scheme. + */ + @JsonProperty("pushed_authorization_request_endpoint") + public Optional getPushedAuthorizationRequestEndpoint() { + return pushedAuthorizationRequestEndpoint; + } + + /** + * @return Boolean parameter indicating whether the identity provider requires Pushed Authorization Requests (PAR), as per https://datatracker.ietf.org/doc/html/rfc9126. Discovered from the identity provider's metadata; not used to decide whether the server performs PAR. + */ + @JsonProperty("require_pushed_authorization_requests") + public Optional getRequirePushedAuthorizationRequests() { + return requirePushedAuthorizationRequests; + } + /** * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. */ @@ -543,6 +567,8 @@ private boolean equalTo(ConnectionsOidcMetadata other) { && opPolicyUri.equals(other.opPolicyUri) && opTosUri.equals(other.opTosUri) && endSessionEndpoint.equals(other.endSessionEndpoint) + && pushedAuthorizationRequestEndpoint.equals(other.pushedAuthorizationRequestEndpoint) + && requirePushedAuthorizationRequests.equals(other.requirePushedAuthorizationRequests) && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported); } @@ -585,6 +611,8 @@ public int hashCode() { this.opPolicyUri, this.opTosUri, this.endSessionEndpoint, + this.pushedAuthorizationRequestEndpoint, + this.requirePushedAuthorizationRequests, this.dpopSigningAlgValuesSupported); } @@ -671,6 +699,10 @@ public static final class Builder { private Optional endSessionEndpoint = Optional.empty(); + private Optional pushedAuthorizationRequestEndpoint = Optional.empty(); + + private Optional requirePushedAuthorizationRequests = Optional.empty(); + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); @JsonAnySetter @@ -715,6 +747,8 @@ public Builder from(ConnectionsOidcMetadata other) { opPolicyUri(other.getOpPolicyUri()); opTosUri(other.getOpTosUri()); endSessionEndpoint(other.getEndSessionEndpoint()); + pushedAuthorizationRequestEndpoint(other.getPushedAuthorizationRequestEndpoint()); + requirePushedAuthorizationRequests(other.getRequirePushedAuthorizationRequests()); dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); return this; } @@ -1275,6 +1309,34 @@ public Builder endSessionEndpoint(String endSessionEndpoint) { return this; } + /** + *

URL of the identity provider's Pushed Authorization Request (PAR) endpoint, as per https://datatracker.ietf.org/doc/html/rfc9126. Must use HTTPS scheme.

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

Boolean parameter indicating whether the identity provider requires Pushed Authorization Requests (PAR), as per https://datatracker.ietf.org/doc/html/rfc9126. Discovered from the identity provider's metadata; not used to decide whether the server performs PAR.

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

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

*/ @@ -1327,6 +1389,8 @@ public ConnectionsOidcMetadata build() { opPolicyUri, opTosUri, endSessionEndpoint, + pushedAuthorizationRequestEndpoint, + requirePushedAuthorizationRequests, dpopSigningAlgValuesSupported, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java index ccc847ab9..6f72deb41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -133,6 +133,8 @@ public final class CreateClientRequestContent { private final Optional expressConfiguration; + private final Optional b2BIntegrationConfiguration; + private final Optional myOrganizationConfiguration; private final Optional> asyncApprovalNotificationChannels; @@ -194,6 +196,7 @@ private CreateClientRequestContent( Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional expressConfiguration, + Optional b2BIntegrationConfiguration, Optional myOrganizationConfiguration, Optional> asyncApprovalNotificationChannels, Map additionalProperties) { @@ -251,6 +254,7 @@ private CreateClientRequestContent( this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.expressConfiguration = expressConfiguration; + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; this.additionalProperties = additionalProperties; @@ -639,6 +643,11 @@ public Optional getExpressConfiguration() { return expressConfiguration; } + @JsonProperty("b2b_integration_configuration") + public Optional getB2BIntegrationConfiguration() { + return b2BIntegrationConfiguration; + } + @JsonProperty("my_organization_configuration") public Optional getMyOrganizationConfiguration() { return myOrganizationConfiguration; @@ -752,6 +761,7 @@ private boolean equalTo(CreateClientRequestContent other) { && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && expressConfiguration.equals(other.expressConfiguration) + && b2BIntegrationConfiguration.equals(other.b2BIntegrationConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels); } @@ -813,6 +823,7 @@ public int hashCode() { this.thirdPartySecurityMode, this.redirectionPolicy, this.expressConfiguration, + this.b2BIntegrationConfiguration, this.myOrganizationConfiguration, this.asyncApprovalNotificationChannels); } @@ -1174,6 +1185,10 @@ _FinalStage identityAssertionAuthorizationGrant( _FinalStage expressConfiguration(ExpressConfiguration expressConfiguration); + _FinalStage b2BIntegrationConfiguration(Optional b2BIntegrationConfiguration); + + _FinalStage b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration); + _FinalStage myOrganizationConfiguration( Optional myOrganizationConfiguration); @@ -1195,6 +1210,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional b2BIntegrationConfiguration = Optional.empty(); + private Optional expressConfiguration = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1363,6 +1380,7 @@ public Builder from(CreateClientRequestContent other) { thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); expressConfiguration(other.getExpressConfiguration()); + b2BIntegrationConfiguration(other.getB2BIntegrationConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); asyncApprovalNotificationChannels(other.getAsyncApprovalNotificationChannels()); return this; @@ -1409,6 +1427,20 @@ public _FinalStage myOrganizationConfiguration( return this; } + @java.lang.Override + public _FinalStage b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = Optional.ofNullable(b2BIntegrationConfiguration); + return this; + } + + @java.lang.Override + @JsonSetter(value = "b2b_integration_configuration", nulls = Nulls.SKIP) + public _FinalStage b2BIntegrationConfiguration( + Optional b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; + return this; + } + @java.lang.Override public _FinalStage expressConfiguration(ExpressConfiguration expressConfiguration) { this.expressConfiguration = Optional.ofNullable(expressConfiguration); @@ -2514,6 +2546,7 @@ public CreateClientRequestContent build() { thirdPartySecurityMode, redirectionPolicy, expressConfiguration, + b2BIntegrationConfiguration, myOrganizationConfiguration, asyncApprovalNotificationChannels, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java index 12e65eb1b..f92e83692 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java @@ -132,6 +132,8 @@ public final class CreateClientResponseContent { private final Optional expressConfiguration; + private final Optional b2BIntegrationConfiguration; + private final Optional myOrganizationConfiguration; private final Optional identityAssertionAuthorizationGrant; @@ -209,6 +211,7 @@ private CreateClientResponseContent( OptionalNullable parRequestExpiry, Optional tokenQuota, Optional expressConfiguration, + Optional b2BIntegrationConfiguration, Optional myOrganizationConfiguration, Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, @@ -274,6 +277,7 @@ private CreateClientResponseContent( this.parRequestExpiry = parRequestExpiry; this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -684,6 +688,11 @@ public Optional getExpressConfiguration() { return expressConfiguration; } + @JsonProperty("b2b_integration_configuration") + public Optional getB2BIntegrationConfiguration() { + return b2BIntegrationConfiguration; + } + @JsonProperty("my_organization_configuration") public Optional getMyOrganizationConfiguration() { return myOrganizationConfiguration; @@ -858,6 +867,7 @@ private boolean equalTo(CreateClientResponseContent other) { && parRequestExpiry.equals(other.parRequestExpiry) && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) + && b2BIntegrationConfiguration.equals(other.b2BIntegrationConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) @@ -927,6 +937,7 @@ public int hashCode() { this.parRequestExpiry, this.tokenQuota, this.expressConfiguration, + this.b2BIntegrationConfiguration, this.myOrganizationConfiguration, this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, @@ -1059,6 +1070,8 @@ public static final class Builder { private Optional expressConfiguration = Optional.empty(); + private Optional b2BIntegrationConfiguration = Optional.empty(); + private Optional myOrganizationConfiguration = Optional.empty(); private Optional identityAssertionAuthorizationGrant = Optional.empty(); @@ -1140,6 +1153,7 @@ public Builder from(CreateClientResponseContent other) { parRequestExpiry(other.getParRequestExpiry()); tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); + b2BIntegrationConfiguration(other.getB2BIntegrationConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); @@ -2014,6 +2028,17 @@ public Builder expressConfiguration(ExpressConfiguration expressConfiguration) { return this; } + @JsonSetter(value = "b2b_integration_configuration", nulls = Nulls.SKIP) + public Builder b2BIntegrationConfiguration(Optional b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; + return this; + } + + public Builder b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = Optional.ofNullable(b2BIntegrationConfiguration); + return this; + } + @JsonSetter(value = "my_organization_configuration", nulls = Nulls.SKIP) public Builder myOrganizationConfiguration( Optional myOrganizationConfiguration) { @@ -2196,6 +2221,7 @@ public CreateClientResponseContent build() { parRequestExpiry, tokenQuota, expressConfiguration, + b2BIntegrationConfiguration, myOrganizationConfiguration, identityAssertionAuthorizationGrant, thirdPartySecurityMode, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java index b442c0f6d..efe877fd2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java @@ -34,6 +34,8 @@ public final class CreateConnectionProfileRequestContent { private final Optional strategyOverrides; + private final Optional provisioning; + private final Optional crossAppAccessResourceApp; private final Map additionalProperties; @@ -45,6 +47,7 @@ private CreateConnectionProfileRequestContent( Optional> enabledFeatures, Optional connectionConfig, Optional strategyOverrides, + Optional provisioning, Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; @@ -53,6 +56,7 @@ private CreateConnectionProfileRequestContent( this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; this.strategyOverrides = strategyOverrides; + this.provisioning = provisioning; this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -87,6 +91,11 @@ public Optional getStrategyOverrides() { return strategyOverrides; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @JsonProperty("cross_app_access_resource_app") public Optional getCrossAppAccessResourceApp() { return crossAppAccessResourceApp; @@ -111,6 +120,7 @@ private boolean equalTo(CreateConnectionProfileRequestContent other) { && enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig) && strategyOverrides.equals(other.strategyOverrides) + && provisioning.equals(other.provisioning) && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @@ -123,6 +133,7 @@ public int hashCode() { this.enabledFeatures, this.connectionConfig, this.strategyOverrides, + this.provisioning, this.crossAppAccessResourceApp); } @@ -168,6 +179,10 @@ public interface _FinalStage { _FinalStage strategyOverrides(ConnectionProfileStrategyOverrides strategyOverrides); + _FinalStage provisioning(Optional provisioning); + + _FinalStage provisioning(ConnectionProfileProvisioning provisioning); + _FinalStage crossAppAccessResourceApp( Optional crossAppAccessResourceApp); @@ -180,6 +195,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional crossAppAccessResourceApp = Optional.empty(); + private Optional provisioning = Optional.empty(); + private Optional strategyOverrides = Optional.empty(); private Optional connectionConfig = Optional.empty(); @@ -203,6 +220,7 @@ public Builder from(CreateConnectionProfileRequestContent other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); strategyOverrides(other.getStrategyOverrides()); + provisioning(other.getProvisioning()); crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -229,6 +247,19 @@ public _FinalStage crossAppAccessResourceApp( return this; } + @java.lang.Override + public _FinalStage provisioning(ConnectionProfileProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + + @java.lang.Override + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public _FinalStage provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + @java.lang.Override public _FinalStage strategyOverrides(ConnectionProfileStrategyOverrides strategyOverrides) { this.strategyOverrides = Optional.ofNullable(strategyOverrides); @@ -303,6 +334,7 @@ public CreateConnectionProfileRequestContent build() { enabledFeatures, connectionConfig, strategyOverrides, + provisioning, crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java index 1eb379a76..5aac8aebf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java @@ -35,6 +35,8 @@ public final class CreateConnectionProfileResponseContent { private final Optional strategyOverrides; + private final Optional provisioning; + private final Optional crossAppAccessResourceApp; private final Map additionalProperties; @@ -47,6 +49,7 @@ private CreateConnectionProfileResponseContent( Optional> enabledFeatures, Optional connectionConfig, Optional strategyOverrides, + Optional provisioning, Optional crossAppAccessResourceApp, Map additionalProperties) { this.id = id; @@ -56,6 +59,7 @@ private CreateConnectionProfileResponseContent( this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; this.strategyOverrides = strategyOverrides; + this.provisioning = provisioning; this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -95,6 +99,11 @@ public Optional getStrategyOverrides() { return strategyOverrides; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @JsonProperty("cross_app_access_resource_app") public Optional getCrossAppAccessResourceApp() { return crossAppAccessResourceApp; @@ -120,6 +129,7 @@ private boolean equalTo(CreateConnectionProfileResponseContent other) { && enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig) && strategyOverrides.equals(other.strategyOverrides) + && provisioning.equals(other.provisioning) && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @@ -133,6 +143,7 @@ public int hashCode() { this.enabledFeatures, this.connectionConfig, this.strategyOverrides, + this.provisioning, this.crossAppAccessResourceApp); } @@ -161,6 +172,8 @@ public static final class Builder { private Optional strategyOverrides = Optional.empty(); + private Optional provisioning = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); @JsonAnySetter @@ -176,6 +189,7 @@ public Builder from(CreateConnectionProfileResponseContent other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); strategyOverrides(other.getStrategyOverrides()); + provisioning(other.getProvisioning()); crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -257,6 +271,17 @@ public Builder strategyOverrides(ConnectionProfileStrategyOverrides strategyOver return this; } + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public Builder provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + + public Builder provisioning(ConnectionProfileProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) public Builder crossAppAccessResourceApp( Optional crossAppAccessResourceApp) { @@ -278,6 +303,7 @@ public CreateConnectionProfileResponseContent build() { enabledFeatures, connectionConfig, strategyOverrides, + provisioning, crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java index f0790ca25..02e6528d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java @@ -3,6 +3,7 @@ */ 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; @@ -19,6 +20,7 @@ import java.util.Objects; import java.util.Optional; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSaml.Builder.class) @@ -35,6 +37,8 @@ public final class CreateConnectionRequestContentSaml implements ICreateConnecti private final CreateConnectionRequestContentSamlStrategy strategy; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional options; private final Optional showAsButton; @@ -48,6 +52,7 @@ private CreateConnectionRequestContentSaml( Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSamlStrategy strategy, + OptionalNullable crossAppAccessResourceApp, Optional options, Optional showAsButton, Map additionalProperties) { @@ -57,6 +62,7 @@ private CreateConnectionRequestContentSaml( this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.options = options; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; @@ -100,6 +106,15 @@ public CreateConnectionRequestContentSamlStrategy getStrategy() { return strategy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + public OptionalNullable getCrossAppAccessResourceApp() { + if (crossAppAccessResourceApp == null) { + return OptionalNullable.absent(); + } + return crossAppAccessResourceApp; + } + @JsonProperty("options") public Optional getOptions() { return options; @@ -110,6 +125,12 @@ public Optional getShowAsButton() { return showAsButton; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + private OptionalNullable _getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -129,6 +150,7 @@ private boolean equalTo(CreateConnectionRequestContentSaml other) { && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && options.equals(other.options) && showAsButton.equals(other.showAsButton); } @@ -142,6 +164,7 @@ public int hashCode() { this.isDomainConnection, this.metadata, this.strategy, + this.crossAppAccessResourceApp, this.options, this.showAsButton); } @@ -191,6 +214,16 @@ public interface _FinalStage { _FinalStage metadata(Map> metadata); + _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(Optional crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp); + _FinalStage options(Optional options); _FinalStage options(ConnectionOptionsSaml options); @@ -210,6 +243,9 @@ public static final class Builder implements NameStage, StrategyStage, _FinalSta private Optional options = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional>> metadata = Optional.empty(); private Optional isDomainConnection = Optional.empty(); @@ -231,6 +267,7 @@ public Builder from(CreateConnectionRequestContentSaml other) { isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); options(other.getOptions()); showAsButton(other.getShowAsButton()); return this; @@ -276,6 +313,44 @@ public _FinalStage options(Optional options) { return this; } + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isNull()) { + this.crossAppAccessResourceApp = OptionalNullable.ofNull(); + } else if (crossAppAccessResourceApp.isEmpty()) { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } else { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isPresent()) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } else { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + @java.lang.Override public _FinalStage metadata(Map> metadata) { this.metadata = Optional.ofNullable(metadata); @@ -344,6 +419,7 @@ public CreateConnectionRequestContentSaml build() { isDomainConnection, metadata, strategy, + crossAppAccessResourceApp, options, showAsButton, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationTemplateRequestContent.java new file mode 100644 index 000000000..152e0d7ee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationTemplateRequestContent.java @@ -0,0 +1,932 @@ +/** + * 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.NotNull; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CreateOrganizationTemplateRequestContent.Builder.class) +public final class CreateOrganizationTemplateRequestContent { + private final String name; + + private final Optional isDefault; + + private final OrganizationDeletionBehaviorEnum organizationDeletionBehavior; + + private final Optional connectionDeletionBehavior; + + private final boolean enforcePermissionCeiling; + + private final boolean enforceSelfAssignmentRestriction; + + private final OptionalNullable connectionProfileId; + + private final OptionalNullable userAttributeProfileId; + + private final OptionalNullable> allowedStrategies; + + private final OptionalNullable invitationLandingClientId; + + private final OptionalNullable> adminRolesAssignment; + + private final OptionalNullable useForOrganizationDiscovery; + + private final OptionalNullable roleVisibilityPolicy; + + private final Map additionalProperties; + + private CreateOrganizationTemplateRequestContent( + String name, + Optional isDefault, + OrganizationDeletionBehaviorEnum organizationDeletionBehavior, + Optional connectionDeletionBehavior, + boolean enforcePermissionCeiling, + boolean enforceSelfAssignmentRestriction, + OptionalNullable connectionProfileId, + OptionalNullable userAttributeProfileId, + OptionalNullable> allowedStrategies, + OptionalNullable invitationLandingClientId, + OptionalNullable> adminRolesAssignment, + OptionalNullable useForOrganizationDiscovery, + OptionalNullable roleVisibilityPolicy, + Map additionalProperties) { + this.name = name; + this.isDefault = isDefault; + this.organizationDeletionBehavior = organizationDeletionBehavior; + this.connectionDeletionBehavior = connectionDeletionBehavior; + this.enforcePermissionCeiling = enforcePermissionCeiling; + this.enforceSelfAssignmentRestriction = enforceSelfAssignmentRestriction; + this.connectionProfileId = connectionProfileId; + this.userAttributeProfileId = userAttributeProfileId; + this.allowedStrategies = allowedStrategies; + this.invitationLandingClientId = invitationLandingClientId; + this.adminRolesAssignment = adminRolesAssignment; + this.useForOrganizationDiscovery = useForOrganizationDiscovery; + this.roleVisibilityPolicy = roleVisibilityPolicy; + this.additionalProperties = additionalProperties; + } + + /** + * @return The name of the organization template. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Whether this is the default template applied to new organizations. + */ + @JsonProperty("is_default") + public Optional getIsDefault() { + return isDefault; + } + + @JsonProperty("organization_deletion_behavior") + public OrganizationDeletionBehaviorEnum getOrganizationDeletionBehavior() { + return organizationDeletionBehavior; + } + + @JsonProperty("connection_deletion_behavior") + public Optional getConnectionDeletionBehavior() { + return connectionDeletionBehavior; + } + + /** + * @return Whether to enforce permission ceiling for organizations using this template. + */ + @JsonProperty("enforce_permission_ceiling") + public boolean getEnforcePermissionCeiling() { + return enforcePermissionCeiling; + } + + /** + * @return Whether to enforce self-assignment restrictions for organizations using this template. + */ + @JsonProperty("enforce_self_assignment_restriction") + public boolean getEnforceSelfAssignmentRestriction() { + return enforceSelfAssignmentRestriction; + } + + /** + * @return The connection profile to apply to new connections. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_profile_id") + public OptionalNullable getConnectionProfileId() { + if (connectionProfileId == null) { + return OptionalNullable.absent(); + } + return connectionProfileId; + } + + /** + * @return The user attribute profile to apply to organizations. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_attribute_profile_id") + public OptionalNullable getUserAttributeProfileId() { + if (userAttributeProfileId == null) { + return OptionalNullable.absent(); + } + return userAttributeProfileId; + } + + /** + * @return List of allowed connection strategies for this template. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allowed_strategies") + public OptionalNullable> getAllowedStrategies() { + if (allowedStrategies == null) { + return OptionalNullable.absent(); + } + return allowedStrategies; + } + + /** + * @return The client ID for the invitation landing page. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("invitation_landing_client_id") + public OptionalNullable getInvitationLandingClientId() { + if (invitationLandingClientId == null) { + return OptionalNullable.absent(); + } + return invitationLandingClientId; + } + + /** + * @return Default admin roles to assign to organization creators. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("admin_roles_assignment") + public OptionalNullable> getAdminRolesAssignment() { + if (adminRolesAssignment == null) { + return OptionalNullable.absent(); + } + return adminRolesAssignment; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("use_for_organization_discovery") + public OptionalNullable getUseForOrganizationDiscovery() { + if (useForOrganizationDiscovery == null) { + return OptionalNullable.absent(); + } + return useForOrganizationDiscovery; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("role_visibility_policy") + public OptionalNullable getRoleVisibilityPolicy() { + if (roleVisibilityPolicy == null) { + return OptionalNullable.absent(); + } + return roleVisibilityPolicy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_profile_id") + private OptionalNullable _getConnectionProfileId() { + return connectionProfileId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_attribute_profile_id") + private OptionalNullable _getUserAttributeProfileId() { + return userAttributeProfileId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allowed_strategies") + private OptionalNullable> _getAllowedStrategies() { + return allowedStrategies; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("invitation_landing_client_id") + private OptionalNullable _getInvitationLandingClientId() { + return invitationLandingClientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("admin_roles_assignment") + private OptionalNullable> _getAdminRolesAssignment() { + return adminRolesAssignment; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("use_for_organization_discovery") + private OptionalNullable _getUseForOrganizationDiscovery() { + return useForOrganizationDiscovery; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("role_visibility_policy") + private OptionalNullable _getRoleVisibilityPolicy() { + return roleVisibilityPolicy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreateOrganizationTemplateRequestContent + && equalTo((CreateOrganizationTemplateRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CreateOrganizationTemplateRequestContent other) { + return name.equals(other.name) + && isDefault.equals(other.isDefault) + && organizationDeletionBehavior.equals(other.organizationDeletionBehavior) + && connectionDeletionBehavior.equals(other.connectionDeletionBehavior) + && enforcePermissionCeiling == other.enforcePermissionCeiling + && enforceSelfAssignmentRestriction == other.enforceSelfAssignmentRestriction + && connectionProfileId.equals(other.connectionProfileId) + && userAttributeProfileId.equals(other.userAttributeProfileId) + && allowedStrategies.equals(other.allowedStrategies) + && invitationLandingClientId.equals(other.invitationLandingClientId) + && adminRolesAssignment.equals(other.adminRolesAssignment) + && useForOrganizationDiscovery.equals(other.useForOrganizationDiscovery) + && roleVisibilityPolicy.equals(other.roleVisibilityPolicy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.name, + this.isDefault, + this.organizationDeletionBehavior, + this.connectionDeletionBehavior, + this.enforcePermissionCeiling, + this.enforceSelfAssignmentRestriction, + this.connectionProfileId, + this.userAttributeProfileId, + this.allowedStrategies, + this.invitationLandingClientId, + this.adminRolesAssignment, + this.useForOrganizationDiscovery, + this.roleVisibilityPolicy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static NameStage builder() { + return new Builder(); + } + + public interface NameStage { + /** + *

The name of the organization template.

+ */ + OrganizationDeletionBehaviorStage name(@NotNull String name); + + Builder from(CreateOrganizationTemplateRequestContent other); + } + + public interface OrganizationDeletionBehaviorStage { + EnforcePermissionCeilingStage organizationDeletionBehavior( + @NotNull OrganizationDeletionBehaviorEnum organizationDeletionBehavior); + } + + public interface EnforcePermissionCeilingStage { + /** + *

Whether to enforce permission ceiling for organizations using this template.

+ */ + EnforceSelfAssignmentRestrictionStage enforcePermissionCeiling(boolean enforcePermissionCeiling); + } + + public interface EnforceSelfAssignmentRestrictionStage { + /** + *

Whether to enforce self-assignment restrictions for organizations using this template.

+ */ + _FinalStage enforceSelfAssignmentRestriction(boolean enforceSelfAssignmentRestriction); + } + + public interface _FinalStage { + CreateOrganizationTemplateRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Whether this is the default template applied to new organizations.

+ */ + _FinalStage isDefault(Optional isDefault); + + _FinalStage isDefault(Boolean isDefault); + + _FinalStage connectionDeletionBehavior(Optional connectionDeletionBehavior); + + _FinalStage connectionDeletionBehavior(ConnectionDeletionBehaviorEnum connectionDeletionBehavior); + + /** + *

The connection profile to apply to new connections.

+ */ + _FinalStage connectionProfileId(@Nullable OptionalNullable connectionProfileId); + + _FinalStage connectionProfileId(String connectionProfileId); + + _FinalStage connectionProfileId(Optional connectionProfileId); + + _FinalStage connectionProfileId(com.auth0.client.mgmt.core.Nullable connectionProfileId); + + /** + *

The user attribute profile to apply to organizations.

+ */ + _FinalStage userAttributeProfileId(@Nullable OptionalNullable userAttributeProfileId); + + _FinalStage userAttributeProfileId(String userAttributeProfileId); + + _FinalStage userAttributeProfileId(Optional userAttributeProfileId); + + _FinalStage userAttributeProfileId(com.auth0.client.mgmt.core.Nullable userAttributeProfileId); + + /** + *

List of allowed connection strategies for this template.

+ */ + _FinalStage allowedStrategies( + @Nullable OptionalNullable> allowedStrategies); + + _FinalStage allowedStrategies(List allowedStrategies); + + _FinalStage allowedStrategies(Optional> allowedStrategies); + + _FinalStage allowedStrategies( + com.auth0.client.mgmt.core.Nullable> allowedStrategies); + + /** + *

The client ID for the invitation landing page.

+ */ + _FinalStage invitationLandingClientId(@Nullable OptionalNullable invitationLandingClientId); + + _FinalStage invitationLandingClientId(String invitationLandingClientId); + + _FinalStage invitationLandingClientId(Optional invitationLandingClientId); + + _FinalStage invitationLandingClientId(com.auth0.client.mgmt.core.Nullable invitationLandingClientId); + + /** + *

Default admin roles to assign to organization creators.

+ */ + _FinalStage adminRolesAssignment(@Nullable OptionalNullable> adminRolesAssignment); + + _FinalStage adminRolesAssignment(List adminRolesAssignment); + + _FinalStage adminRolesAssignment(Optional> adminRolesAssignment); + + _FinalStage adminRolesAssignment(com.auth0.client.mgmt.core.Nullable> adminRolesAssignment); + + _FinalStage useForOrganizationDiscovery( + @Nullable + OptionalNullable useForOrganizationDiscovery); + + _FinalStage useForOrganizationDiscovery( + OrganizationTemplateUseForOrganizationDiscovery useForOrganizationDiscovery); + + _FinalStage useForOrganizationDiscovery( + Optional useForOrganizationDiscovery); + + _FinalStage useForOrganizationDiscovery( + com.auth0.client.mgmt.core.Nullable + useForOrganizationDiscovery); + + _FinalStage roleVisibilityPolicy( + @Nullable OptionalNullable roleVisibilityPolicy); + + _FinalStage roleVisibilityPolicy(OrganizationTemplateRoleVisibilityPolicy roleVisibilityPolicy); + + _FinalStage roleVisibilityPolicy(Optional roleVisibilityPolicy); + + _FinalStage roleVisibilityPolicy( + com.auth0.client.mgmt.core.Nullable roleVisibilityPolicy); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements NameStage, + OrganizationDeletionBehaviorStage, + EnforcePermissionCeilingStage, + EnforceSelfAssignmentRestrictionStage, + _FinalStage { + private String name; + + private OrganizationDeletionBehaviorEnum organizationDeletionBehavior; + + private boolean enforcePermissionCeiling; + + private boolean enforceSelfAssignmentRestriction; + + private OptionalNullable roleVisibilityPolicy = + OptionalNullable.absent(); + + private OptionalNullable useForOrganizationDiscovery = + OptionalNullable.absent(); + + private OptionalNullable> adminRolesAssignment = OptionalNullable.absent(); + + private OptionalNullable invitationLandingClientId = OptionalNullable.absent(); + + private OptionalNullable> allowedStrategies = + OptionalNullable.absent(); + + private OptionalNullable userAttributeProfileId = OptionalNullable.absent(); + + private OptionalNullable connectionProfileId = OptionalNullable.absent(); + + private Optional connectionDeletionBehavior = Optional.empty(); + + private Optional isDefault = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CreateOrganizationTemplateRequestContent other) { + name(other.getName()); + isDefault(other.getIsDefault()); + organizationDeletionBehavior(other.getOrganizationDeletionBehavior()); + connectionDeletionBehavior(other.getConnectionDeletionBehavior()); + enforcePermissionCeiling(other.getEnforcePermissionCeiling()); + enforceSelfAssignmentRestriction(other.getEnforceSelfAssignmentRestriction()); + connectionProfileId(other.getConnectionProfileId()); + userAttributeProfileId(other.getUserAttributeProfileId()); + allowedStrategies(other.getAllowedStrategies()); + invitationLandingClientId(other.getInvitationLandingClientId()); + adminRolesAssignment(other.getAdminRolesAssignment()); + useForOrganizationDiscovery(other.getUseForOrganizationDiscovery()); + roleVisibilityPolicy(other.getRoleVisibilityPolicy()); + return this; + } + + /** + *

The name of the organization template.

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

Whether to enforce permission ceiling for organizations using this template.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("enforce_permission_ceiling") + public EnforceSelfAssignmentRestrictionStage enforcePermissionCeiling(boolean enforcePermissionCeiling) { + this.enforcePermissionCeiling = enforcePermissionCeiling; + return this; + } + + /** + *

Whether to enforce self-assignment restrictions for organizations using this template.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("enforce_self_assignment_restriction") + public _FinalStage enforceSelfAssignmentRestriction(boolean enforceSelfAssignmentRestriction) { + this.enforceSelfAssignmentRestriction = enforceSelfAssignmentRestriction; + return this; + } + + @java.lang.Override + public _FinalStage roleVisibilityPolicy( + com.auth0.client.mgmt.core.Nullable roleVisibilityPolicy) { + if (roleVisibilityPolicy.isNull()) { + this.roleVisibilityPolicy = OptionalNullable.ofNull(); + } else if (roleVisibilityPolicy.isEmpty()) { + this.roleVisibilityPolicy = OptionalNullable.absent(); + } else { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage roleVisibilityPolicy( + Optional roleVisibilityPolicy) { + if (roleVisibilityPolicy.isPresent()) { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy.get()); + } else { + this.roleVisibilityPolicy = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage roleVisibilityPolicy(OrganizationTemplateRoleVisibilityPolicy roleVisibilityPolicy) { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy); + return this; + } + + @java.lang.Override + @JsonSetter(value = "role_visibility_policy", nulls = Nulls.SKIP) + public _FinalStage roleVisibilityPolicy( + @Nullable OptionalNullable roleVisibilityPolicy) { + this.roleVisibilityPolicy = roleVisibilityPolicy; + return this; + } + + @java.lang.Override + public _FinalStage useForOrganizationDiscovery( + com.auth0.client.mgmt.core.Nullable + useForOrganizationDiscovery) { + if (useForOrganizationDiscovery.isNull()) { + this.useForOrganizationDiscovery = OptionalNullable.ofNull(); + } else if (useForOrganizationDiscovery.isEmpty()) { + this.useForOrganizationDiscovery = OptionalNullable.absent(); + } else { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage useForOrganizationDiscovery( + Optional useForOrganizationDiscovery) { + if (useForOrganizationDiscovery.isPresent()) { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery.get()); + } else { + this.useForOrganizationDiscovery = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage useForOrganizationDiscovery( + OrganizationTemplateUseForOrganizationDiscovery useForOrganizationDiscovery) { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery); + return this; + } + + @java.lang.Override + @JsonSetter(value = "use_for_organization_discovery", nulls = Nulls.SKIP) + public _FinalStage useForOrganizationDiscovery( + @Nullable + OptionalNullable useForOrganizationDiscovery) { + this.useForOrganizationDiscovery = useForOrganizationDiscovery; + return this; + } + + /** + *

Default admin roles to assign to organization creators.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminRolesAssignment( + com.auth0.client.mgmt.core.Nullable> adminRolesAssignment) { + if (adminRolesAssignment.isNull()) { + this.adminRolesAssignment = OptionalNullable.ofNull(); + } else if (adminRolesAssignment.isEmpty()) { + this.adminRolesAssignment = OptionalNullable.absent(); + } else { + this.adminRolesAssignment = OptionalNullable.of(adminRolesAssignment.get()); + } + return this; + } + + /** + *

Default admin roles to assign to organization creators.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminRolesAssignment(Optional> adminRolesAssignment) { + if (adminRolesAssignment.isPresent()) { + this.adminRolesAssignment = OptionalNullable.of(adminRolesAssignment.get()); + } else { + this.adminRolesAssignment = OptionalNullable.absent(); + } + return this; + } + + /** + *

Default admin roles to assign to organization creators.

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

Default admin roles to assign to organization creators.

+ */ + @java.lang.Override + @JsonSetter(value = "admin_roles_assignment", nulls = Nulls.SKIP) + public _FinalStage adminRolesAssignment(@Nullable OptionalNullable> adminRolesAssignment) { + this.adminRolesAssignment = adminRolesAssignment; + return this; + } + + /** + *

The client ID for the invitation landing page.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage invitationLandingClientId( + com.auth0.client.mgmt.core.Nullable invitationLandingClientId) { + if (invitationLandingClientId.isNull()) { + this.invitationLandingClientId = OptionalNullable.ofNull(); + } else if (invitationLandingClientId.isEmpty()) { + this.invitationLandingClientId = OptionalNullable.absent(); + } else { + this.invitationLandingClientId = OptionalNullable.of(invitationLandingClientId.get()); + } + return this; + } + + /** + *

The client ID for the invitation landing page.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage invitationLandingClientId(Optional invitationLandingClientId) { + if (invitationLandingClientId.isPresent()) { + this.invitationLandingClientId = OptionalNullable.of(invitationLandingClientId.get()); + } else { + this.invitationLandingClientId = OptionalNullable.absent(); + } + return this; + } + + /** + *

The client ID for the invitation landing page.

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

The client ID for the invitation landing page.

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

List of allowed connection strategies for this template.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowedStrategies( + com.auth0.client.mgmt.core.Nullable> allowedStrategies) { + if (allowedStrategies.isNull()) { + this.allowedStrategies = OptionalNullable.ofNull(); + } else if (allowedStrategies.isEmpty()) { + this.allowedStrategies = OptionalNullable.absent(); + } else { + this.allowedStrategies = OptionalNullable.of(allowedStrategies.get()); + } + return this; + } + + /** + *

List of allowed connection strategies for this template.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowedStrategies( + Optional> allowedStrategies) { + if (allowedStrategies.isPresent()) { + this.allowedStrategies = OptionalNullable.of(allowedStrategies.get()); + } else { + this.allowedStrategies = OptionalNullable.absent(); + } + return this; + } + + /** + *

List of allowed connection strategies for this template.

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

List of allowed connection strategies for this template.

+ */ + @java.lang.Override + @JsonSetter(value = "allowed_strategies", nulls = Nulls.SKIP) + public _FinalStage allowedStrategies( + @Nullable OptionalNullable> allowedStrategies) { + this.allowedStrategies = allowedStrategies; + return this; + } + + /** + *

The user attribute profile to apply to organizations.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userAttributeProfileId(com.auth0.client.mgmt.core.Nullable userAttributeProfileId) { + if (userAttributeProfileId.isNull()) { + this.userAttributeProfileId = OptionalNullable.ofNull(); + } else if (userAttributeProfileId.isEmpty()) { + this.userAttributeProfileId = OptionalNullable.absent(); + } else { + this.userAttributeProfileId = OptionalNullable.of(userAttributeProfileId.get()); + } + return this; + } + + /** + *

The user attribute profile to apply to organizations.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userAttributeProfileId(Optional userAttributeProfileId) { + if (userAttributeProfileId.isPresent()) { + this.userAttributeProfileId = OptionalNullable.of(userAttributeProfileId.get()); + } else { + this.userAttributeProfileId = OptionalNullable.absent(); + } + return this; + } + + /** + *

The user attribute profile to apply to organizations.

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

The user attribute profile to apply to organizations.

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

The connection profile to apply to new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage connectionProfileId(com.auth0.client.mgmt.core.Nullable connectionProfileId) { + if (connectionProfileId.isNull()) { + this.connectionProfileId = OptionalNullable.ofNull(); + } else if (connectionProfileId.isEmpty()) { + this.connectionProfileId = OptionalNullable.absent(); + } else { + this.connectionProfileId = OptionalNullable.of(connectionProfileId.get()); + } + return this; + } + + /** + *

The connection profile to apply to new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage connectionProfileId(Optional connectionProfileId) { + if (connectionProfileId.isPresent()) { + this.connectionProfileId = OptionalNullable.of(connectionProfileId.get()); + } else { + this.connectionProfileId = OptionalNullable.absent(); + } + return this; + } + + /** + *

The connection profile to apply to new connections.

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

The connection profile to apply to new connections.

+ */ + @java.lang.Override + @JsonSetter(value = "connection_profile_id", nulls = Nulls.SKIP) + public _FinalStage connectionProfileId(@Nullable OptionalNullable connectionProfileId) { + this.connectionProfileId = connectionProfileId; + return this; + } + + @java.lang.Override + public _FinalStage connectionDeletionBehavior(ConnectionDeletionBehaviorEnum connectionDeletionBehavior) { + this.connectionDeletionBehavior = Optional.ofNullable(connectionDeletionBehavior); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_deletion_behavior", nulls = Nulls.SKIP) + public _FinalStage connectionDeletionBehavior( + Optional connectionDeletionBehavior) { + this.connectionDeletionBehavior = connectionDeletionBehavior; + return this; + } + + /** + *

Whether this is the default template applied to new organizations.

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

Whether this is the default template applied to new organizations.

+ */ + @java.lang.Override + @JsonSetter(value = "is_default", nulls = Nulls.SKIP) + public _FinalStage isDefault(Optional isDefault) { + this.isDefault = isDefault; + return this; + } + + @java.lang.Override + public CreateOrganizationTemplateRequestContent build() { + return new CreateOrganizationTemplateRequestContent( + name, + isDefault, + organizationDeletionBehavior, + connectionDeletionBehavior, + enforcePermissionCeiling, + enforceSelfAssignmentRestriction, + connectionProfileId, + userAttributeProfileId, + allowedStrategies, + invitationLandingClientId, + adminRolesAssignment, + useForOrganizationDiscovery, + roleVisibilityPolicy, + 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/CrossAppAccessRequestingApp.java b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java index 0eb612af2..269f7177f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java @@ -28,7 +28,7 @@ private CrossAppAccessRequestingApp(boolean active, Map addition } /** - * @return Set to true to enable the connection as a Requesting Application for Cross App Access. + * @return Set to true to enable the connection as a Requesting Application for Cross App Access. On oidc connections this requires options.type to be back_channel. Setting false is always accepted, so the role can be turned off even if the tenant or connection no longer supports it. */ @JsonProperty("active") public boolean getActive() { @@ -66,7 +66,7 @@ public static ActiveStage builder() { public interface ActiveStage { /** - *

Set to true to enable the connection as a Requesting Application for Cross App Access.

+ *

Set to true to enable the connection as a Requesting Application for Cross App Access. On oidc connections this requires options.type to be back_channel. Setting false is always accepted, so the role can be turned off even if the tenant or connection no longer supports it.

*/ _FinalStage active(boolean active); @@ -97,7 +97,7 @@ public Builder from(CrossAppAccessRequestingApp other) { } /** - *

Set to true to enable the connection as a Requesting Application for Cross App Access.

+ *

Set to true to enable the connection as a Requesting Application for Cross App Access. On oidc connections this requires options.type to be back_channel. Setting false is always accepted, so the role can be turned off even if the tenant or connection no longer supports it.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java index 7e6962de6..be3212637 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventConnectionCreatedData { private final EventStreamCloudEventConnectionCreatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventConnectionCreatedData( EventStreamCloudEventConnectionCreatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventConnectionCreatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventConnectionCreatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventConnectionCreatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventConnectionCreatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventConnectionCreatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventConnectionCreatedData build() { - return new EventStreamCloudEventConnectionCreatedData(object, context, additionalProperties); + return new EventStreamCloudEventConnectionCreatedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java index 8cf86908a..f4db5bf28 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java @@ -74,6 +74,8 @@ public final class EventStreamCloudEventConnectionCreatedObject0Options { private final Optional> upstreamParams; + private final Optional useOauthSpecScope; + private final Optional userinfoEndpoint; private final Optional attributeMap; @@ -114,6 +116,7 @@ private EventStreamCloudEventConnectionCreatedObject0Options( Optional tokenEndpointJwtcaAudFormat, Optional> upstreamParams, + Optional useOauthSpecScope, Optional userinfoEndpoint, Optional attributeMap, Optional discoveryUrl, @@ -142,6 +145,7 @@ private EventStreamCloudEventConnectionCreatedObject0Options( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.upstreamParams = upstreamParams; + this.useOauthSpecScope = useOauthSpecScope; this.userinfoEndpoint = userinfoEndpoint; this.attributeMap = attributeMap; this.discoveryUrl = discoveryUrl; @@ -309,6 +313,14 @@ public Optional> getUpstreamParams() { return upstreamParams; } + /** + * @return When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + /** * @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. */ @@ -371,6 +383,7 @@ private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0Options oth && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) && upstreamParams.equals(other.upstreamParams) + && useOauthSpecScope.equals(other.useOauthSpecScope) && userinfoEndpoint.equals(other.userinfoEndpoint) && attributeMap.equals(other.attributeMap) && discoveryUrl.equals(other.discoveryUrl) @@ -403,6 +416,7 @@ public int hashCode() { this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, this.upstreamParams, + this.useOauthSpecScope, this.userinfoEndpoint, this.attributeMap, this.discoveryUrl, @@ -587,6 +601,13 @@ _FinalStage tokenEndpointJwtcaAudFormat( _FinalStage upstreamParams(Map upstreamParams); + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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.

*/ @@ -624,6 +645,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional userinfoEndpoint = Optional.empty(); + private Optional useOauthSpecScope = Optional.empty(); + private Optional> upstreamParams = Optional.empty(); private Optional @@ -708,6 +731,7 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0Options other) tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); upstreamParams(other.getUpstreamParams()); + useOauthSpecScope(other.getUseOauthSpecScope()); userinfoEndpoint(other.getUserinfoEndpoint()); attributeMap(other.getAttributeMap()); discoveryUrl(other.getDiscoveryUrl()); @@ -793,6 +817,26 @@ public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { return this; } + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + return this; + } + @java.lang.Override public _FinalStage upstreamParams(Map upstreamParams) { this.upstreamParams = Optional.ofNullable(upstreamParams); @@ -1219,6 +1263,7 @@ public EventStreamCloudEventConnectionCreatedObject0Options build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, upstreamParams, + useOauthSpecScope, userinfoEndpoint, attributeMap, discoveryUrl, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java index ce43ec619..7a661cdda 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java @@ -35,6 +35,8 @@ public final class EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetad private final Optional> claimsSupported; + private final Optional> codeChallengeMethodsSupported; + private final Optional> displayValuesSupported; private final Optional> dpopSigningAlgValuesSupported; @@ -106,6 +108,7 @@ private EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata( Optional> claimsLocalesSupported, Optional claimsParameterSupported, Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, Optional> displayValuesSupported, Optional> dpopSigningAlgValuesSupported, Optional endSessionEndpoint, @@ -144,6 +147,7 @@ private EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata( this.claimsLocalesSupported = claimsLocalesSupported; this.claimsParameterSupported = claimsParameterSupported; this.claimsSupported = claimsSupported; + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; this.displayValuesSupported = displayValuesSupported; this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.endSessionEndpoint = endSessionEndpoint; @@ -226,6 +230,14 @@ public Optional> getClaimsSupported() { return claimsSupported; } + /** + * @return JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + /** * @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. */ @@ -493,6 +505,7 @@ private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0OptionsOidc && claimsLocalesSupported.equals(other.claimsLocalesSupported) && claimsParameterSupported.equals(other.claimsParameterSupported) && claimsSupported.equals(other.claimsSupported) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) && displayValuesSupported.equals(other.displayValuesSupported) && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) && endSessionEndpoint.equals(other.endSessionEndpoint) @@ -535,6 +548,7 @@ public int hashCode() { this.claimsLocalesSupported, this.claimsParameterSupported, this.claimsSupported, + this.codeChallengeMethodsSupported, this.displayValuesSupported, this.dpopSigningAlgValuesSupported, this.endSessionEndpoint, @@ -642,6 +656,13 @@ public interface _FinalStage { _FinalStage claimsSupported(List claimsSupported); + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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.

*/ @@ -918,6 +939,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional> displayValuesSupported = Optional.empty(); + private Optional> codeChallengeMethodsSupported = Optional.empty(); + private Optional> claimsSupported = Optional.empty(); private Optional claimsParameterSupported = Optional.empty(); @@ -941,6 +964,7 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMeta claimsLocalesSupported(other.getClaimsLocalesSupported()); claimsParameterSupported(other.getClaimsParameterSupported()); claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); displayValuesSupported(other.getDisplayValuesSupported()); dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); endSessionEndpoint(other.getEndSessionEndpoint()); @@ -1618,6 +1642,26 @@ public _FinalStage displayValuesSupported(Optional> displayValuesSu return this; } + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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. @@ -1727,6 +1771,7 @@ public EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata build() claimsLocalesSupported, claimsParameterSupported, claimsSupported, + codeChallengeMethodsSupported, displayValuesSupported, dpopSigningAlgValuesSupported, endSessionEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java index c21a8a76d..c3698e9fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java @@ -74,6 +74,8 @@ public final class EventStreamCloudEventConnectionCreatedObject1Options { private final Optional> upstreamParams; + private final Optional useOauthSpecScope; + private final Optional userinfoEndpoint; private final Optional attributeMap; @@ -114,6 +116,7 @@ private EventStreamCloudEventConnectionCreatedObject1Options( Optional tokenEndpointJwtcaAudFormat, Optional> upstreamParams, + Optional useOauthSpecScope, Optional userinfoEndpoint, Optional attributeMap, Optional domain, @@ -142,6 +145,7 @@ private EventStreamCloudEventConnectionCreatedObject1Options( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.upstreamParams = upstreamParams; + this.useOauthSpecScope = useOauthSpecScope; this.userinfoEndpoint = userinfoEndpoint; this.attributeMap = attributeMap; this.domain = domain; @@ -309,6 +313,14 @@ public Optional> getUpstreamParams() { return upstreamParams; } + /** + * @return When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + /** * @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. */ @@ -371,6 +383,7 @@ private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1Options oth && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) && upstreamParams.equals(other.upstreamParams) + && useOauthSpecScope.equals(other.useOauthSpecScope) && userinfoEndpoint.equals(other.userinfoEndpoint) && attributeMap.equals(other.attributeMap) && domain.equals(other.domain) @@ -403,6 +416,7 @@ public int hashCode() { this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, this.upstreamParams, + this.useOauthSpecScope, this.userinfoEndpoint, this.attributeMap, this.domain, @@ -587,6 +601,13 @@ _FinalStage tokenEndpointJwtcaAudFormat( _FinalStage upstreamParams(Map upstreamParams); + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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.

*/ @@ -624,6 +645,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional userinfoEndpoint = Optional.empty(); + private Optional useOauthSpecScope = Optional.empty(); + private Optional> upstreamParams = Optional.empty(); private Optional @@ -708,6 +731,7 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1Options other) tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); upstreamParams(other.getUpstreamParams()); + useOauthSpecScope(other.getUseOauthSpecScope()); userinfoEndpoint(other.getUserinfoEndpoint()); attributeMap(other.getAttributeMap()); domain(other.getDomain()); @@ -793,6 +817,26 @@ public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { return this; } + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + return this; + } + @java.lang.Override public _FinalStage upstreamParams(Map upstreamParams) { this.upstreamParams = Optional.ofNullable(upstreamParams); @@ -1219,6 +1263,7 @@ public EventStreamCloudEventConnectionCreatedObject1Options build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, upstreamParams, + useOauthSpecScope, userinfoEndpoint, attributeMap, domain, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java index b6c6ddd8a..fe4f4ae34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java @@ -35,6 +35,8 @@ public final class EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetad private final Optional> claimsSupported; + private final Optional> codeChallengeMethodsSupported; + private final Optional> displayValuesSupported; private final Optional> dpopSigningAlgValuesSupported; @@ -106,6 +108,7 @@ private EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata( Optional> claimsLocalesSupported, Optional claimsParameterSupported, Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, Optional> displayValuesSupported, Optional> dpopSigningAlgValuesSupported, Optional endSessionEndpoint, @@ -144,6 +147,7 @@ private EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata( this.claimsLocalesSupported = claimsLocalesSupported; this.claimsParameterSupported = claimsParameterSupported; this.claimsSupported = claimsSupported; + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; this.displayValuesSupported = displayValuesSupported; this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.endSessionEndpoint = endSessionEndpoint; @@ -226,6 +230,14 @@ public Optional> getClaimsSupported() { return claimsSupported; } + /** + * @return JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + /** * @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. */ @@ -493,6 +505,7 @@ private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1OptionsOidc && claimsLocalesSupported.equals(other.claimsLocalesSupported) && claimsParameterSupported.equals(other.claimsParameterSupported) && claimsSupported.equals(other.claimsSupported) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) && displayValuesSupported.equals(other.displayValuesSupported) && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) && endSessionEndpoint.equals(other.endSessionEndpoint) @@ -535,6 +548,7 @@ public int hashCode() { this.claimsLocalesSupported, this.claimsParameterSupported, this.claimsSupported, + this.codeChallengeMethodsSupported, this.displayValuesSupported, this.dpopSigningAlgValuesSupported, this.endSessionEndpoint, @@ -642,6 +656,13 @@ public interface _FinalStage { _FinalStage claimsSupported(List claimsSupported); + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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.

*/ @@ -918,6 +939,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional> displayValuesSupported = Optional.empty(); + private Optional> codeChallengeMethodsSupported = Optional.empty(); + private Optional> claimsSupported = Optional.empty(); private Optional claimsParameterSupported = Optional.empty(); @@ -941,6 +964,7 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMeta claimsLocalesSupported(other.getClaimsLocalesSupported()); claimsParameterSupported(other.getClaimsParameterSupported()); claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); displayValuesSupported(other.getDisplayValuesSupported()); dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); endSessionEndpoint(other.getEndSessionEndpoint()); @@ -1618,6 +1642,26 @@ public _FinalStage displayValuesSupported(Optional> displayValuesSu return this; } + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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. @@ -1727,6 +1771,7 @@ public EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata build() claimsLocalesSupported, claimsParameterSupported, claimsSupported, + codeChallengeMethodsSupported, displayValuesSupported, dpopSigningAlgValuesSupported, endSessionEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java index 54e7ec82d..eda968cf3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java @@ -71,16 +71,24 @@ public final class EventStreamCloudEventConnectionCreatedObject2Options { private final Optional destinationUrl; + private final Optional disableFieldsMapFix; + private final Optional disableSignout; + private final Optional discoveryUrl; + private final Optional> fieldsMap; + private final Optional fieldsMapJsonRaw; + private final Optional globalTokenRevocationJwtIss; private final Optional globalTokenRevocationJwtSub; private final Optional metadataUrl; + private final Optional oidcMetadata; + private final Optional recipientUrl; private final Optional requestTemplate; @@ -117,11 +125,15 @@ private EventStreamCloudEventConnectionCreatedObject2Options( Optional debug, Optional deflate, Optional destinationUrl, + Optional disableFieldsMapFix, Optional disableSignout, + Optional discoveryUrl, Optional> fieldsMap, + Optional fieldsMapJsonRaw, Optional globalTokenRevocationJwtIss, Optional globalTokenRevocationJwtSub, Optional metadataUrl, + Optional oidcMetadata, Optional recipientUrl, Optional requestTemplate, Optional signOutEndpoint, @@ -150,11 +162,15 @@ private EventStreamCloudEventConnectionCreatedObject2Options( this.debug = debug; this.deflate = deflate; this.destinationUrl = destinationUrl; + this.disableFieldsMapFix = disableFieldsMapFix; this.disableSignout = disableSignout; + this.discoveryUrl = discoveryUrl; this.fieldsMap = fieldsMap; + this.fieldsMapJsonRaw = fieldsMapJsonRaw; this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; this.metadataUrl = metadataUrl; + this.oidcMetadata = oidcMetadata; this.recipientUrl = recipientUrl; this.requestTemplate = requestTemplate; this.signOutEndpoint = signOutEndpoint; @@ -325,6 +341,14 @@ public Optional getDestinationUrl() { return destinationUrl; } + /** + * @return When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). + */ + @JsonProperty("disableFieldsMapFix") + public Optional getDisableFieldsMapFix() { + return disableFieldsMapFix; + } + /** * @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). */ @@ -333,11 +357,27 @@ public Optional getDisableSignout() { return disableSignout; } + /** + * @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. Used with Cross App Access. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + @JsonProperty("fieldsMap") public Optional> getFieldsMap() { return fieldsMap; } + /** + * @return Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. + */ + @JsonProperty("fieldsMapJsonRaw") + public Optional getFieldsMapJsonRaw() { + return fieldsMapJsonRaw; + } + /** * @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. */ @@ -362,6 +402,11 @@ public Optional getMetadataUrl() { return metadataUrl; } + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + /** * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. */ @@ -430,11 +475,15 @@ private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2Options oth && debug.equals(other.debug) && deflate.equals(other.deflate) && destinationUrl.equals(other.destinationUrl) + && disableFieldsMapFix.equals(other.disableFieldsMapFix) && disableSignout.equals(other.disableSignout) + && discoveryUrl.equals(other.discoveryUrl) && fieldsMap.equals(other.fieldsMap) + && fieldsMapJsonRaw.equals(other.fieldsMapJsonRaw) && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) && metadataUrl.equals(other.metadataUrl) + && oidcMetadata.equals(other.oidcMetadata) && recipientUrl.equals(other.recipientUrl) && requestTemplate.equals(other.requestTemplate) && signOutEndpoint.equals(other.signOutEndpoint) @@ -467,11 +516,15 @@ public int hashCode() { this.debug, this.deflate, this.destinationUrl, + this.disableFieldsMapFix, this.disableSignout, + this.discoveryUrl, this.fieldsMap, + this.fieldsMapJsonRaw, this.globalTokenRevocationJwtIss, this.globalTokenRevocationJwtSub, this.metadataUrl, + this.oidcMetadata, this.recipientUrl, this.requestTemplate, this.signOutEndpoint, @@ -541,16 +594,25 @@ public static final class Builder { private Optional destinationUrl = Optional.empty(); + private Optional disableFieldsMapFix = Optional.empty(); + private Optional disableSignout = Optional.empty(); + private Optional discoveryUrl = Optional.empty(); + private Optional> fieldsMap = Optional.empty(); + private Optional fieldsMapJsonRaw = Optional.empty(); + private Optional globalTokenRevocationJwtIss = Optional.empty(); private Optional globalTokenRevocationJwtSub = Optional.empty(); private Optional metadataUrl = Optional.empty(); + private Optional oidcMetadata = + Optional.empty(); + private Optional recipientUrl = Optional.empty(); private Optional requestTemplate = Optional.empty(); @@ -588,11 +650,15 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject2Options other) debug(other.getDebug()); deflate(other.getDeflate()); destinationUrl(other.getDestinationUrl()); + disableFieldsMapFix(other.getDisableFieldsMapFix()); disableSignout(other.getDisableSignout()); + discoveryUrl(other.getDiscoveryUrl()); fieldsMap(other.getFieldsMap()); + fieldsMapJsonRaw(other.getFieldsMapJsonRaw()); globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); metadataUrl(other.getMetadataUrl()); + oidcMetadata(other.getOidcMetadata()); recipientUrl(other.getRecipientUrl()); requestTemplate(other.getRequestTemplate()); signOutEndpoint(other.getSignOutEndpoint()); @@ -913,6 +979,20 @@ public Builder destinationUrl(String destinationUrl) { return this; } + /** + *

When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).

+ */ + @JsonSetter(value = "disableFieldsMapFix", nulls = Nulls.SKIP) + public Builder disableFieldsMapFix(Optional disableFieldsMapFix) { + this.disableFieldsMapFix = disableFieldsMapFix; + return this; + } + + public Builder disableFieldsMapFix(Boolean disableFieldsMapFix) { + this.disableFieldsMapFix = Optional.ofNullable(disableFieldsMapFix); + 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).

*/ @@ -927,6 +1007,20 @@ public Builder disableSignout(Boolean disableSignout) { 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. Used with Cross App Access.

+ */ + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) public Builder fieldsMap(Optional> fieldsMap) { this.fieldsMap = fieldsMap; @@ -938,6 +1032,20 @@ public Builder fieldsMap(Map fieldsMap) { return this; } + /** + *

Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.

+ */ + @JsonSetter(value = "fieldsMapJsonRaw", nulls = Nulls.SKIP) + public Builder fieldsMapJsonRaw(Optional fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + return this; + } + + public Builder fieldsMapJsonRaw(String fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = Optional.ofNullable(fieldsMapJsonRaw); + 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.

*/ @@ -980,6 +1088,18 @@ public Builder metadataUrl(String metadataUrl) { return this; } + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata(EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + /** *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

*/ @@ -1061,11 +1181,15 @@ public EventStreamCloudEventConnectionCreatedObject2Options build() { debug, deflate, destinationUrl, + disableFieldsMapFix, disableSignout, + discoveryUrl, fieldsMap, + fieldsMapJsonRaw, globalTokenRevocationJwtIss, globalTokenRevocationJwtSub, metadataUrl, + oidcMetadata, recipientUrl, requestTemplate, signOutEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata.java new file mode 100644 index 000000000..e3e3c4b06 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionCreatedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java index fec1b1020..b2884bf13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java @@ -45,6 +45,8 @@ public final class EventStreamCloudEventConnectionCreatedObject5Options { private final Optional kerberos; + private final Optional kerberosOnly; + private final Optional> nonPersistentAttrs; private final Optional @@ -73,6 +75,7 @@ private EventStreamCloudEventConnectionCreatedObject5Options( Optional iconUrl, Optional> ips, Optional kerberos, + Optional kerberosOnly, Optional> nonPersistentAttrs, Optional setUserRootAttributes, @@ -93,6 +96,7 @@ private EventStreamCloudEventConnectionCreatedObject5Options( this.iconUrl = iconUrl; this.ips = ips; this.kerberos = kerberos; + this.kerberosOnly = kerberosOnly; this.nonPersistentAttrs = nonPersistentAttrs; this.setUserRootAttributes = setUserRootAttributes; this.signInEndpoint = signInEndpoint; @@ -198,6 +202,14 @@ public Optional getKerberos() { return kerberos; } + /** + * @return When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. + */ + @JsonProperty("kerberos_only") + public Optional getKerberosOnly() { + return kerberosOnly; + } + /** * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) */ @@ -266,6 +278,7 @@ private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5Options oth && iconUrl.equals(other.iconUrl) && ips.equals(other.ips) && kerberos.equals(other.kerberos) + && kerberosOnly.equals(other.kerberosOnly) && nonPersistentAttrs.equals(other.nonPersistentAttrs) && setUserRootAttributes.equals(other.setUserRootAttributes) && signInEndpoint.equals(other.signInEndpoint) @@ -289,6 +302,7 @@ public int hashCode() { this.iconUrl, this.ips, this.kerberos, + this.kerberosOnly, this.nonPersistentAttrs, this.setUserRootAttributes, this.signInEndpoint, @@ -332,6 +346,8 @@ public static final class Builder { private Optional kerberos = Optional.empty(); + private Optional kerberosOnly = Optional.empty(); + private Optional> nonPersistentAttrs = Optional.empty(); private Optional @@ -363,6 +379,7 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject5Options other) iconUrl(other.getIconUrl()); ips(other.getIps()); kerberos(other.getKerberos()); + kerberosOnly(other.getKerberosOnly()); nonPersistentAttrs(other.getNonPersistentAttrs()); setUserRootAttributes(other.getSetUserRootAttributes()); signInEndpoint(other.getSignInEndpoint()); @@ -540,6 +557,20 @@ public Builder kerberos(Boolean kerberos) { return this; } + /** + *

When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback.

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

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

*/ @@ -635,6 +666,7 @@ public EventStreamCloudEventConnectionCreatedObject5Options build() { iconUrl, ips, kerberos, + kerberosOnly, nonPersistentAttrs, setUserRootAttributes, signInEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject.java new file mode 100644 index 000000000..ec0b1f2b4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject.java @@ -0,0 +1,226 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject.Deserializer.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionCreatedPreviousObject(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((EventStreamCloudEventConnectionCreatedPreviousObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionCreatedPreviousObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionCreatedPreviousObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionCreatedPreviousObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionCreatedPreviousObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionCreatedPreviousObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionCreatedPreviousObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionCreatedPreviousObject7) 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 EventStreamCloudEventConnectionCreatedPreviousObject + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject 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 EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject0 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 0); + } + + public static EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject1 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 1); + } + + public static EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject2 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 2); + } + + public static EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject3 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 3); + } + + public static EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject4 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 4); + } + + public static EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject5 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 5); + } + + public static EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject6 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 6); + } + + public static EventStreamCloudEventConnectionCreatedPreviousObject of( + EventStreamCloudEventConnectionCreatedPreviousObject7 value) { + return new EventStreamCloudEventConnectionCreatedPreviousObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionCreatedPreviousObject0 value); + + T visit(EventStreamCloudEventConnectionCreatedPreviousObject1 value); + + T visit(EventStreamCloudEventConnectionCreatedPreviousObject2 value); + + T visit(EventStreamCloudEventConnectionCreatedPreviousObject3 value); + + T visit(EventStreamCloudEventConnectionCreatedPreviousObject4 value); + + T visit(EventStreamCloudEventConnectionCreatedPreviousObject5 value); + + T visit(EventStreamCloudEventConnectionCreatedPreviousObject6 value); + + T visit(EventStreamCloudEventConnectionCreatedPreviousObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionCreatedPreviousObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedPreviousObject 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, EventStreamCloudEventConnectionCreatedPreviousObject0.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, EventStreamCloudEventConnectionCreatedPreviousObject1.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, EventStreamCloudEventConnectionCreatedPreviousObject2.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, EventStreamCloudEventConnectionCreatedPreviousObject3.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, EventStreamCloudEventConnectionCreatedPreviousObject4.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, EventStreamCloudEventConnectionCreatedPreviousObject5.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, EventStreamCloudEventConnectionCreatedPreviousObject6.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, EventStreamCloudEventConnectionCreatedPreviousObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0.java new file mode 100644 index 000000000..47a1a3b9a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject0.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject0 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject0 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(EventStreamCloudEventConnectionCreatedPreviousObject0 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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject0Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject0Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedPreviousObject0Options 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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject0 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject0Options 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( + EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject0Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject0Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject0 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0Authentication.java new file mode 100644 index 000000000..a03e4bd1d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject0Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject0Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject0Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject0Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject0Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts.java new file mode 100644 index 000000000..fd8e93b99 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts.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 = EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0Metadata.java new file mode 100644 index 000000000..0b15dce06 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject0Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject0Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0Options.java new file mode 100644 index 000000000..c6b7856aa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0Options { + 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< + List> + 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 useOauthSpecScope; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional< + List< + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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 useOauthSpecScope, + 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.useOauthSpecScope = useOauthSpecScope; + 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 When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedPreviousObject0Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject0Options 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) + && useOauthSpecScope.equals(other.useOauthSpecScope) + && 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.useOauthSpecScope, + 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(EventStreamCloudEventConnectionCreatedPreviousObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject0Options 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens + 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< + List< + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap 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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum 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 useOauthSpecScope = 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< + List< + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionCreatedPreviousObject0Options 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()); + useOauthSpecScope(other.getUseOauthSpecScope()); + 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.

+ * @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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap 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; + } + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata 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< + List< + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings 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 EventStreamCloudEventConnectionCreatedPreviousObject0Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + useOauthSpecScope, + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap.java new file mode 100644 index 000000000..802ba915b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional + mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap( + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap 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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..3b76fec28 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,96 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum + BIND_ALL = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum + USE_MAP = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings.java new file mode 100644 index 000000000..499b2673f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings.java @@ -0,0 +1,112 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings( + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings 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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..cdcd4a0ed --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,119 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum + DISABLED = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum valueOf( + String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..5a1016ccb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum( + Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..e3da2e548 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..03b5621ea --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS512 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + ES384 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + PS384 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + ES256 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + PS256 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS384 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS256 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata.java new file mode 100644 index 000000000..af7e1259c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..c8cba5df8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum( + Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..de51ba6ce --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..f348278b4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..bd443f541 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS512 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + ES384 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + PS384 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + ES256 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + PS256 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS384 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS256 = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..4c697cf37 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + ISSUER = new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum.java new file mode 100644 index 000000000..d17e96b75 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum( + Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum( + Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum.java new file mode 100644 index 000000000..ccdf2818e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1.java new file mode 100644 index 000000000..747ef207d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject1.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject1 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject1 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(EventStreamCloudEventConnectionCreatedPreviousObject1 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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject1Metadata 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(EventStreamCloudEventConnectionCreatedPreviousObject1Options 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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject1 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject1Options 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(EventStreamCloudEventConnectionCreatedPreviousObject1Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts 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( + EventStreamCloudEventConnectionCreatedPreviousObject1Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject1 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1Authentication.java new file mode 100644 index 000000000..decba2582 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject1Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject1Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject1Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject1Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject1Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts.java new file mode 100644 index 000000000..89b4f788b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1Metadata.java new file mode 100644 index 000000000..d93288640 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject1Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject1Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1Options.java new file mode 100644 index 000000000..319a45789 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1Options { + 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< + List> + 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 useOauthSpecScope; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional< + List< + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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 useOauthSpecScope, + 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.useOauthSpecScope = useOauthSpecScope; + 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 When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedPreviousObject1Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject1Options 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) + && useOauthSpecScope.equals(other.useOauthSpecScope) + && 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.useOauthSpecScope, + 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(EventStreamCloudEventConnectionCreatedPreviousObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject1Options 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens + 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< + List< + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap 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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum 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 useOauthSpecScope = 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< + List< + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionCreatedPreviousObject1Options 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()); + useOauthSpecScope(other.getUseOauthSpecScope()); + 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.

+ * @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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap 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; + } + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata 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< + List< + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings 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 EventStreamCloudEventConnectionCreatedPreviousObject1Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + useOauthSpecScope, + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap.java new file mode 100644 index 000000000..ce5a30b27 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional + mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap( + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap 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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..4c14e16b0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,96 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum + USE_MAP = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum + BASIC_PROFILE = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings.java new file mode 100644 index 000000000..cdb1722d1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings.java @@ -0,0 +1,112 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings( + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings 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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..3213ef9ac --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,119 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum + DISABLED = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum valueOf( + String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..9ce795887 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum( + Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..e3097857b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..51da0e4ab --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS512 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + ES384 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + PS384 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + ES256 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + PS256 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS384 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS256 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata.java new file mode 100644 index 000000000..1b19a5fff --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..fd654137f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum( + Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..13376d5dd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..ec61e6290 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..15198e3a9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS512 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + ES384 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + PS384 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + ES256 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + PS256 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS384 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS256 = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..0667e7a83 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + ISSUER = new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum.java new file mode 100644 index 000000000..f473b5621 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum( + Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum.java new file mode 100644 index 000000000..781609606 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2.java new file mode 100644 index 000000000..aea495e7a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject2 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject2 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(EventStreamCloudEventConnectionCreatedPreviousObject2 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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject2Metadata 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(EventStreamCloudEventConnectionCreatedPreviousObject2Options 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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject2 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject2Options 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(EventStreamCloudEventConnectionCreatedPreviousObject2Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts 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( + EventStreamCloudEventConnectionCreatedPreviousObject2Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject2 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2Authentication.java new file mode 100644 index 000000000..cd5e8feb3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject2Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject2Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject2Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject2Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject2Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts.java new file mode 100644 index 000000000..a72e0c9f6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2Metadata.java new file mode 100644 index 000000000..9a032638d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject2Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject2Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2Options.java new file mode 100644 index 000000000..d84f68ea5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2Options.java @@ -0,0 +1,1221 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2Options { + 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 disableFieldsMapFix; + + private final Optional disableSignout; + + private final Optional discoveryUrl; + + private final Optional> fieldsMap; + + private final Optional fieldsMapJsonRaw; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional oidcMetadata; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2Options( + 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 disableFieldsMapFix, + Optional disableSignout, + Optional discoveryUrl, + Optional> fieldsMap, + Optional fieldsMapJsonRaw, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional oidcMetadata, + 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.disableFieldsMapFix = disableFieldsMapFix; + this.disableSignout = disableSignout; + this.discoveryUrl = discoveryUrl; + this.fieldsMap = fieldsMap; + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.oidcMetadata = oidcMetadata; + 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 the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). + */ + @JsonProperty("disableFieldsMapFix") + public Optional getDisableFieldsMapFix() { + return disableFieldsMapFix; + } + + /** + * @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; + } + + /** + * @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. Used with Cross App Access. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. + */ + @JsonProperty("fieldsMapJsonRaw") + public Optional getFieldsMapJsonRaw() { + return fieldsMapJsonRaw; + } + + /** + * @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; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedPreviousObject2Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject2Options 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) + && disableFieldsMapFix.equals(other.disableFieldsMapFix) + && disableSignout.equals(other.disableSignout) + && discoveryUrl.equals(other.discoveryUrl) + && fieldsMap.equals(other.fieldsMap) + && fieldsMapJsonRaw.equals(other.fieldsMapJsonRaw) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && oidcMetadata.equals(other.oidcMetadata) + && 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.disableFieldsMapFix, + this.disableSignout, + this.discoveryUrl, + this.fieldsMap, + this.fieldsMapJsonRaw, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.oidcMetadata, + 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 disableFieldsMapFix = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional fieldsMapJsonRaw = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional oidcMetadata = + 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(EventStreamCloudEventConnectionCreatedPreviousObject2Options 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()); + disableFieldsMapFix(other.getDisableFieldsMapFix()); + disableSignout(other.getDisableSignout()); + discoveryUrl(other.getDiscoveryUrl()); + fieldsMap(other.getFieldsMap()); + fieldsMapJsonRaw(other.getFieldsMapJsonRaw()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + oidcMetadata(other.getOidcMetadata()); + 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( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings + 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( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated 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( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject 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 the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).

+ */ + @JsonSetter(value = "disableFieldsMapFix", nulls = Nulls.SKIP) + public Builder disableFieldsMapFix(Optional disableFieldsMapFix) { + this.disableFieldsMapFix = disableFieldsMapFix; + return this; + } + + public Builder disableFieldsMapFix(Boolean disableFieldsMapFix) { + this.disableFieldsMapFix = Optional.ofNullable(disableFieldsMapFix); + 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; + } + + /** + *

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. Used with Cross App Access.

+ */ + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + 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; + } + + /** + *

Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.

+ */ + @JsonSetter(value = "fieldsMapJsonRaw", nulls = Nulls.SKIP) + public Builder fieldsMapJsonRaw(Optional fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + return this; + } + + public Builder fieldsMapJsonRaw(String fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = Optional.ofNullable(fieldsMapJsonRaw); + 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; + } + + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + 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 EventStreamCloudEventConnectionCreatedPreviousObject2Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableFieldsMapFix, + disableSignout, + discoveryUrl, + fieldsMap, + fieldsMapJsonRaw, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + oidcMetadata, + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..ff1a33f9b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,183 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..da25e95ab --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + 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 + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum valueOf( + String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..7b9298bab --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum valueOf( + String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated.java new file mode 100644 index 000000000..06c471c95 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated.java @@ -0,0 +1,207 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated( + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated 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(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated 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( + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..88c853379 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,108 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + WSFED = new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + SAMLP = new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + OIDC = new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata.java new file mode 100644 index 000000000..e83465525 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..7a95645fe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum( + 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; + + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..6a716d3cb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..db75c1ae3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum valueOf( + String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject.java new file mode 100644 index 000000000..8e69e0378 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject.java @@ -0,0 +1,70 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject( + Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject(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/EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum.java new file mode 100644 index 000000000..6b033fd33 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3.java new file mode 100644 index 000000000..7be64dd28 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject3.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject3 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject3 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(EventStreamCloudEventConnectionCreatedPreviousObject3 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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject3Metadata 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(EventStreamCloudEventConnectionCreatedPreviousObject3Options 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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject3 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject3Options 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(EventStreamCloudEventConnectionCreatedPreviousObject3Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts 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( + EventStreamCloudEventConnectionCreatedPreviousObject3Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject3 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3Authentication.java new file mode 100644 index 000000000..8b599f7c4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject3Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject3Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject3Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject3Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject3Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject3Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts.java new file mode 100644 index 000000000..1567072cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3Metadata.java new file mode 100644 index 000000000..efbf10ec3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject3Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject3Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3Options.java new file mode 100644 index 000000000..45c7e55c9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3Options.java @@ -0,0 +1,993 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3Options { + 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 EventStreamCloudEventConnectionCreatedPreviousObject3Options( + 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 EventStreamCloudEventConnectionCreatedPreviousObject3Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject3Options 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(EventStreamCloudEventConnectionCreatedPreviousObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings + 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum + setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject 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(EventStreamCloudEventConnectionCreatedPreviousObject3Options 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

+ * @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(EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings + 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 EventStreamCloudEventConnectionCreatedPreviousObject3Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3Options( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..0fec11e53 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,183 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..a7cd34ccc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + 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 + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum valueOf( + String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..747b44d14 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum valueOf( + String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated.java new file mode 100644 index 000000000..3b1304c43 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated.java @@ -0,0 +1,207 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated( + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated 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(EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..67c3a6128 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,108 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + WSFED = new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + SAMLP = new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + OIDC = new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..05da56023 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum( + 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; + + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..94307e163 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..66a0056cc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum valueOf( + String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject.java new file mode 100644 index 000000000..da00d6e2b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject.java @@ -0,0 +1,70 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject( + Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject(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/EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum.java new file mode 100644 index 000000000..7731a67ec --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4.java new file mode 100644 index 000000000..24e660b6b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject4.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject4 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject4 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject4 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(EventStreamCloudEventConnectionCreatedPreviousObject4 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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject4Metadata 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(EventStreamCloudEventConnectionCreatedPreviousObject4Options 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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject4 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject4Options 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(EventStreamCloudEventConnectionCreatedPreviousObject4Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts 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( + EventStreamCloudEventConnectionCreatedPreviousObject4Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject4 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject4( + 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/EventStreamCloudEventConnectionCreatedPreviousObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4Authentication.java new file mode 100644 index 000000000..94f8d5e10 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject4Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject4Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject4Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject4Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject4Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject4Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject4Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts.java new file mode 100644 index 000000000..f6bc11b32 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4Metadata.java new file mode 100644 index 000000000..772639b5c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject4Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject4Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject4Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4Options.java new file mode 100644 index 000000000..69d12447c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4Options.java @@ -0,0 +1,568 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject4Options { + 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< + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + 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 EventStreamCloudEventConnectionCreatedPreviousObject4Options( + 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 EventStreamCloudEventConnectionCreatedPreviousObject4Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject4Options 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< + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + 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(EventStreamCloudEventConnectionCreatedPreviousObject4Options 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( + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum + setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional< + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject4Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject4Options( + 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/EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..668a016ce --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..998dd5abc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,100 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum.java new file mode 100644 index 000000000..5caa4c702 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5.java new file mode 100644 index 000000000..aaaae8aaf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5.java @@ -0,0 +1,517 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject5.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject5 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject5 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject5 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(EventStreamCloudEventConnectionCreatedPreviousObject5 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 EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject5Metadata 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(EventStreamCloudEventConnectionCreatedPreviousObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject5 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedPreviousObject5Options 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(EventStreamCloudEventConnectionCreatedPreviousObject5Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts 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( + EventStreamCloudEventConnectionCreatedPreviousObject5Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject5 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject5( + 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/EventStreamCloudEventConnectionCreatedPreviousObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5Authentication.java new file mode 100644 index 000000000..bcfc09f9f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject5Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject5Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject5Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject5Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject5Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject5Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject5Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts.java new file mode 100644 index 000000000..8a96c5959 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5Metadata.java new file mode 100644 index 000000000..51c66a9e8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject5Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject5Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject5Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5Options.java new file mode 100644 index 000000000..202b8a443 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5Options.java @@ -0,0 +1,690 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject5Options { + 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 kerberosOnly; + + 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 EventStreamCloudEventConnectionCreatedPreviousObject5Options( + 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 kerberosOnly, + 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.kerberosOnly = kerberosOnly; + 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 When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. + */ + @JsonProperty("kerberos_only") + public Optional getKerberosOnly() { + return kerberosOnly; + } + + /** + * @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 EventStreamCloudEventConnectionCreatedPreviousObject5Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject5Options 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) + && kerberosOnly.equals(other.kerberosOnly) + && 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.kerberosOnly, + 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 kerberosOnly = 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(EventStreamCloudEventConnectionCreatedPreviousObject5Options 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()); + kerberosOnly(other.getKerberosOnly()); + 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; + } + + /** + *

When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback.

+ */ + @JsonSetter(value = "kerberos_only", nulls = Nulls.SKIP) + public Builder kerberosOnly(Optional kerberosOnly) { + this.kerberosOnly = kerberosOnly; + return this; + } + + public Builder kerberosOnly(Boolean kerberosOnly) { + this.kerberosOnly = Optional.ofNullable(kerberosOnly); + 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( + EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject5Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + kerberosOnly, + 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/EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..2d0ca2904 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum.java new file mode 100644 index 000000000..1c43db6d7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum AD = + new EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6.java new file mode 100644 index 000000000..1f473531d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject6.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject6 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject6 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject6 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(EventStreamCloudEventConnectionCreatedPreviousObject6 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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject6Metadata 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(EventStreamCloudEventConnectionCreatedPreviousObject6Options 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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject6 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject6Options 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(EventStreamCloudEventConnectionCreatedPreviousObject6Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts 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( + EventStreamCloudEventConnectionCreatedPreviousObject6Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject6 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject6( + 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/EventStreamCloudEventConnectionCreatedPreviousObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6Authentication.java new file mode 100644 index 000000000..bfdcac7fb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject6Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject6Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject6Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject6Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject6Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject6Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject6Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts.java new file mode 100644 index 000000000..24a9dcb94 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6Metadata.java new file mode 100644 index 000000000..ae4268e34 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject6Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject6Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject6Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6Options.java new file mode 100644 index 000000000..b82b37fa7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6Options.java @@ -0,0 +1,1113 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject6Options { + 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 EventStreamCloudEventConnectionCreatedPreviousObject6Options( + 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 EventStreamCloudEventConnectionCreatedPreviousObject6Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject6Options 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(EventStreamCloudEventConnectionCreatedPreviousObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject6Options 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( + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum + 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(EventStreamCloudEventConnectionCreatedPreviousObject6Options 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.

+ * @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( + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens + 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 EventStreamCloudEventConnectionCreatedPreviousObject6Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject6Options( + 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/EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..1fcd78d26 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..6fe4fd776 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum.java new file mode 100644 index 000000000..9258ea867 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum(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/EventStreamCloudEventConnectionCreatedPreviousObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7.java new file mode 100644 index 000000000..c30ef1ed5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject7.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject7 { + 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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject7 + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject7 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(EventStreamCloudEventConnectionCreatedPreviousObject7 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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedPreviousObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject7Metadata 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(EventStreamCloudEventConnectionCreatedPreviousObject7Options 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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject7 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

+ * @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

+ * @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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum 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(EventStreamCloudEventConnectionCreatedPreviousObject7Options 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(EventStreamCloudEventConnectionCreatedPreviousObject7Metadata 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( + EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts 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( + EventStreamCloudEventConnectionCreatedPreviousObject7Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject7 build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject7( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7Authentication.java new file mode 100644 index 000000000..e943546e8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject7Authentication( + 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 EventStreamCloudEventConnectionCreatedPreviousObject7Authentication + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject7Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject7Authentication 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(EventStreamCloudEventConnectionCreatedPreviousObject7Authentication 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 EventStreamCloudEventConnectionCreatedPreviousObject7Authentication build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject7Authentication( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts.java new file mode 100644 index 000000000..4d7402aa3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts( + 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 EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts 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 EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7Metadata.java new file mode 100644 index 000000000..fc8928984 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7Metadata.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 = EventStreamCloudEventConnectionCreatedPreviousObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedPreviousObject7Metadata; + } + + @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(EventStreamCloudEventConnectionCreatedPreviousObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedPreviousObject7Metadata build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject7Metadata(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/EventStreamCloudEventConnectionCreatedPreviousObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7Options.java new file mode 100644 index 000000000..55338d193 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionCreatedPreviousObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject7Options { + 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< + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + 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 EventStreamCloudEventConnectionCreatedPreviousObject7Options( + 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 EventStreamCloudEventConnectionCreatedPreviousObject7Options + && equalTo((EventStreamCloudEventConnectionCreatedPreviousObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedPreviousObject7Options 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(EventStreamCloudEventConnectionCreatedPreviousObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject7Options 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum + setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional< + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum 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< + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + 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(EventStreamCloudEventConnectionCreatedPreviousObject7Options 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.

+ * @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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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< + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens + 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 EventStreamCloudEventConnectionCreatedPreviousObject7Options build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject7Options( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..4941158dc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum.java new file mode 100644 index 000000000..bae128e21 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum + AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..6cfd18bc9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..37264a321 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,100 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + 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 + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum.java new file mode 100644 index 000000000..04b75e8c4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum) + 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum valueOf( + String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum.java new file mode 100644 index 000000000..bcbf68280 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum( + 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/EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum.java new file mode 100644 index 000000000..679b49e84 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum.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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum(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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum) 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 EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum(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/EventStreamCloudEventConnectionDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java index 5c37f09e5..d485c9f19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventConnectionDeletedData { private final EventStreamCloudEventConnectionDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventConnectionDeletedData( EventStreamCloudEventConnectionDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventConnectionDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventConnectionDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventConnectionDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventConnectionDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventConnectionDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventConnectionDeletedData build() { - return new EventStreamCloudEventConnectionDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventConnectionDeletedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java index 4021bd52d..02a8afad1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java @@ -74,6 +74,8 @@ public final class EventStreamCloudEventConnectionDeletedObject0Options { private final Optional> upstreamParams; + private final Optional useOauthSpecScope; + private final Optional userinfoEndpoint; private final Optional attributeMap; @@ -114,6 +116,7 @@ private EventStreamCloudEventConnectionDeletedObject0Options( Optional tokenEndpointJwtcaAudFormat, Optional> upstreamParams, + Optional useOauthSpecScope, Optional userinfoEndpoint, Optional attributeMap, Optional discoveryUrl, @@ -142,6 +145,7 @@ private EventStreamCloudEventConnectionDeletedObject0Options( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.upstreamParams = upstreamParams; + this.useOauthSpecScope = useOauthSpecScope; this.userinfoEndpoint = userinfoEndpoint; this.attributeMap = attributeMap; this.discoveryUrl = discoveryUrl; @@ -309,6 +313,14 @@ public Optional> getUpstreamParams() { return upstreamParams; } + /** + * @return When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + /** * @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. */ @@ -371,6 +383,7 @@ private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0Options oth && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) && upstreamParams.equals(other.upstreamParams) + && useOauthSpecScope.equals(other.useOauthSpecScope) && userinfoEndpoint.equals(other.userinfoEndpoint) && attributeMap.equals(other.attributeMap) && discoveryUrl.equals(other.discoveryUrl) @@ -403,6 +416,7 @@ public int hashCode() { this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, this.upstreamParams, + this.useOauthSpecScope, this.userinfoEndpoint, this.attributeMap, this.discoveryUrl, @@ -587,6 +601,13 @@ _FinalStage tokenEndpointJwtcaAudFormat( _FinalStage upstreamParams(Map upstreamParams); + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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.

*/ @@ -624,6 +645,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional userinfoEndpoint = Optional.empty(); + private Optional useOauthSpecScope = Optional.empty(); + private Optional> upstreamParams = Optional.empty(); private Optional @@ -708,6 +731,7 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0Options other) tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); upstreamParams(other.getUpstreamParams()); + useOauthSpecScope(other.getUseOauthSpecScope()); userinfoEndpoint(other.getUserinfoEndpoint()); attributeMap(other.getAttributeMap()); discoveryUrl(other.getDiscoveryUrl()); @@ -793,6 +817,26 @@ public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { return this; } + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + return this; + } + @java.lang.Override public _FinalStage upstreamParams(Map upstreamParams) { this.upstreamParams = Optional.ofNullable(upstreamParams); @@ -1219,6 +1263,7 @@ public EventStreamCloudEventConnectionDeletedObject0Options build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, upstreamParams, + useOauthSpecScope, userinfoEndpoint, attributeMap, discoveryUrl, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java index d3c02e0c1..2a82a80d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java @@ -35,6 +35,8 @@ public final class EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetad private final Optional> claimsSupported; + private final Optional> codeChallengeMethodsSupported; + private final Optional> displayValuesSupported; private final Optional> dpopSigningAlgValuesSupported; @@ -106,6 +108,7 @@ private EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata( Optional> claimsLocalesSupported, Optional claimsParameterSupported, Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, Optional> displayValuesSupported, Optional> dpopSigningAlgValuesSupported, Optional endSessionEndpoint, @@ -144,6 +147,7 @@ private EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata( this.claimsLocalesSupported = claimsLocalesSupported; this.claimsParameterSupported = claimsParameterSupported; this.claimsSupported = claimsSupported; + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; this.displayValuesSupported = displayValuesSupported; this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.endSessionEndpoint = endSessionEndpoint; @@ -226,6 +230,14 @@ public Optional> getClaimsSupported() { return claimsSupported; } + /** + * @return JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + /** * @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. */ @@ -493,6 +505,7 @@ private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0OptionsOidc && claimsLocalesSupported.equals(other.claimsLocalesSupported) && claimsParameterSupported.equals(other.claimsParameterSupported) && claimsSupported.equals(other.claimsSupported) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) && displayValuesSupported.equals(other.displayValuesSupported) && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) && endSessionEndpoint.equals(other.endSessionEndpoint) @@ -535,6 +548,7 @@ public int hashCode() { this.claimsLocalesSupported, this.claimsParameterSupported, this.claimsSupported, + this.codeChallengeMethodsSupported, this.displayValuesSupported, this.dpopSigningAlgValuesSupported, this.endSessionEndpoint, @@ -642,6 +656,13 @@ public interface _FinalStage { _FinalStage claimsSupported(List claimsSupported); + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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.

*/ @@ -918,6 +939,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional> displayValuesSupported = Optional.empty(); + private Optional> codeChallengeMethodsSupported = Optional.empty(); + private Optional> claimsSupported = Optional.empty(); private Optional claimsParameterSupported = Optional.empty(); @@ -941,6 +964,7 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMeta claimsLocalesSupported(other.getClaimsLocalesSupported()); claimsParameterSupported(other.getClaimsParameterSupported()); claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); displayValuesSupported(other.getDisplayValuesSupported()); dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); endSessionEndpoint(other.getEndSessionEndpoint()); @@ -1618,6 +1642,26 @@ public _FinalStage displayValuesSupported(Optional> displayValuesSu return this; } + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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. @@ -1727,6 +1771,7 @@ public EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata build() claimsLocalesSupported, claimsParameterSupported, claimsSupported, + codeChallengeMethodsSupported, displayValuesSupported, dpopSigningAlgValuesSupported, endSessionEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java index ebce90ee8..9eacbbf82 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java @@ -74,6 +74,8 @@ public final class EventStreamCloudEventConnectionDeletedObject1Options { private final Optional> upstreamParams; + private final Optional useOauthSpecScope; + private final Optional userinfoEndpoint; private final Optional attributeMap; @@ -114,6 +116,7 @@ private EventStreamCloudEventConnectionDeletedObject1Options( Optional tokenEndpointJwtcaAudFormat, Optional> upstreamParams, + Optional useOauthSpecScope, Optional userinfoEndpoint, Optional attributeMap, Optional domain, @@ -142,6 +145,7 @@ private EventStreamCloudEventConnectionDeletedObject1Options( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.upstreamParams = upstreamParams; + this.useOauthSpecScope = useOauthSpecScope; this.userinfoEndpoint = userinfoEndpoint; this.attributeMap = attributeMap; this.domain = domain; @@ -309,6 +313,14 @@ public Optional> getUpstreamParams() { return upstreamParams; } + /** + * @return When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + /** * @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. */ @@ -371,6 +383,7 @@ private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1Options oth && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) && upstreamParams.equals(other.upstreamParams) + && useOauthSpecScope.equals(other.useOauthSpecScope) && userinfoEndpoint.equals(other.userinfoEndpoint) && attributeMap.equals(other.attributeMap) && domain.equals(other.domain) @@ -403,6 +416,7 @@ public int hashCode() { this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, this.upstreamParams, + this.useOauthSpecScope, this.userinfoEndpoint, this.attributeMap, this.domain, @@ -587,6 +601,13 @@ _FinalStage tokenEndpointJwtcaAudFormat( _FinalStage upstreamParams(Map upstreamParams); + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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.

*/ @@ -624,6 +645,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional userinfoEndpoint = Optional.empty(); + private Optional useOauthSpecScope = Optional.empty(); + private Optional> upstreamParams = Optional.empty(); private Optional @@ -708,6 +731,7 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1Options other) tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); upstreamParams(other.getUpstreamParams()); + useOauthSpecScope(other.getUseOauthSpecScope()); userinfoEndpoint(other.getUserinfoEndpoint()); attributeMap(other.getAttributeMap()); domain(other.getDomain()); @@ -793,6 +817,26 @@ public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { return this; } + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + return this; + } + @java.lang.Override public _FinalStage upstreamParams(Map upstreamParams) { this.upstreamParams = Optional.ofNullable(upstreamParams); @@ -1219,6 +1263,7 @@ public EventStreamCloudEventConnectionDeletedObject1Options build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, upstreamParams, + useOauthSpecScope, userinfoEndpoint, attributeMap, domain, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java index 9dc836510..2c671655a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java @@ -35,6 +35,8 @@ public final class EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetad private final Optional> claimsSupported; + private final Optional> codeChallengeMethodsSupported; + private final Optional> displayValuesSupported; private final Optional> dpopSigningAlgValuesSupported; @@ -106,6 +108,7 @@ private EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata( Optional> claimsLocalesSupported, Optional claimsParameterSupported, Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, Optional> displayValuesSupported, Optional> dpopSigningAlgValuesSupported, Optional endSessionEndpoint, @@ -144,6 +147,7 @@ private EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata( this.claimsLocalesSupported = claimsLocalesSupported; this.claimsParameterSupported = claimsParameterSupported; this.claimsSupported = claimsSupported; + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; this.displayValuesSupported = displayValuesSupported; this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.endSessionEndpoint = endSessionEndpoint; @@ -226,6 +230,14 @@ public Optional> getClaimsSupported() { return claimsSupported; } + /** + * @return JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + /** * @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. */ @@ -493,6 +505,7 @@ private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1OptionsOidc && claimsLocalesSupported.equals(other.claimsLocalesSupported) && claimsParameterSupported.equals(other.claimsParameterSupported) && claimsSupported.equals(other.claimsSupported) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) && displayValuesSupported.equals(other.displayValuesSupported) && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) && endSessionEndpoint.equals(other.endSessionEndpoint) @@ -535,6 +548,7 @@ public int hashCode() { this.claimsLocalesSupported, this.claimsParameterSupported, this.claimsSupported, + this.codeChallengeMethodsSupported, this.displayValuesSupported, this.dpopSigningAlgValuesSupported, this.endSessionEndpoint, @@ -642,6 +656,13 @@ public interface _FinalStage { _FinalStage claimsSupported(List claimsSupported); + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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.

*/ @@ -918,6 +939,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional> displayValuesSupported = Optional.empty(); + private Optional> codeChallengeMethodsSupported = Optional.empty(); + private Optional> claimsSupported = Optional.empty(); private Optional claimsParameterSupported = Optional.empty(); @@ -941,6 +964,7 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMeta claimsLocalesSupported(other.getClaimsLocalesSupported()); claimsParameterSupported(other.getClaimsParameterSupported()); claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); displayValuesSupported(other.getDisplayValuesSupported()); dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); endSessionEndpoint(other.getEndSessionEndpoint()); @@ -1618,6 +1642,26 @@ public _FinalStage displayValuesSupported(Optional> displayValuesSu return this; } + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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. @@ -1727,6 +1771,7 @@ public EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata build() claimsLocalesSupported, claimsParameterSupported, claimsSupported, + codeChallengeMethodsSupported, displayValuesSupported, dpopSigningAlgValuesSupported, endSessionEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java index f45c5d3a5..cae619ff8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java @@ -71,16 +71,24 @@ public final class EventStreamCloudEventConnectionDeletedObject2Options { private final Optional destinationUrl; + private final Optional disableFieldsMapFix; + private final Optional disableSignout; + private final Optional discoveryUrl; + private final Optional> fieldsMap; + private final Optional fieldsMapJsonRaw; + private final Optional globalTokenRevocationJwtIss; private final Optional globalTokenRevocationJwtSub; private final Optional metadataUrl; + private final Optional oidcMetadata; + private final Optional recipientUrl; private final Optional requestTemplate; @@ -117,11 +125,15 @@ private EventStreamCloudEventConnectionDeletedObject2Options( Optional debug, Optional deflate, Optional destinationUrl, + Optional disableFieldsMapFix, Optional disableSignout, + Optional discoveryUrl, Optional> fieldsMap, + Optional fieldsMapJsonRaw, Optional globalTokenRevocationJwtIss, Optional globalTokenRevocationJwtSub, Optional metadataUrl, + Optional oidcMetadata, Optional recipientUrl, Optional requestTemplate, Optional signOutEndpoint, @@ -150,11 +162,15 @@ private EventStreamCloudEventConnectionDeletedObject2Options( this.debug = debug; this.deflate = deflate; this.destinationUrl = destinationUrl; + this.disableFieldsMapFix = disableFieldsMapFix; this.disableSignout = disableSignout; + this.discoveryUrl = discoveryUrl; this.fieldsMap = fieldsMap; + this.fieldsMapJsonRaw = fieldsMapJsonRaw; this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; this.metadataUrl = metadataUrl; + this.oidcMetadata = oidcMetadata; this.recipientUrl = recipientUrl; this.requestTemplate = requestTemplate; this.signOutEndpoint = signOutEndpoint; @@ -325,6 +341,14 @@ public Optional getDestinationUrl() { return destinationUrl; } + /** + * @return When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). + */ + @JsonProperty("disableFieldsMapFix") + public Optional getDisableFieldsMapFix() { + return disableFieldsMapFix; + } + /** * @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). */ @@ -333,11 +357,27 @@ public Optional getDisableSignout() { return disableSignout; } + /** + * @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. Used with Cross App Access. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + @JsonProperty("fieldsMap") public Optional> getFieldsMap() { return fieldsMap; } + /** + * @return Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. + */ + @JsonProperty("fieldsMapJsonRaw") + public Optional getFieldsMapJsonRaw() { + return fieldsMapJsonRaw; + } + /** * @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. */ @@ -362,6 +402,11 @@ public Optional getMetadataUrl() { return metadataUrl; } + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + /** * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. */ @@ -430,11 +475,15 @@ private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2Options oth && debug.equals(other.debug) && deflate.equals(other.deflate) && destinationUrl.equals(other.destinationUrl) + && disableFieldsMapFix.equals(other.disableFieldsMapFix) && disableSignout.equals(other.disableSignout) + && discoveryUrl.equals(other.discoveryUrl) && fieldsMap.equals(other.fieldsMap) + && fieldsMapJsonRaw.equals(other.fieldsMapJsonRaw) && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) && metadataUrl.equals(other.metadataUrl) + && oidcMetadata.equals(other.oidcMetadata) && recipientUrl.equals(other.recipientUrl) && requestTemplate.equals(other.requestTemplate) && signOutEndpoint.equals(other.signOutEndpoint) @@ -467,11 +516,15 @@ public int hashCode() { this.debug, this.deflate, this.destinationUrl, + this.disableFieldsMapFix, this.disableSignout, + this.discoveryUrl, this.fieldsMap, + this.fieldsMapJsonRaw, this.globalTokenRevocationJwtIss, this.globalTokenRevocationJwtSub, this.metadataUrl, + this.oidcMetadata, this.recipientUrl, this.requestTemplate, this.signOutEndpoint, @@ -541,16 +594,25 @@ public static final class Builder { private Optional destinationUrl = Optional.empty(); + private Optional disableFieldsMapFix = Optional.empty(); + private Optional disableSignout = Optional.empty(); + private Optional discoveryUrl = Optional.empty(); + private Optional> fieldsMap = Optional.empty(); + private Optional fieldsMapJsonRaw = Optional.empty(); + private Optional globalTokenRevocationJwtIss = Optional.empty(); private Optional globalTokenRevocationJwtSub = Optional.empty(); private Optional metadataUrl = Optional.empty(); + private Optional oidcMetadata = + Optional.empty(); + private Optional recipientUrl = Optional.empty(); private Optional requestTemplate = Optional.empty(); @@ -588,11 +650,15 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject2Options other) debug(other.getDebug()); deflate(other.getDeflate()); destinationUrl(other.getDestinationUrl()); + disableFieldsMapFix(other.getDisableFieldsMapFix()); disableSignout(other.getDisableSignout()); + discoveryUrl(other.getDiscoveryUrl()); fieldsMap(other.getFieldsMap()); + fieldsMapJsonRaw(other.getFieldsMapJsonRaw()); globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); metadataUrl(other.getMetadataUrl()); + oidcMetadata(other.getOidcMetadata()); recipientUrl(other.getRecipientUrl()); requestTemplate(other.getRequestTemplate()); signOutEndpoint(other.getSignOutEndpoint()); @@ -913,6 +979,20 @@ public Builder destinationUrl(String destinationUrl) { return this; } + /** + *

When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).

+ */ + @JsonSetter(value = "disableFieldsMapFix", nulls = Nulls.SKIP) + public Builder disableFieldsMapFix(Optional disableFieldsMapFix) { + this.disableFieldsMapFix = disableFieldsMapFix; + return this; + } + + public Builder disableFieldsMapFix(Boolean disableFieldsMapFix) { + this.disableFieldsMapFix = Optional.ofNullable(disableFieldsMapFix); + 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).

*/ @@ -927,6 +1007,20 @@ public Builder disableSignout(Boolean disableSignout) { 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. Used with Cross App Access.

+ */ + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) public Builder fieldsMap(Optional> fieldsMap) { this.fieldsMap = fieldsMap; @@ -938,6 +1032,20 @@ public Builder fieldsMap(Map fieldsMap) { return this; } + /** + *

Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.

+ */ + @JsonSetter(value = "fieldsMapJsonRaw", nulls = Nulls.SKIP) + public Builder fieldsMapJsonRaw(Optional fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + return this; + } + + public Builder fieldsMapJsonRaw(String fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = Optional.ofNullable(fieldsMapJsonRaw); + 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.

*/ @@ -980,6 +1088,18 @@ public Builder metadataUrl(String metadataUrl) { return this; } + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata(EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + /** *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

*/ @@ -1061,11 +1181,15 @@ public EventStreamCloudEventConnectionDeletedObject2Options build() { debug, deflate, destinationUrl, + disableFieldsMapFix, disableSignout, + discoveryUrl, fieldsMap, + fieldsMapJsonRaw, globalTokenRevocationJwtIss, globalTokenRevocationJwtSub, metadataUrl, + oidcMetadata, recipientUrl, requestTemplate, signOutEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata.java new file mode 100644 index 000000000..b9aa43d03 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionDeletedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java index 44efba7a2..5bcffb82f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java @@ -45,6 +45,8 @@ public final class EventStreamCloudEventConnectionDeletedObject5Options { private final Optional kerberos; + private final Optional kerberosOnly; + private final Optional> nonPersistentAttrs; private final Optional @@ -73,6 +75,7 @@ private EventStreamCloudEventConnectionDeletedObject5Options( Optional iconUrl, Optional> ips, Optional kerberos, + Optional kerberosOnly, Optional> nonPersistentAttrs, Optional setUserRootAttributes, @@ -93,6 +96,7 @@ private EventStreamCloudEventConnectionDeletedObject5Options( this.iconUrl = iconUrl; this.ips = ips; this.kerberos = kerberos; + this.kerberosOnly = kerberosOnly; this.nonPersistentAttrs = nonPersistentAttrs; this.setUserRootAttributes = setUserRootAttributes; this.signInEndpoint = signInEndpoint; @@ -198,6 +202,14 @@ public Optional getKerberos() { return kerberos; } + /** + * @return When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. + */ + @JsonProperty("kerberos_only") + public Optional getKerberosOnly() { + return kerberosOnly; + } + /** * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) */ @@ -266,6 +278,7 @@ private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5Options oth && iconUrl.equals(other.iconUrl) && ips.equals(other.ips) && kerberos.equals(other.kerberos) + && kerberosOnly.equals(other.kerberosOnly) && nonPersistentAttrs.equals(other.nonPersistentAttrs) && setUserRootAttributes.equals(other.setUserRootAttributes) && signInEndpoint.equals(other.signInEndpoint) @@ -289,6 +302,7 @@ public int hashCode() { this.iconUrl, this.ips, this.kerberos, + this.kerberosOnly, this.nonPersistentAttrs, this.setUserRootAttributes, this.signInEndpoint, @@ -332,6 +346,8 @@ public static final class Builder { private Optional kerberos = Optional.empty(); + private Optional kerberosOnly = Optional.empty(); + private Optional> nonPersistentAttrs = Optional.empty(); private Optional @@ -363,6 +379,7 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject5Options other) iconUrl(other.getIconUrl()); ips(other.getIps()); kerberos(other.getKerberos()); + kerberosOnly(other.getKerberosOnly()); nonPersistentAttrs(other.getNonPersistentAttrs()); setUserRootAttributes(other.getSetUserRootAttributes()); signInEndpoint(other.getSignInEndpoint()); @@ -540,6 +557,20 @@ public Builder kerberos(Boolean kerberos) { return this; } + /** + *

When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback.

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

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

*/ @@ -635,6 +666,7 @@ public EventStreamCloudEventConnectionDeletedObject5Options build() { iconUrl, ips, kerberos, + kerberosOnly, nonPersistentAttrs, setUserRootAttributes, signInEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject.java new file mode 100644 index 000000000..b75323882 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject.java @@ -0,0 +1,226 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject.Deserializer.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionDeletedPreviousObject(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((EventStreamCloudEventConnectionDeletedPreviousObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionDeletedPreviousObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionDeletedPreviousObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionDeletedPreviousObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionDeletedPreviousObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionDeletedPreviousObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionDeletedPreviousObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionDeletedPreviousObject7) 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 EventStreamCloudEventConnectionDeletedPreviousObject + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject 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 EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject0 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 0); + } + + public static EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject1 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 1); + } + + public static EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject2 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 2); + } + + public static EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject3 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 3); + } + + public static EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject4 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 4); + } + + public static EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject5 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 5); + } + + public static EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject6 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 6); + } + + public static EventStreamCloudEventConnectionDeletedPreviousObject of( + EventStreamCloudEventConnectionDeletedPreviousObject7 value) { + return new EventStreamCloudEventConnectionDeletedPreviousObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionDeletedPreviousObject0 value); + + T visit(EventStreamCloudEventConnectionDeletedPreviousObject1 value); + + T visit(EventStreamCloudEventConnectionDeletedPreviousObject2 value); + + T visit(EventStreamCloudEventConnectionDeletedPreviousObject3 value); + + T visit(EventStreamCloudEventConnectionDeletedPreviousObject4 value); + + T visit(EventStreamCloudEventConnectionDeletedPreviousObject5 value); + + T visit(EventStreamCloudEventConnectionDeletedPreviousObject6 value); + + T visit(EventStreamCloudEventConnectionDeletedPreviousObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionDeletedPreviousObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedPreviousObject 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, EventStreamCloudEventConnectionDeletedPreviousObject0.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, EventStreamCloudEventConnectionDeletedPreviousObject1.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, EventStreamCloudEventConnectionDeletedPreviousObject2.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, EventStreamCloudEventConnectionDeletedPreviousObject3.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, EventStreamCloudEventConnectionDeletedPreviousObject4.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, EventStreamCloudEventConnectionDeletedPreviousObject5.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, EventStreamCloudEventConnectionDeletedPreviousObject6.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, EventStreamCloudEventConnectionDeletedPreviousObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0.java new file mode 100644 index 000000000..13759f8c1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject0.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject0 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject0 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(EventStreamCloudEventConnectionDeletedPreviousObject0 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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject0Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject0Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedPreviousObject0Options 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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject0 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject0Options 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( + EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject0Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject0Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject0 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0Authentication.java new file mode 100644 index 000000000..77bfc2e0b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject0Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject0Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject0Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject0Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject0Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts.java new file mode 100644 index 000000000..22ebf3d45 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts.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 = EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0Metadata.java new file mode 100644 index 000000000..a69132905 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject0Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject0Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0Options.java new file mode 100644 index 000000000..ca677ba4e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0Options { + 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< + List> + 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 useOauthSpecScope; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional< + List< + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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 useOauthSpecScope, + 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.useOauthSpecScope = useOauthSpecScope; + 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 When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedPreviousObject0Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject0Options 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) + && useOauthSpecScope.equals(other.useOauthSpecScope) + && 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.useOauthSpecScope, + 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(EventStreamCloudEventConnectionDeletedPreviousObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject0Options 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens + 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< + List< + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap 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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum 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 useOauthSpecScope = 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< + List< + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionDeletedPreviousObject0Options 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()); + useOauthSpecScope(other.getUseOauthSpecScope()); + 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.

+ * @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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap 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; + } + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata 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< + List< + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings 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 EventStreamCloudEventConnectionDeletedPreviousObject0Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + useOauthSpecScope, + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap.java new file mode 100644 index 000000000..3272e31f0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional + mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap( + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap 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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..447ac5bcf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,96 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum + BIND_ALL = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum + USE_MAP = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings.java new file mode 100644 index 000000000..2cab55f36 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings.java @@ -0,0 +1,112 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings( + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings 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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..d0c1d9aa0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,119 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum + DISABLED = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum valueOf( + String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..395eeaa0e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum( + Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..12effa0c1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..9a9cec54e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS512 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + ES384 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + PS384 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + ES256 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + PS256 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS384 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS256 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata.java new file mode 100644 index 000000000..5791e3ab7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..a276883d0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum( + Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..8173afc80 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..fbd35cb59 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..74e7fce03 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS512 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + ES384 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + PS384 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + ES256 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + PS256 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS384 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS256 = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..a37fbb67f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + ISSUER = new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum.java new file mode 100644 index 000000000..dde5a1a82 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum( + Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum( + Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum.java new file mode 100644 index 000000000..baa4665a5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1.java new file mode 100644 index 000000000..27352e47b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject1.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject1 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject1 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(EventStreamCloudEventConnectionDeletedPreviousObject1 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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject1Metadata 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(EventStreamCloudEventConnectionDeletedPreviousObject1Options 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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject1 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject1Options 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(EventStreamCloudEventConnectionDeletedPreviousObject1Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts 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( + EventStreamCloudEventConnectionDeletedPreviousObject1Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject1 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1Authentication.java new file mode 100644 index 000000000..ce59f177d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject1Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject1Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject1Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject1Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject1Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts.java new file mode 100644 index 000000000..b8c1e578a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1Metadata.java new file mode 100644 index 000000000..0cda12a55 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject1Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject1Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1Options.java new file mode 100644 index 000000000..4110b8803 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1Options { + 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< + List> + 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 useOauthSpecScope; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional< + List< + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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 useOauthSpecScope, + 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.useOauthSpecScope = useOauthSpecScope; + 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 When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedPreviousObject1Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject1Options 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) + && useOauthSpecScope.equals(other.useOauthSpecScope) + && 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.useOauthSpecScope, + 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(EventStreamCloudEventConnectionDeletedPreviousObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject1Options 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens + 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< + List< + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap 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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum 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 useOauthSpecScope = 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< + List< + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionDeletedPreviousObject1Options 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()); + useOauthSpecScope(other.getUseOauthSpecScope()); + 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.

+ * @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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap 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; + } + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata 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< + List< + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings 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 EventStreamCloudEventConnectionDeletedPreviousObject1Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + useOauthSpecScope, + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap.java new file mode 100644 index 000000000..0e871b990 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional + mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap( + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap 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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..5ed3a4d6e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,96 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum + USE_MAP = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum + BASIC_PROFILE = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings.java new file mode 100644 index 000000000..161f37eac --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings.java @@ -0,0 +1,112 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings( + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings 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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..5998a3111 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,119 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum + DISABLED = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum valueOf( + String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..106732318 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum( + Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..1f74efd18 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..794477a53 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS512 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + ES384 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + PS384 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + ES256 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + PS256 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS384 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS256 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata.java new file mode 100644 index 000000000..7c996a091 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..b0add3e49 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum( + Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..39f7e2962 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..cdbb1e40e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..d6a1c8742 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS512 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + ES384 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + PS384 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + ES256 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + PS256 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS384 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS256 = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..66f8e501f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + ISSUER = new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum.java new file mode 100644 index 000000000..a0e8a2f87 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum( + Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum.java new file mode 100644 index 000000000..ab6fa6348 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2.java new file mode 100644 index 000000000..be0c87c5d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject2 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject2 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(EventStreamCloudEventConnectionDeletedPreviousObject2 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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject2Metadata 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(EventStreamCloudEventConnectionDeletedPreviousObject2Options 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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject2 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject2Options 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(EventStreamCloudEventConnectionDeletedPreviousObject2Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts 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( + EventStreamCloudEventConnectionDeletedPreviousObject2Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject2 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2Authentication.java new file mode 100644 index 000000000..fbcd30673 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject2Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject2Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject2Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject2Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject2Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts.java new file mode 100644 index 000000000..540613ee5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2Metadata.java new file mode 100644 index 000000000..769af7e2c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject2Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject2Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2Options.java new file mode 100644 index 000000000..96936cae6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2Options.java @@ -0,0 +1,1221 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2Options { + 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 disableFieldsMapFix; + + private final Optional disableSignout; + + private final Optional discoveryUrl; + + private final Optional> fieldsMap; + + private final Optional fieldsMapJsonRaw; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional oidcMetadata; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2Options( + 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 disableFieldsMapFix, + Optional disableSignout, + Optional discoveryUrl, + Optional> fieldsMap, + Optional fieldsMapJsonRaw, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional oidcMetadata, + 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.disableFieldsMapFix = disableFieldsMapFix; + this.disableSignout = disableSignout; + this.discoveryUrl = discoveryUrl; + this.fieldsMap = fieldsMap; + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.oidcMetadata = oidcMetadata; + 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 the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). + */ + @JsonProperty("disableFieldsMapFix") + public Optional getDisableFieldsMapFix() { + return disableFieldsMapFix; + } + + /** + * @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; + } + + /** + * @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. Used with Cross App Access. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. + */ + @JsonProperty("fieldsMapJsonRaw") + public Optional getFieldsMapJsonRaw() { + return fieldsMapJsonRaw; + } + + /** + * @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; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedPreviousObject2Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject2Options 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) + && disableFieldsMapFix.equals(other.disableFieldsMapFix) + && disableSignout.equals(other.disableSignout) + && discoveryUrl.equals(other.discoveryUrl) + && fieldsMap.equals(other.fieldsMap) + && fieldsMapJsonRaw.equals(other.fieldsMapJsonRaw) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && oidcMetadata.equals(other.oidcMetadata) + && 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.disableFieldsMapFix, + this.disableSignout, + this.discoveryUrl, + this.fieldsMap, + this.fieldsMapJsonRaw, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.oidcMetadata, + 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 disableFieldsMapFix = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional fieldsMapJsonRaw = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional oidcMetadata = + 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(EventStreamCloudEventConnectionDeletedPreviousObject2Options 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()); + disableFieldsMapFix(other.getDisableFieldsMapFix()); + disableSignout(other.getDisableSignout()); + discoveryUrl(other.getDiscoveryUrl()); + fieldsMap(other.getFieldsMap()); + fieldsMapJsonRaw(other.getFieldsMapJsonRaw()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + oidcMetadata(other.getOidcMetadata()); + 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( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings + 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( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated 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( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject 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 the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).

+ */ + @JsonSetter(value = "disableFieldsMapFix", nulls = Nulls.SKIP) + public Builder disableFieldsMapFix(Optional disableFieldsMapFix) { + this.disableFieldsMapFix = disableFieldsMapFix; + return this; + } + + public Builder disableFieldsMapFix(Boolean disableFieldsMapFix) { + this.disableFieldsMapFix = Optional.ofNullable(disableFieldsMapFix); + 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; + } + + /** + *

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. Used with Cross App Access.

+ */ + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + 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; + } + + /** + *

Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.

+ */ + @JsonSetter(value = "fieldsMapJsonRaw", nulls = Nulls.SKIP) + public Builder fieldsMapJsonRaw(Optional fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + return this; + } + + public Builder fieldsMapJsonRaw(String fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = Optional.ofNullable(fieldsMapJsonRaw); + 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; + } + + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + 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 EventStreamCloudEventConnectionDeletedPreviousObject2Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableFieldsMapFix, + disableSignout, + discoveryUrl, + fieldsMap, + fieldsMapJsonRaw, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + oidcMetadata, + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..03646b0dc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,183 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..7c0191173 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + 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 + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum valueOf( + String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..6fa00fbde --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum valueOf( + String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated.java new file mode 100644 index 000000000..4b858715c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated.java @@ -0,0 +1,207 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated( + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated 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(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated 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( + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..408896962 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,108 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + WSFED = new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + SAMLP = new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + OIDC = new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata.java new file mode 100644 index 000000000..315caa290 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..42e05c532 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum( + 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; + + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..5c330a0a1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..5ec72c89a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum valueOf( + String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject.java new file mode 100644 index 000000000..9269f8768 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject.java @@ -0,0 +1,70 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject( + Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject(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/EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum.java new file mode 100644 index 000000000..7e13865fc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3.java new file mode 100644 index 000000000..66e207597 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject3.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject3 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject3 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(EventStreamCloudEventConnectionDeletedPreviousObject3 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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject3Metadata 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(EventStreamCloudEventConnectionDeletedPreviousObject3Options 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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject3 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject3Options 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(EventStreamCloudEventConnectionDeletedPreviousObject3Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts 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( + EventStreamCloudEventConnectionDeletedPreviousObject3Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject3 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3Authentication.java new file mode 100644 index 000000000..e352b75e4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject3Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject3Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject3Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject3Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject3Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject3Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts.java new file mode 100644 index 000000000..3eb51304d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3Metadata.java new file mode 100644 index 000000000..8e9d58a23 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject3Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject3Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3Options.java new file mode 100644 index 000000000..685988751 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3Options.java @@ -0,0 +1,993 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3Options { + 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 EventStreamCloudEventConnectionDeletedPreviousObject3Options( + 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 EventStreamCloudEventConnectionDeletedPreviousObject3Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject3Options 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(EventStreamCloudEventConnectionDeletedPreviousObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings + 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum + setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject 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(EventStreamCloudEventConnectionDeletedPreviousObject3Options 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

+ * @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(EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings + 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 EventStreamCloudEventConnectionDeletedPreviousObject3Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3Options( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..4d1116d61 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,183 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..60bb8f193 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + 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 + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum valueOf( + String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..7f18af478 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum valueOf( + String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated.java new file mode 100644 index 000000000..d9fd29981 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated.java @@ -0,0 +1,207 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated( + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated 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(EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..4d9f39dcb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,108 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + WSFED = new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + SAMLP = new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + OIDC = new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..4079ddae5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum( + 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; + + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..1849411da --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..216ae01af --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum valueOf( + String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject.java new file mode 100644 index 000000000..1b76eefb9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject.java @@ -0,0 +1,70 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject( + Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject(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/EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum.java new file mode 100644 index 000000000..40ed44a0a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4.java new file mode 100644 index 000000000..ae396ddec --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject4.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject4 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject4 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject4 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(EventStreamCloudEventConnectionDeletedPreviousObject4 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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject4Metadata 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(EventStreamCloudEventConnectionDeletedPreviousObject4Options 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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject4 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject4Options 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(EventStreamCloudEventConnectionDeletedPreviousObject4Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts 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( + EventStreamCloudEventConnectionDeletedPreviousObject4Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject4 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject4( + 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/EventStreamCloudEventConnectionDeletedPreviousObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4Authentication.java new file mode 100644 index 000000000..04228e7e2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject4Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject4Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject4Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject4Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject4Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject4Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject4Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts.java new file mode 100644 index 000000000..a9a51aafa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4Metadata.java new file mode 100644 index 000000000..2e7be3272 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject4Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject4Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject4Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4Options.java new file mode 100644 index 000000000..ea59382ca --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4Options.java @@ -0,0 +1,568 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject4Options { + 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< + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + 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 EventStreamCloudEventConnectionDeletedPreviousObject4Options( + 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 EventStreamCloudEventConnectionDeletedPreviousObject4Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject4Options 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< + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + 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(EventStreamCloudEventConnectionDeletedPreviousObject4Options 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( + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum + setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional< + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject4Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject4Options( + 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/EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..e72092c68 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..51d51fae5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,100 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum.java new file mode 100644 index 000000000..ae83e437d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5.java new file mode 100644 index 000000000..e7f58f658 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5.java @@ -0,0 +1,517 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject5.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject5 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject5 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject5 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(EventStreamCloudEventConnectionDeletedPreviousObject5 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 EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject5Metadata 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(EventStreamCloudEventConnectionDeletedPreviousObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject5 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedPreviousObject5Options 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(EventStreamCloudEventConnectionDeletedPreviousObject5Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts 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( + EventStreamCloudEventConnectionDeletedPreviousObject5Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject5 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject5( + 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/EventStreamCloudEventConnectionDeletedPreviousObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5Authentication.java new file mode 100644 index 000000000..a02a4b8b1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject5Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject5Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject5Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject5Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject5Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject5Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject5Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts.java new file mode 100644 index 000000000..0a0d3ddc1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5Metadata.java new file mode 100644 index 000000000..5fd1d09c1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject5Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject5Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject5Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5Options.java new file mode 100644 index 000000000..6fc2d369d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5Options.java @@ -0,0 +1,690 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject5Options { + 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 kerberosOnly; + + 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 EventStreamCloudEventConnectionDeletedPreviousObject5Options( + 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 kerberosOnly, + 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.kerberosOnly = kerberosOnly; + 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 When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. + */ + @JsonProperty("kerberos_only") + public Optional getKerberosOnly() { + return kerberosOnly; + } + + /** + * @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 EventStreamCloudEventConnectionDeletedPreviousObject5Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject5Options 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) + && kerberosOnly.equals(other.kerberosOnly) + && 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.kerberosOnly, + 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 kerberosOnly = 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(EventStreamCloudEventConnectionDeletedPreviousObject5Options 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()); + kerberosOnly(other.getKerberosOnly()); + 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; + } + + /** + *

When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback.

+ */ + @JsonSetter(value = "kerberos_only", nulls = Nulls.SKIP) + public Builder kerberosOnly(Optional kerberosOnly) { + this.kerberosOnly = kerberosOnly; + return this; + } + + public Builder kerberosOnly(Boolean kerberosOnly) { + this.kerberosOnly = Optional.ofNullable(kerberosOnly); + 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( + EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject5Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + kerberosOnly, + 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/EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..1605dcdbe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum.java new file mode 100644 index 000000000..f02dc799e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum AD = + new EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6.java new file mode 100644 index 000000000..fd0ab1b61 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject6.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject6 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject6 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject6 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(EventStreamCloudEventConnectionDeletedPreviousObject6 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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject6Metadata 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(EventStreamCloudEventConnectionDeletedPreviousObject6Options 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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject6 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject6Options 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(EventStreamCloudEventConnectionDeletedPreviousObject6Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts 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( + EventStreamCloudEventConnectionDeletedPreviousObject6Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject6 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject6( + 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/EventStreamCloudEventConnectionDeletedPreviousObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6Authentication.java new file mode 100644 index 000000000..912373ea3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject6Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject6Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject6Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject6Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject6Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject6Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject6Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts.java new file mode 100644 index 000000000..3e4e1a256 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6Metadata.java new file mode 100644 index 000000000..640b34a5e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject6Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject6Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject6Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6Options.java new file mode 100644 index 000000000..1b43ffa26 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6Options.java @@ -0,0 +1,1113 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject6Options { + 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 EventStreamCloudEventConnectionDeletedPreviousObject6Options( + 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 EventStreamCloudEventConnectionDeletedPreviousObject6Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject6Options 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(EventStreamCloudEventConnectionDeletedPreviousObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject6Options 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( + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum + 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(EventStreamCloudEventConnectionDeletedPreviousObject6Options 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.

+ * @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( + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens + 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 EventStreamCloudEventConnectionDeletedPreviousObject6Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject6Options( + 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/EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..973151e1a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..ef9a580f8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum.java new file mode 100644 index 000000000..185705c60 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum(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/EventStreamCloudEventConnectionDeletedPreviousObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7.java new file mode 100644 index 000000000..95f25aa5b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject7.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject7 { + 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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject7 + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject7 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(EventStreamCloudEventConnectionDeletedPreviousObject7 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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedPreviousObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject7Metadata 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(EventStreamCloudEventConnectionDeletedPreviousObject7Options 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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject7 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

+ * @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

+ * @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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum 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(EventStreamCloudEventConnectionDeletedPreviousObject7Options 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(EventStreamCloudEventConnectionDeletedPreviousObject7Metadata 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( + EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts 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( + EventStreamCloudEventConnectionDeletedPreviousObject7Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject7 build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject7( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7Authentication.java new file mode 100644 index 000000000..de8af8d53 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject7Authentication( + 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 EventStreamCloudEventConnectionDeletedPreviousObject7Authentication + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject7Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject7Authentication 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(EventStreamCloudEventConnectionDeletedPreviousObject7Authentication 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 EventStreamCloudEventConnectionDeletedPreviousObject7Authentication build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject7Authentication( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts.java new file mode 100644 index 000000000..1a7fb75ae --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts( + 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 EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts 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 EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7Metadata.java new file mode 100644 index 000000000..23cc616d6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7Metadata.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 = EventStreamCloudEventConnectionDeletedPreviousObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedPreviousObject7Metadata; + } + + @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(EventStreamCloudEventConnectionDeletedPreviousObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedPreviousObject7Metadata build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject7Metadata(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/EventStreamCloudEventConnectionDeletedPreviousObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7Options.java new file mode 100644 index 000000000..e722fe3d5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionDeletedPreviousObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject7Options { + 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< + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + 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 EventStreamCloudEventConnectionDeletedPreviousObject7Options( + 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 EventStreamCloudEventConnectionDeletedPreviousObject7Options + && equalTo((EventStreamCloudEventConnectionDeletedPreviousObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedPreviousObject7Options 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(EventStreamCloudEventConnectionDeletedPreviousObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject7Options 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum + setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional< + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum 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< + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + 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(EventStreamCloudEventConnectionDeletedPreviousObject7Options 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.

+ * @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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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< + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens + 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 EventStreamCloudEventConnectionDeletedPreviousObject7Options build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject7Options( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..f3df0af0b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum.java new file mode 100644 index 000000000..bd38570b1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum + AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..a3fb4e242 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..4e6ed6191 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,100 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + 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 + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum.java new file mode 100644 index 000000000..3f46d2852 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum) + 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum valueOf( + String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum.java new file mode 100644 index 000000000..bc0f86cb9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum( + 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/EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum.java new file mode 100644 index 000000000..c512a565b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum.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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum(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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum) 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 EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum(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/EventStreamCloudEventConnectionUpdatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java index 9c0ee247f..9fb49afe1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventConnectionUpdatedData { private final EventStreamCloudEventConnectionUpdatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventConnectionUpdatedData( EventStreamCloudEventConnectionUpdatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventConnectionUpdatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventConnectionUpdatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventConnectionUpdatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventConnectionUpdatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventConnectionUpdatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventConnectionUpdatedData build() { - return new EventStreamCloudEventConnectionUpdatedData(object, context, additionalProperties); + return new EventStreamCloudEventConnectionUpdatedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java index baa79b36d..90c518dd6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java @@ -74,6 +74,8 @@ public final class EventStreamCloudEventConnectionUpdatedObject0Options { private final Optional> upstreamParams; + private final Optional useOauthSpecScope; + private final Optional userinfoEndpoint; private final Optional attributeMap; @@ -114,6 +116,7 @@ private EventStreamCloudEventConnectionUpdatedObject0Options( Optional tokenEndpointJwtcaAudFormat, Optional> upstreamParams, + Optional useOauthSpecScope, Optional userinfoEndpoint, Optional attributeMap, Optional discoveryUrl, @@ -142,6 +145,7 @@ private EventStreamCloudEventConnectionUpdatedObject0Options( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.upstreamParams = upstreamParams; + this.useOauthSpecScope = useOauthSpecScope; this.userinfoEndpoint = userinfoEndpoint; this.attributeMap = attributeMap; this.discoveryUrl = discoveryUrl; @@ -309,6 +313,14 @@ public Optional> getUpstreamParams() { return upstreamParams; } + /** + * @return When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + /** * @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. */ @@ -371,6 +383,7 @@ private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0Options oth && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) && upstreamParams.equals(other.upstreamParams) + && useOauthSpecScope.equals(other.useOauthSpecScope) && userinfoEndpoint.equals(other.userinfoEndpoint) && attributeMap.equals(other.attributeMap) && discoveryUrl.equals(other.discoveryUrl) @@ -403,6 +416,7 @@ public int hashCode() { this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, this.upstreamParams, + this.useOauthSpecScope, this.userinfoEndpoint, this.attributeMap, this.discoveryUrl, @@ -587,6 +601,13 @@ _FinalStage tokenEndpointJwtcaAudFormat( _FinalStage upstreamParams(Map upstreamParams); + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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.

*/ @@ -624,6 +645,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional userinfoEndpoint = Optional.empty(); + private Optional useOauthSpecScope = Optional.empty(); + private Optional> upstreamParams = Optional.empty(); private Optional @@ -708,6 +731,7 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0Options other) tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); upstreamParams(other.getUpstreamParams()); + useOauthSpecScope(other.getUseOauthSpecScope()); userinfoEndpoint(other.getUserinfoEndpoint()); attributeMap(other.getAttributeMap()); discoveryUrl(other.getDiscoveryUrl()); @@ -793,6 +817,26 @@ public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { return this; } + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + return this; + } + @java.lang.Override public _FinalStage upstreamParams(Map upstreamParams) { this.upstreamParams = Optional.ofNullable(upstreamParams); @@ -1219,6 +1263,7 @@ public EventStreamCloudEventConnectionUpdatedObject0Options build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, upstreamParams, + useOauthSpecScope, userinfoEndpoint, attributeMap, discoveryUrl, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java index 58b649087..95853a26e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java @@ -35,6 +35,8 @@ public final class EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetad private final Optional> claimsSupported; + private final Optional> codeChallengeMethodsSupported; + private final Optional> displayValuesSupported; private final Optional> dpopSigningAlgValuesSupported; @@ -106,6 +108,7 @@ private EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata( Optional> claimsLocalesSupported, Optional claimsParameterSupported, Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, Optional> displayValuesSupported, Optional> dpopSigningAlgValuesSupported, Optional endSessionEndpoint, @@ -144,6 +147,7 @@ private EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata( this.claimsLocalesSupported = claimsLocalesSupported; this.claimsParameterSupported = claimsParameterSupported; this.claimsSupported = claimsSupported; + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; this.displayValuesSupported = displayValuesSupported; this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.endSessionEndpoint = endSessionEndpoint; @@ -226,6 +230,14 @@ public Optional> getClaimsSupported() { return claimsSupported; } + /** + * @return JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + /** * @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. */ @@ -493,6 +505,7 @@ private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0OptionsOidc && claimsLocalesSupported.equals(other.claimsLocalesSupported) && claimsParameterSupported.equals(other.claimsParameterSupported) && claimsSupported.equals(other.claimsSupported) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) && displayValuesSupported.equals(other.displayValuesSupported) && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) && endSessionEndpoint.equals(other.endSessionEndpoint) @@ -535,6 +548,7 @@ public int hashCode() { this.claimsLocalesSupported, this.claimsParameterSupported, this.claimsSupported, + this.codeChallengeMethodsSupported, this.displayValuesSupported, this.dpopSigningAlgValuesSupported, this.endSessionEndpoint, @@ -642,6 +656,13 @@ public interface _FinalStage { _FinalStage claimsSupported(List claimsSupported); + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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.

*/ @@ -918,6 +939,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional> displayValuesSupported = Optional.empty(); + private Optional> codeChallengeMethodsSupported = Optional.empty(); + private Optional> claimsSupported = Optional.empty(); private Optional claimsParameterSupported = Optional.empty(); @@ -941,6 +964,7 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMeta claimsLocalesSupported(other.getClaimsLocalesSupported()); claimsParameterSupported(other.getClaimsParameterSupported()); claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); displayValuesSupported(other.getDisplayValuesSupported()); dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); endSessionEndpoint(other.getEndSessionEndpoint()); @@ -1618,6 +1642,26 @@ public _FinalStage displayValuesSupported(Optional> displayValuesSu return this; } + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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. @@ -1727,6 +1771,7 @@ public EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata build() claimsLocalesSupported, claimsParameterSupported, claimsSupported, + codeChallengeMethodsSupported, displayValuesSupported, dpopSigningAlgValuesSupported, endSessionEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java index cf7accfd4..210749025 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java @@ -74,6 +74,8 @@ public final class EventStreamCloudEventConnectionUpdatedObject1Options { private final Optional> upstreamParams; + private final Optional useOauthSpecScope; + private final Optional userinfoEndpoint; private final Optional attributeMap; @@ -114,6 +116,7 @@ private EventStreamCloudEventConnectionUpdatedObject1Options( Optional tokenEndpointJwtcaAudFormat, Optional> upstreamParams, + Optional useOauthSpecScope, Optional userinfoEndpoint, Optional attributeMap, Optional domain, @@ -142,6 +145,7 @@ private EventStreamCloudEventConnectionUpdatedObject1Options( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.upstreamParams = upstreamParams; + this.useOauthSpecScope = useOauthSpecScope; this.userinfoEndpoint = userinfoEndpoint; this.attributeMap = attributeMap; this.domain = domain; @@ -309,6 +313,14 @@ public Optional> getUpstreamParams() { return upstreamParams; } + /** + * @return When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + /** * @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. */ @@ -371,6 +383,7 @@ private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1Options oth && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) && upstreamParams.equals(other.upstreamParams) + && useOauthSpecScope.equals(other.useOauthSpecScope) && userinfoEndpoint.equals(other.userinfoEndpoint) && attributeMap.equals(other.attributeMap) && domain.equals(other.domain) @@ -403,6 +416,7 @@ public int hashCode() { this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, this.upstreamParams, + this.useOauthSpecScope, this.userinfoEndpoint, this.attributeMap, this.domain, @@ -587,6 +601,13 @@ _FinalStage tokenEndpointJwtcaAudFormat( _FinalStage upstreamParams(Map upstreamParams); + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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.

*/ @@ -624,6 +645,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional userinfoEndpoint = Optional.empty(); + private Optional useOauthSpecScope = Optional.empty(); + private Optional> upstreamParams = Optional.empty(); private Optional @@ -708,6 +731,7 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1Options other) tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); upstreamParams(other.getUpstreamParams()); + useOauthSpecScope(other.getUseOauthSpecScope()); userinfoEndpoint(other.getUserinfoEndpoint()); attributeMap(other.getAttributeMap()); domain(other.getDomain()); @@ -793,6 +817,26 @@ public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { return this; } + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + return this; + } + @java.lang.Override public _FinalStage upstreamParams(Map upstreamParams) { this.upstreamParams = Optional.ofNullable(upstreamParams); @@ -1219,6 +1263,7 @@ public EventStreamCloudEventConnectionUpdatedObject1Options build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, upstreamParams, + useOauthSpecScope, userinfoEndpoint, attributeMap, domain, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java index ff24d8e5f..3e1843085 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java @@ -35,6 +35,8 @@ public final class EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetad private final Optional> claimsSupported; + private final Optional> codeChallengeMethodsSupported; + private final Optional> displayValuesSupported; private final Optional> dpopSigningAlgValuesSupported; @@ -106,6 +108,7 @@ private EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata( Optional> claimsLocalesSupported, Optional claimsParameterSupported, Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, Optional> displayValuesSupported, Optional> dpopSigningAlgValuesSupported, Optional endSessionEndpoint, @@ -144,6 +147,7 @@ private EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata( this.claimsLocalesSupported = claimsLocalesSupported; this.claimsParameterSupported = claimsParameterSupported; this.claimsSupported = claimsSupported; + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; this.displayValuesSupported = displayValuesSupported; this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.endSessionEndpoint = endSessionEndpoint; @@ -226,6 +230,14 @@ public Optional> getClaimsSupported() { return claimsSupported; } + /** + * @return JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + /** * @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. */ @@ -493,6 +505,7 @@ private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1OptionsOidc && claimsLocalesSupported.equals(other.claimsLocalesSupported) && claimsParameterSupported.equals(other.claimsParameterSupported) && claimsSupported.equals(other.claimsSupported) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) && displayValuesSupported.equals(other.displayValuesSupported) && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) && endSessionEndpoint.equals(other.endSessionEndpoint) @@ -535,6 +548,7 @@ public int hashCode() { this.claimsLocalesSupported, this.claimsParameterSupported, this.claimsSupported, + this.codeChallengeMethodsSupported, this.displayValuesSupported, this.dpopSigningAlgValuesSupported, this.endSessionEndpoint, @@ -642,6 +656,13 @@ public interface _FinalStage { _FinalStage claimsSupported(List claimsSupported); + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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.

*/ @@ -918,6 +939,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional> displayValuesSupported = Optional.empty(); + private Optional> codeChallengeMethodsSupported = Optional.empty(); + private Optional> claimsSupported = Optional.empty(); private Optional claimsParameterSupported = Optional.empty(); @@ -941,6 +964,7 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMeta claimsLocalesSupported(other.getClaimsLocalesSupported()); claimsParameterSupported(other.getClaimsParameterSupported()); claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); displayValuesSupported(other.getDisplayValuesSupported()); dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); endSessionEndpoint(other.getEndSessionEndpoint()); @@ -1618,6 +1642,26 @@ public _FinalStage displayValuesSupported(Optional> displayValuesSu return this; } + /** + *

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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. @@ -1727,6 +1771,7 @@ public EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata build() claimsLocalesSupported, claimsParameterSupported, claimsSupported, + codeChallengeMethodsSupported, displayValuesSupported, dpopSigningAlgValuesSupported, endSessionEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java index 6e4bd2b06..d59feeb8b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java @@ -71,16 +71,24 @@ public final class EventStreamCloudEventConnectionUpdatedObject2Options { private final Optional destinationUrl; + private final Optional disableFieldsMapFix; + private final Optional disableSignout; + private final Optional discoveryUrl; + private final Optional> fieldsMap; + private final Optional fieldsMapJsonRaw; + private final Optional globalTokenRevocationJwtIss; private final Optional globalTokenRevocationJwtSub; private final Optional metadataUrl; + private final Optional oidcMetadata; + private final Optional recipientUrl; private final Optional requestTemplate; @@ -117,11 +125,15 @@ private EventStreamCloudEventConnectionUpdatedObject2Options( Optional debug, Optional deflate, Optional destinationUrl, + Optional disableFieldsMapFix, Optional disableSignout, + Optional discoveryUrl, Optional> fieldsMap, + Optional fieldsMapJsonRaw, Optional globalTokenRevocationJwtIss, Optional globalTokenRevocationJwtSub, Optional metadataUrl, + Optional oidcMetadata, Optional recipientUrl, Optional requestTemplate, Optional signOutEndpoint, @@ -150,11 +162,15 @@ private EventStreamCloudEventConnectionUpdatedObject2Options( this.debug = debug; this.deflate = deflate; this.destinationUrl = destinationUrl; + this.disableFieldsMapFix = disableFieldsMapFix; this.disableSignout = disableSignout; + this.discoveryUrl = discoveryUrl; this.fieldsMap = fieldsMap; + this.fieldsMapJsonRaw = fieldsMapJsonRaw; this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; this.metadataUrl = metadataUrl; + this.oidcMetadata = oidcMetadata; this.recipientUrl = recipientUrl; this.requestTemplate = requestTemplate; this.signOutEndpoint = signOutEndpoint; @@ -325,6 +341,14 @@ public Optional getDestinationUrl() { return destinationUrl; } + /** + * @return When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). + */ + @JsonProperty("disableFieldsMapFix") + public Optional getDisableFieldsMapFix() { + return disableFieldsMapFix; + } + /** * @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). */ @@ -333,11 +357,27 @@ public Optional getDisableSignout() { return disableSignout; } + /** + * @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. Used with Cross App Access. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + @JsonProperty("fieldsMap") public Optional> getFieldsMap() { return fieldsMap; } + /** + * @return Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. + */ + @JsonProperty("fieldsMapJsonRaw") + public Optional getFieldsMapJsonRaw() { + return fieldsMapJsonRaw; + } + /** * @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. */ @@ -362,6 +402,11 @@ public Optional getMetadataUrl() { return metadataUrl; } + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + /** * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. */ @@ -430,11 +475,15 @@ private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2Options oth && debug.equals(other.debug) && deflate.equals(other.deflate) && destinationUrl.equals(other.destinationUrl) + && disableFieldsMapFix.equals(other.disableFieldsMapFix) && disableSignout.equals(other.disableSignout) + && discoveryUrl.equals(other.discoveryUrl) && fieldsMap.equals(other.fieldsMap) + && fieldsMapJsonRaw.equals(other.fieldsMapJsonRaw) && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) && metadataUrl.equals(other.metadataUrl) + && oidcMetadata.equals(other.oidcMetadata) && recipientUrl.equals(other.recipientUrl) && requestTemplate.equals(other.requestTemplate) && signOutEndpoint.equals(other.signOutEndpoint) @@ -467,11 +516,15 @@ public int hashCode() { this.debug, this.deflate, this.destinationUrl, + this.disableFieldsMapFix, this.disableSignout, + this.discoveryUrl, this.fieldsMap, + this.fieldsMapJsonRaw, this.globalTokenRevocationJwtIss, this.globalTokenRevocationJwtSub, this.metadataUrl, + this.oidcMetadata, this.recipientUrl, this.requestTemplate, this.signOutEndpoint, @@ -541,16 +594,25 @@ public static final class Builder { private Optional destinationUrl = Optional.empty(); + private Optional disableFieldsMapFix = Optional.empty(); + private Optional disableSignout = Optional.empty(); + private Optional discoveryUrl = Optional.empty(); + private Optional> fieldsMap = Optional.empty(); + private Optional fieldsMapJsonRaw = Optional.empty(); + private Optional globalTokenRevocationJwtIss = Optional.empty(); private Optional globalTokenRevocationJwtSub = Optional.empty(); private Optional metadataUrl = Optional.empty(); + private Optional oidcMetadata = + Optional.empty(); + private Optional recipientUrl = Optional.empty(); private Optional requestTemplate = Optional.empty(); @@ -588,11 +650,15 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject2Options other) debug(other.getDebug()); deflate(other.getDeflate()); destinationUrl(other.getDestinationUrl()); + disableFieldsMapFix(other.getDisableFieldsMapFix()); disableSignout(other.getDisableSignout()); + discoveryUrl(other.getDiscoveryUrl()); fieldsMap(other.getFieldsMap()); + fieldsMapJsonRaw(other.getFieldsMapJsonRaw()); globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); metadataUrl(other.getMetadataUrl()); + oidcMetadata(other.getOidcMetadata()); recipientUrl(other.getRecipientUrl()); requestTemplate(other.getRequestTemplate()); signOutEndpoint(other.getSignOutEndpoint()); @@ -913,6 +979,20 @@ public Builder destinationUrl(String destinationUrl) { return this; } + /** + *

When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).

+ */ + @JsonSetter(value = "disableFieldsMapFix", nulls = Nulls.SKIP) + public Builder disableFieldsMapFix(Optional disableFieldsMapFix) { + this.disableFieldsMapFix = disableFieldsMapFix; + return this; + } + + public Builder disableFieldsMapFix(Boolean disableFieldsMapFix) { + this.disableFieldsMapFix = Optional.ofNullable(disableFieldsMapFix); + 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).

*/ @@ -927,6 +1007,20 @@ public Builder disableSignout(Boolean disableSignout) { 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. Used with Cross App Access.

+ */ + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) public Builder fieldsMap(Optional> fieldsMap) { this.fieldsMap = fieldsMap; @@ -938,6 +1032,20 @@ public Builder fieldsMap(Map fieldsMap) { return this; } + /** + *

Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.

+ */ + @JsonSetter(value = "fieldsMapJsonRaw", nulls = Nulls.SKIP) + public Builder fieldsMapJsonRaw(Optional fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + return this; + } + + public Builder fieldsMapJsonRaw(String fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = Optional.ofNullable(fieldsMapJsonRaw); + 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.

*/ @@ -980,6 +1088,18 @@ public Builder metadataUrl(String metadataUrl) { return this; } + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata(EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + /** *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

*/ @@ -1061,11 +1181,15 @@ public EventStreamCloudEventConnectionUpdatedObject2Options build() { debug, deflate, destinationUrl, + disableFieldsMapFix, disableSignout, + discoveryUrl, fieldsMap, + fieldsMapJsonRaw, globalTokenRevocationJwtIss, globalTokenRevocationJwtSub, metadataUrl, + oidcMetadata, recipientUrl, requestTemplate, signOutEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata.java new file mode 100644 index 000000000..209e48c1c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionUpdatedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java index 344851345..802e848b3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java @@ -45,6 +45,8 @@ public final class EventStreamCloudEventConnectionUpdatedObject5Options { private final Optional kerberos; + private final Optional kerberosOnly; + private final Optional> nonPersistentAttrs; private final Optional @@ -73,6 +75,7 @@ private EventStreamCloudEventConnectionUpdatedObject5Options( Optional iconUrl, Optional> ips, Optional kerberos, + Optional kerberosOnly, Optional> nonPersistentAttrs, Optional setUserRootAttributes, @@ -93,6 +96,7 @@ private EventStreamCloudEventConnectionUpdatedObject5Options( this.iconUrl = iconUrl; this.ips = ips; this.kerberos = kerberos; + this.kerberosOnly = kerberosOnly; this.nonPersistentAttrs = nonPersistentAttrs; this.setUserRootAttributes = setUserRootAttributes; this.signInEndpoint = signInEndpoint; @@ -198,6 +202,14 @@ public Optional getKerberos() { return kerberos; } + /** + * @return When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. + */ + @JsonProperty("kerberos_only") + public Optional getKerberosOnly() { + return kerberosOnly; + } + /** * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) */ @@ -266,6 +278,7 @@ private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5Options oth && iconUrl.equals(other.iconUrl) && ips.equals(other.ips) && kerberos.equals(other.kerberos) + && kerberosOnly.equals(other.kerberosOnly) && nonPersistentAttrs.equals(other.nonPersistentAttrs) && setUserRootAttributes.equals(other.setUserRootAttributes) && signInEndpoint.equals(other.signInEndpoint) @@ -289,6 +302,7 @@ public int hashCode() { this.iconUrl, this.ips, this.kerberos, + this.kerberosOnly, this.nonPersistentAttrs, this.setUserRootAttributes, this.signInEndpoint, @@ -332,6 +346,8 @@ public static final class Builder { private Optional kerberos = Optional.empty(); + private Optional kerberosOnly = Optional.empty(); + private Optional> nonPersistentAttrs = Optional.empty(); private Optional @@ -363,6 +379,7 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject5Options other) iconUrl(other.getIconUrl()); ips(other.getIps()); kerberos(other.getKerberos()); + kerberosOnly(other.getKerberosOnly()); nonPersistentAttrs(other.getNonPersistentAttrs()); setUserRootAttributes(other.getSetUserRootAttributes()); signInEndpoint(other.getSignInEndpoint()); @@ -540,6 +557,20 @@ public Builder kerberos(Boolean kerberos) { return this; } + /** + *

When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback.

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

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

*/ @@ -635,6 +666,7 @@ public EventStreamCloudEventConnectionUpdatedObject5Options build() { iconUrl, ips, kerberos, + kerberosOnly, nonPersistentAttrs, setUserRootAttributes, signInEndpoint, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject.java new file mode 100644 index 000000000..5cf4e7bc6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject.java @@ -0,0 +1,226 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject.Deserializer.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionUpdatedPreviousObject(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((EventStreamCloudEventConnectionUpdatedPreviousObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedPreviousObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedPreviousObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedPreviousObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedPreviousObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedPreviousObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedPreviousObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedPreviousObject7) 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 EventStreamCloudEventConnectionUpdatedPreviousObject + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject 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 EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject0 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 0); + } + + public static EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject1 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 1); + } + + public static EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject2 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 2); + } + + public static EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject3 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 3); + } + + public static EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject4 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 4); + } + + public static EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject5 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 5); + } + + public static EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject6 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 6); + } + + public static EventStreamCloudEventConnectionUpdatedPreviousObject of( + EventStreamCloudEventConnectionUpdatedPreviousObject7 value) { + return new EventStreamCloudEventConnectionUpdatedPreviousObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject0 value); + + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject1 value); + + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject2 value); + + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject3 value); + + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject4 value); + + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject5 value); + + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject6 value); + + T visit(EventStreamCloudEventConnectionUpdatedPreviousObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionUpdatedPreviousObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedPreviousObject 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, EventStreamCloudEventConnectionUpdatedPreviousObject0.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, EventStreamCloudEventConnectionUpdatedPreviousObject1.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, EventStreamCloudEventConnectionUpdatedPreviousObject2.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, EventStreamCloudEventConnectionUpdatedPreviousObject3.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, EventStreamCloudEventConnectionUpdatedPreviousObject4.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, EventStreamCloudEventConnectionUpdatedPreviousObject5.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, EventStreamCloudEventConnectionUpdatedPreviousObject6.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, EventStreamCloudEventConnectionUpdatedPreviousObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0.java new file mode 100644 index 000000000..4d1465323 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject0.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject0 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject0 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(EventStreamCloudEventConnectionUpdatedPreviousObject0 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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedPreviousObject0Options 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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject0 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject0Options 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject0 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication.java new file mode 100644 index 000000000..e35ecf1dd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts.java new file mode 100644 index 000000000..b2143fdc3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts.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 = EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata.java new file mode 100644 index 000000000..871cca14e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0Options.java new file mode 100644 index 000000000..f9e0f73df --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0Options { + 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< + List> + 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 useOauthSpecScope; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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 useOauthSpecScope, + 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.useOauthSpecScope = useOauthSpecScope; + 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 When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedPreviousObject0Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject0Options 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) + && useOauthSpecScope.equals(other.useOauthSpecScope) + && 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.useOauthSpecScope, + 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(EventStreamCloudEventConnectionUpdatedPreviousObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject0Options 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens + 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< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap 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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum 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 useOauthSpecScope = 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< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionUpdatedPreviousObject0Options 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()); + useOauthSpecScope(other.getUseOauthSpecScope()); + 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.

+ * @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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap 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; + } + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata 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< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum>> + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings 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 EventStreamCloudEventConnectionUpdatedPreviousObject0Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + useOauthSpecScope, + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap.java new file mode 100644 index 000000000..b71ba4db0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional + mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap 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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..1d6d17b1f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,96 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum + BIND_ALL = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum + USE_MAP = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings.java new file mode 100644 index 000000000..21d9d66eb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings.java @@ -0,0 +1,112 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings 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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..7e9a4ab2c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,119 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum + DISABLED = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum( + Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum valueOf( + String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..b223d2adf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum( + Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..53b1c7eaf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..edeef5fcb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS512 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + ES384 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + PS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + ES256 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + PS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + RS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata.java new file mode 100644 index 000000000..5c9b42416 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..944cb9702 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum( + Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..3b600b103 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..b84eedf00 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..548fa61ad --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS512 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + ES384 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + PS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + ES256 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + PS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + RS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..042937b67 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + ISSUER = new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum.java new file mode 100644 index 000000000..5385043cb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum( + Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum( + Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum.java new file mode 100644 index 000000000..772a96a86 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1.java new file mode 100644 index 000000000..b1823a421 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject1.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject1 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject1 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(EventStreamCloudEventConnectionUpdatedPreviousObject1 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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Options 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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject1 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject1 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication.java new file mode 100644 index 000000000..e4554c205 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts.java new file mode 100644 index 000000000..4f57ad60c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata.java new file mode 100644 index 000000000..40c63045a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1Options.java new file mode 100644 index 000000000..76f08ce8a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1Options { + 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< + List> + 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 useOauthSpecScope; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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 useOauthSpecScope, + 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.useOauthSpecScope = useOauthSpecScope; + 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 When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint + */ + @JsonProperty("useOauthSpecScope") + public Optional getUseOauthSpecScope() { + return useOauthSpecScope; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedPreviousObject1Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject1Options 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) + && useOauthSpecScope.equals(other.useOauthSpecScope) + && 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.useOauthSpecScope, + 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject1Options 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens + 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< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap 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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum 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 useOauthSpecScope = 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< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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(EventStreamCloudEventConnectionUpdatedPreviousObject1Options 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()); + useOauthSpecScope(other.getUseOauthSpecScope()); + 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.

+ * @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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap 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; + } + + /** + *

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

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

When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

+ */ + @java.lang.Override + @JsonSetter(value = "useOauthSpecScope", nulls = Nulls.SKIP) + public _FinalStage useOauthSpecScope(Optional useOauthSpecScope) { + this.useOauthSpecScope = useOauthSpecScope; + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata 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< + List< + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum>> + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings 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 EventStreamCloudEventConnectionUpdatedPreviousObject1Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + useOauthSpecScope, + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap.java new file mode 100644 index 000000000..a06493d8c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional + mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap 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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..88dd1a9b9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,96 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum + USE_MAP = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum + BASIC_PROFILE = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings.java new file mode 100644 index 000000000..fd8af7b51 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings.java @@ -0,0 +1,112 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings 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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..442f68100 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,119 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum + DISABLED = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum( + Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum valueOf( + String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..2b3e9751d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum( + Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..fc05ef758 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..27b86c989 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS512 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + ES384 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + PS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + ES256 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + PS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + RS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata.java new file mode 100644 index 000000000..898a9ff30 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..75ba4c921 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum( + Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..d3045348f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..4b31f934b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..f8a5c1e31 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,156 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS512 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + ES384 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + PS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + ES256 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + PS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS384 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + RS256 = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..396d27b44 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + ISSUER = new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum.java new file mode 100644 index 000000000..cb3fb4545 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum( + Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum.java new file mode 100644 index 000000000..94a1f38cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2.java new file mode 100644 index 000000000..c6aa56e2f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject2 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject2 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(EventStreamCloudEventConnectionUpdatedPreviousObject2 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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata 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(EventStreamCloudEventConnectionUpdatedPreviousObject2Options 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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject2 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject2Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject2 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication.java new file mode 100644 index 000000000..3afb55088 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts.java new file mode 100644 index 000000000..fa95a159c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata.java new file mode 100644 index 000000000..0c22ea06d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2Options.java new file mode 100644 index 000000000..b498c664a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2Options.java @@ -0,0 +1,1221 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2Options { + 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 disableFieldsMapFix; + + private final Optional disableSignout; + + private final Optional discoveryUrl; + + private final Optional> fieldsMap; + + private final Optional fieldsMapJsonRaw; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional oidcMetadata; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2Options( + 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 disableFieldsMapFix, + Optional disableSignout, + Optional discoveryUrl, + Optional> fieldsMap, + Optional fieldsMapJsonRaw, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional oidcMetadata, + 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.disableFieldsMapFix = disableFieldsMapFix; + this.disableSignout = disableSignout; + this.discoveryUrl = discoveryUrl; + this.fieldsMap = fieldsMap; + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.oidcMetadata = oidcMetadata; + 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 the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). + */ + @JsonProperty("disableFieldsMapFix") + public Optional getDisableFieldsMapFix() { + return disableFieldsMapFix; + } + + /** + * @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; + } + + /** + * @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. Used with Cross App Access. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. + */ + @JsonProperty("fieldsMapJsonRaw") + public Optional getFieldsMapJsonRaw() { + return fieldsMapJsonRaw; + } + + /** + * @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; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedPreviousObject2Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject2Options 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) + && disableFieldsMapFix.equals(other.disableFieldsMapFix) + && disableSignout.equals(other.disableSignout) + && discoveryUrl.equals(other.discoveryUrl) + && fieldsMap.equals(other.fieldsMap) + && fieldsMapJsonRaw.equals(other.fieldsMapJsonRaw) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && oidcMetadata.equals(other.oidcMetadata) + && 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.disableFieldsMapFix, + this.disableSignout, + this.discoveryUrl, + this.fieldsMap, + this.fieldsMapJsonRaw, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.oidcMetadata, + 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 disableFieldsMapFix = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional fieldsMapJsonRaw = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional oidcMetadata = + 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(EventStreamCloudEventConnectionUpdatedPreviousObject2Options 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()); + disableFieldsMapFix(other.getDisableFieldsMapFix()); + disableSignout(other.getDisableSignout()); + discoveryUrl(other.getDiscoveryUrl()); + fieldsMap(other.getFieldsMap()); + fieldsMapJsonRaw(other.getFieldsMapJsonRaw()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + oidcMetadata(other.getOidcMetadata()); + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject 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 the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).

+ */ + @JsonSetter(value = "disableFieldsMapFix", nulls = Nulls.SKIP) + public Builder disableFieldsMapFix(Optional disableFieldsMapFix) { + this.disableFieldsMapFix = disableFieldsMapFix; + return this; + } + + public Builder disableFieldsMapFix(Boolean disableFieldsMapFix) { + this.disableFieldsMapFix = Optional.ofNullable(disableFieldsMapFix); + 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; + } + + /** + *

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. Used with Cross App Access.

+ */ + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + 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; + } + + /** + *

Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.

+ */ + @JsonSetter(value = "fieldsMapJsonRaw", nulls = Nulls.SKIP) + public Builder fieldsMapJsonRaw(Optional fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = fieldsMapJsonRaw; + return this; + } + + public Builder fieldsMapJsonRaw(String fieldsMapJsonRaw) { + this.fieldsMapJsonRaw = Optional.ofNullable(fieldsMapJsonRaw); + 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; + } + + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableFieldsMapFix, + disableSignout, + discoveryUrl, + fieldsMap, + fieldsMapJsonRaw, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + oidcMetadata, + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..f7ca36f35 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,183 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..007d9e2b9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum valueOf( + String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..1ca544566 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum valueOf( + String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated.java new file mode 100644 index 000000000..252235bee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated.java @@ -0,0 +1,207 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated 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(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated 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( + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..94e66a425 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,108 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + WSFED = new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + SAMLP = new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + OIDC = new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata.java new file mode 100644 index 000000000..621784e98 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata.java @@ -0,0 +1,1821 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata { + 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> codeChallengeMethodsSupported; + + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> codeChallengeMethodsSupported, + 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.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. + */ + @JsonProperty("code_challenge_methods_supported") + public Optional> getCodeChallengeMethodsSupported() { + return codeChallengeMethodsSupported; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata 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) + && codeChallengeMethodsSupported.equals(other.codeChallengeMethodsSupported) + && 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.codeChallengeMethodsSupported, + 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(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata 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 { + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata 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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

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> codeChallengeMethodsSupported = 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(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + codeChallengeMethodsSupported(other.getCodeChallengeMethodsSupported()); + 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.

+ * @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.

+ * @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.

+ * @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 Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

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

JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636.

+ */ + @java.lang.Override + @JsonSetter(value = "code_challenge_methods_supported", nulls = Nulls.SKIP) + public _FinalStage codeChallengeMethodsSupported(Optional> codeChallengeMethodsSupported) { + this.codeChallengeMethodsSupported = codeChallengeMethodsSupported; + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + codeChallengeMethodsSupported, + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..5824b1c5f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum( + 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; + + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..86920ac32 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..9fc3b4580 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum valueOf( + String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject.java new file mode 100644 index 000000000..6f6672297 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject.java @@ -0,0 +1,70 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject( + Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject(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/EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum.java new file mode 100644 index 000000000..754781268 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3.java new file mode 100644 index 000000000..af5f8b2f1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject3.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject3 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject3 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(EventStreamCloudEventConnectionUpdatedPreviousObject3 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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Options 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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject3 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject3 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication.java new file mode 100644 index 000000000..54ed47a19 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts.java new file mode 100644 index 000000000..0ecf59944 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata.java new file mode 100644 index 000000000..09fbaa098 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3Options.java new file mode 100644 index 000000000..1052064a0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3Options.java @@ -0,0 +1,993 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3Options { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3Options( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject3Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum + setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject 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(EventStreamCloudEventConnectionUpdatedPreviousObject3Options 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

+ * @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(EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3Options( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..40fed541a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,183 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings 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 + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..3a370bf5d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum valueOf( + String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..6cf1dbcef --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum valueOf( + String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated.java new file mode 100644 index 000000000..23dcf620f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated.java @@ -0,0 +1,207 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated 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(EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated 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( + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..9f4280ff5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,108 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + WSFED = new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + SAMLP = new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + OIDC = new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..f197ab8ac --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,97 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum( + 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; + + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..7ae740319 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..1e962e3b7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum valueOf( + String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject.java new file mode 100644 index 000000000..5d6004afc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject.java @@ -0,0 +1,70 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject( + Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject(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/EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum.java new file mode 100644 index 000000000..6ce42cdcf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4.java new file mode 100644 index 000000000..56c66dd2e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject4.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject4 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject4 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject4 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(EventStreamCloudEventConnectionUpdatedPreviousObject4 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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata 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(EventStreamCloudEventConnectionUpdatedPreviousObject4Options 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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject4 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject4Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts 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( + EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject4 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject4( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication.java new file mode 100644 index 000000000..ee745a3fc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts.java new file mode 100644 index 000000000..86bf12d72 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata.java new file mode 100644 index 000000000..713194f41 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4Options.java new file mode 100644 index 000000000..40da58d6a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4Options.java @@ -0,0 +1,568 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject4Options { + 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< + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4Options( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject4Options 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< + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + 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(EventStreamCloudEventConnectionUpdatedPreviousObject4Options 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( + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum + setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional< + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject4Options( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..6ec8c5bb0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..1fbfc8e08 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,100 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum.java new file mode 100644 index 000000000..ab58acb5e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5.java new file mode 100644 index 000000000..87391703b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5.java @@ -0,0 +1,517 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject5.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject5 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject5 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject5 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(EventStreamCloudEventConnectionUpdatedPreviousObject5 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 EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata 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(EventStreamCloudEventConnectionUpdatedPreviousObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject5 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedPreviousObject5Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts 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( + EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject5 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject5( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication.java new file mode 100644 index 000000000..b3ed5888e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts.java new file mode 100644 index 000000000..f113dbfc6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata.java new file mode 100644 index 000000000..8ae0d47e6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5Options.java new file mode 100644 index 000000000..12c169c15 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5Options.java @@ -0,0 +1,690 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject5Options { + 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 kerberosOnly; + + 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 EventStreamCloudEventConnectionUpdatedPreviousObject5Options( + 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 kerberosOnly, + 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.kerberosOnly = kerberosOnly; + 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 When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. + */ + @JsonProperty("kerberos_only") + public Optional getKerberosOnly() { + return kerberosOnly; + } + + /** + * @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 EventStreamCloudEventConnectionUpdatedPreviousObject5Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject5Options 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) + && kerberosOnly.equals(other.kerberosOnly) + && 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.kerberosOnly, + 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 kerberosOnly = 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(EventStreamCloudEventConnectionUpdatedPreviousObject5Options 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()); + kerberosOnly(other.getKerberosOnly()); + 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; + } + + /** + *

When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback.

+ */ + @JsonSetter(value = "kerberos_only", nulls = Nulls.SKIP) + public Builder kerberosOnly(Optional kerberosOnly) { + this.kerberosOnly = kerberosOnly; + return this; + } + + public Builder kerberosOnly(Boolean kerberosOnly) { + this.kerberosOnly = Optional.ofNullable(kerberosOnly); + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject5Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + kerberosOnly, + 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/EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..cefdf4a29 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum.java new file mode 100644 index 000000000..0d117039a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum AD = + new EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6.java new file mode 100644 index 000000000..049081b1f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject6.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject6 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject6 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject6 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(EventStreamCloudEventConnectionUpdatedPreviousObject6 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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Options 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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject6 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts 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( + EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject6 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject6( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication.java new file mode 100644 index 000000000..db7a8b091 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts.java new file mode 100644 index 000000000..ce7b5b8e7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata.java new file mode 100644 index 000000000..ff893bb0f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6Options.java new file mode 100644 index 000000000..10cd4ee6f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6Options.java @@ -0,0 +1,1113 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject6Options { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject6Options( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject6Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject6Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject6Options 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( + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum + 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(EventStreamCloudEventConnectionUpdatedPreviousObject6Options 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.

+ * @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( + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens + 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 EventStreamCloudEventConnectionUpdatedPreviousObject6Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject6Options( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..583151762 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..1414088e0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum.java new file mode 100644 index 000000000..54aa5353a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum(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/EventStreamCloudEventConnectionUpdatedPreviousObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7.java new file mode 100644 index 000000000..cb85616bf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7.java @@ -0,0 +1,562 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject7.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject7 { + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject7 + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject7 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(EventStreamCloudEventConnectionUpdatedPreviousObject7 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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Options 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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject7 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

+ * @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

+ * @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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject7 build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject7( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication.java new file mode 100644 index 000000000..29c6c3014 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication 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 EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts.java new file mode 100644 index 000000000..097eaa7be --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts.java @@ -0,0 +1,120 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts 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(EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts 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 EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata.java new file mode 100644 index 000000000..a9119468d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata.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 = EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata; + } + + @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(EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata(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/EventStreamCloudEventConnectionUpdatedPreviousObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7Options.java new file mode 100644 index 000000000..bd55c3cdc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7Options.java @@ -0,0 +1,1308 @@ +/** + * 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 = EventStreamCloudEventConnectionUpdatedPreviousObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject7Options { + 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< + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7Options( + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7Options + && equalTo((EventStreamCloudEventConnectionUpdatedPreviousObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedPreviousObject7Options 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject7Options 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum + setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional< + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum 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< + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + 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(EventStreamCloudEventConnectionUpdatedPreviousObject7Options 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.

+ * @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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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< + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum> + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum + 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7Options build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject7Options( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..66aff0426 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,140 @@ +/** + * 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 = + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens.Builder + .class) +public final class EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens) + other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens 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( + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum.java new file mode 100644 index 000000000..861c091e7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum + AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..6e7ed08cb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,107 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum + NEVER_ON_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum + ON_EACH_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum + ON_FIRST_LOGIN = new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum(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 + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..972af6d6c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,100 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + 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 + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum.java new file mode 100644 index 000000000..0ac7b214d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum) + 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum valueOf( + String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum.java new file mode 100644 index 000000000..fb32e7854 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,91 @@ +/** + * 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum( + 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/EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum.java new file mode 100644 index 000000000..59f2599d1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum.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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum(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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum) 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 EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum(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/EventStreamCloudEventContextTenant.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java index 5238871da..2438ba9f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java @@ -19,21 +19,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventContextTenant.Builder.class) public final class EventStreamCloudEventContextTenant { - private final String tenantId; + private final String id; private final Map additionalProperties; - private EventStreamCloudEventContextTenant(String tenantId, Map additionalProperties) { - this.tenantId = tenantId; + private EventStreamCloudEventContextTenant(String id, Map additionalProperties) { + this.id = id; this.additionalProperties = additionalProperties; } /** - * @return Machine-generated unique tenant identifier. + * @return User-provided tenant identifier. */ - @JsonProperty("tenant_id") - public String getTenantId() { - return tenantId; + @JsonProperty("id") + public String getId() { + return id; } @java.lang.Override @@ -49,12 +49,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventContextTenant other) { - return tenantId.equals(other.tenantId); + return id.equals(other.id); } @java.lang.Override public int hashCode() { - return Objects.hash(this.tenantId); + return Objects.hash(this.id); } @java.lang.Override @@ -62,15 +62,15 @@ public String toString() { return ObjectMappers.stringify(this); } - public static TenantIdStage builder() { + public static IdStage builder() { return new Builder(); } - public interface TenantIdStage { + public interface IdStage { /** - *

Machine-generated unique tenant identifier.

+ *

User-provided tenant identifier.

*/ - _FinalStage tenantId(@NotNull String tenantId); + _FinalStage id(@NotNull String id); Builder from(EventStreamCloudEventContextTenant other); } @@ -84,8 +84,8 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements TenantIdStage, _FinalStage { - private String tenantId; + public static final class Builder implements IdStage, _FinalStage { + private String id; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -94,24 +94,24 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventContextTenant other) { - tenantId(other.getTenantId()); + id(other.getId()); return this; } /** - *

Machine-generated unique tenant identifier.

+ *

User-provided tenant identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override - @JsonSetter("tenant_id") - public _FinalStage tenantId(@NotNull String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId, "tenantId must not be null"); + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override public EventStreamCloudEventContextTenant build() { - return new EventStreamCloudEventContextTenant(tenantId, additionalProperties); + return new EventStreamCloudEventContextTenant(id, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedData.java index 166413eb5..37445c0b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventGroupCreatedData { private final EventStreamCloudEventGroupCreatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventGroupCreatedData( EventStreamCloudEventGroupCreatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventGroupCreatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventGroupCreatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventGroupCreatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventGroupCreatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventGroupCreatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventGroupCreatedData build() { - return new EventStreamCloudEventGroupCreatedData(object, context, additionalProperties); + return new EventStreamCloudEventGroupCreatedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject.java new file mode 100644 index 000000000..bd1a0ec99 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject.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.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 = EventStreamCloudEventGroupCreatedPreviousObject.Deserializer.class) +public final class EventStreamCloudEventGroupCreatedPreviousObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupCreatedPreviousObject(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((EventStreamCloudEventGroupCreatedPreviousObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupCreatedPreviousObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventGroupCreatedPreviousObject2) 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 EventStreamCloudEventGroupCreatedPreviousObject + && equalTo((EventStreamCloudEventGroupCreatedPreviousObject) other); + } + + private boolean equalTo(EventStreamCloudEventGroupCreatedPreviousObject 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 EventStreamCloudEventGroupCreatedPreviousObject of( + EventStreamCloudEventGroupCreatedPreviousObject0 value) { + return new EventStreamCloudEventGroupCreatedPreviousObject(value, 0); + } + + public static EventStreamCloudEventGroupCreatedPreviousObject of( + EventStreamCloudEventGroupCreatedPreviousObject1 value) { + return new EventStreamCloudEventGroupCreatedPreviousObject(value, 1); + } + + public static EventStreamCloudEventGroupCreatedPreviousObject of( + EventStreamCloudEventGroupCreatedPreviousObject2 value) { + return new EventStreamCloudEventGroupCreatedPreviousObject(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupCreatedPreviousObject0 value); + + T visit(EventStreamCloudEventGroupCreatedPreviousObject1 value); + + T visit(EventStreamCloudEventGroupCreatedPreviousObject2 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupCreatedPreviousObject.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupCreatedPreviousObject 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("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupCreatedPreviousObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupCreatedPreviousObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("created_at") + && ((Map) value).containsKey("type")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupCreatedPreviousObject2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject0.java new file mode 100644 index 000000000..e7259dd8c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject0.java @@ -0,0 +1,305 @@ +/** + * 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 = EventStreamCloudEventGroupCreatedPreviousObject0.Builder.class) +public final class EventStreamCloudEventGroupCreatedPreviousObject0 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupCreatedPreviousObject0( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum type, + String connectionId, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupCreatedPreviousObject0 + && equalTo((EventStreamCloudEventGroupCreatedPreviousObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupCreatedPreviousObject0 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name, this.externalId, this.createdAt, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, ConnectionIdStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum type; + + private String connectionId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupCreatedPreviousObject0 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupCreatedPreviousObject0 build() { + return new EventStreamCloudEventGroupCreatedPreviousObject0( + id, name, externalId, createdAt, type, connectionId, 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/EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum.java new file mode 100644 index 000000000..741a6fb5c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum.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 EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum { + public static final EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum CONNECTION = + new EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum(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 EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject1.java new file mode 100644 index 000000000..34e4e3135 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject1.java @@ -0,0 +1,305 @@ +/** + * 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 = EventStreamCloudEventGroupCreatedPreviousObject1.Builder.class) +public final class EventStreamCloudEventGroupCreatedPreviousObject1 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum type; + + private final String organizationId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupCreatedPreviousObject1( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum type, + String organizationId, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.organizationId = organizationId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupCreatedPreviousObject1 + && equalTo((EventStreamCloudEventGroupCreatedPreviousObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupCreatedPreviousObject1 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && organizationId.equals(other.organizationId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name, this.externalId, this.createdAt, this.type, this.organizationId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, OrganizationIdStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum type; + + private String organizationId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupCreatedPreviousObject1 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + organizationId(other.getOrganizationId()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupCreatedPreviousObject1 build() { + return new EventStreamCloudEventGroupCreatedPreviousObject1( + id, name, externalId, createdAt, type, organizationId, 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/EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum.java new file mode 100644 index 000000000..dc09c8b08 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum.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 EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum { + public static final EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum ORGANIZATION = + new EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum(Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum(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 EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject2.java new file mode 100644 index 000000000..735c21b30 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject2.java @@ -0,0 +1,270 @@ +/** + * 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 = EventStreamCloudEventGroupCreatedPreviousObject2.Builder.class) +public final class EventStreamCloudEventGroupCreatedPreviousObject2 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum type; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupCreatedPreviousObject2( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum type, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupCreatedPreviousObject2 + && equalTo((EventStreamCloudEventGroupCreatedPreviousObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupCreatedPreviousObject2 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name, this.externalId, this.createdAt, this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + _FinalStage type(@NotNull EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum type); + } + + public interface _FinalStage { + EventStreamCloudEventGroupCreatedPreviousObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, CreatedAtStage, TypeStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum type; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupCreatedPreviousObject2 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupCreatedPreviousObject2 build() { + return new EventStreamCloudEventGroupCreatedPreviousObject2( + id, name, externalId, createdAt, 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/EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum.java new file mode 100644 index 000000000..ceb5ebea6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum.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 EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum { + public static final EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum TENANT = + new EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum(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 EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedData.java index 22efcaafd..24040ee6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventGroupDeletedData { private final EventStreamCloudEventGroupDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventGroupDeletedData( EventStreamCloudEventGroupDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventGroupDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventGroupDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventGroupDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventGroupDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventGroupDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventGroupDeletedData build() { - return new EventStreamCloudEventGroupDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventGroupDeletedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject.java new file mode 100644 index 000000000..6a54c8285 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject.java @@ -0,0 +1,139 @@ +/** + * 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 = EventStreamCloudEventGroupDeletedPreviousObject.Deserializer.class) +public final class EventStreamCloudEventGroupDeletedPreviousObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupDeletedPreviousObject(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((EventStreamCloudEventGroupDeletedPreviousObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupDeletedPreviousObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventGroupDeletedPreviousObject2) 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 EventStreamCloudEventGroupDeletedPreviousObject + && equalTo((EventStreamCloudEventGroupDeletedPreviousObject) other); + } + + private boolean equalTo(EventStreamCloudEventGroupDeletedPreviousObject 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 EventStreamCloudEventGroupDeletedPreviousObject of( + EventStreamCloudEventGroupDeletedPreviousObject0 value) { + return new EventStreamCloudEventGroupDeletedPreviousObject(value, 0); + } + + public static EventStreamCloudEventGroupDeletedPreviousObject of( + EventStreamCloudEventGroupDeletedPreviousObject1 value) { + return new EventStreamCloudEventGroupDeletedPreviousObject(value, 1); + } + + public static EventStreamCloudEventGroupDeletedPreviousObject of( + EventStreamCloudEventGroupDeletedPreviousObject2 value) { + return new EventStreamCloudEventGroupDeletedPreviousObject(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupDeletedPreviousObject0 value); + + T visit(EventStreamCloudEventGroupDeletedPreviousObject1 value); + + T visit(EventStreamCloudEventGroupDeletedPreviousObject2 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupDeletedPreviousObject.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupDeletedPreviousObject 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("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id") + && ((Map) value).containsKey("updated_at")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupDeletedPreviousObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id") + && ((Map) value).containsKey("updated_at")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupDeletedPreviousObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("updated_at")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupDeletedPreviousObject2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject0.java new file mode 100644 index 000000000..cb3b41a4c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject0.java @@ -0,0 +1,340 @@ +/** + * 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 = EventStreamCloudEventGroupDeletedPreviousObject0.Builder.class) +public final class EventStreamCloudEventGroupDeletedPreviousObject0 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum type; + + private final String connectionId; + + private final OffsetDateTime updatedAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupDeletedPreviousObject0( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum type, + String connectionId, + OffsetDateTime updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.connectionId = connectionId; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupDeletedPreviousObject0 + && equalTo((EventStreamCloudEventGroupDeletedPreviousObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupDeletedPreviousObject0 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && connectionId.equals(other.connectionId) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.id, this.name, this.externalId, this.createdAt, this.type, this.connectionId, this.updatedAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

+ */ + UpdatedAtStage connectionId(@NotNull String connectionId); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, ConnectionIdStage, UpdatedAtStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum type; + + private String connectionId; + + private OffsetDateTime updatedAt; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupDeletedPreviousObject0 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + connectionId(other.getConnectionId()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The connection ID associated with the group.

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

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupDeletedPreviousObject0 build() { + return new EventStreamCloudEventGroupDeletedPreviousObject0( + id, name, externalId, createdAt, type, connectionId, updatedAt, 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/EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum.java new file mode 100644 index 000000000..a77fac181 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum.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 EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum { + public static final EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum CONNECTION = + new EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum(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 EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject1.java new file mode 100644 index 000000000..48536aed6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject1.java @@ -0,0 +1,340 @@ +/** + * 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 = EventStreamCloudEventGroupDeletedPreviousObject1.Builder.class) +public final class EventStreamCloudEventGroupDeletedPreviousObject1 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum type; + + private final String organizationId; + + private final OffsetDateTime updatedAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupDeletedPreviousObject1( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum type, + String organizationId, + OffsetDateTime updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.organizationId = organizationId; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupDeletedPreviousObject1 + && equalTo((EventStreamCloudEventGroupDeletedPreviousObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupDeletedPreviousObject1 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && organizationId.equals(other.organizationId) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.id, this.name, this.externalId, this.createdAt, this.type, this.organizationId, this.updatedAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

+ */ + UpdatedAtStage organizationId(@NotNull String organizationId); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, OrganizationIdStage, UpdatedAtStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum type; + + private String organizationId; + + private OffsetDateTime updatedAt; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupDeletedPreviousObject1 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + organizationId(other.getOrganizationId()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The organization ID associated with the group.

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

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupDeletedPreviousObject1 build() { + return new EventStreamCloudEventGroupDeletedPreviousObject1( + id, name, externalId, createdAt, type, organizationId, updatedAt, 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/EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum.java new file mode 100644 index 000000000..990ef4ff9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum.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 EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum { + public static final EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum ORGANIZATION = + new EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum(Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum(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 EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject2.java new file mode 100644 index 000000000..41d5d1dfe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject2.java @@ -0,0 +1,305 @@ +/** + * 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 = EventStreamCloudEventGroupDeletedPreviousObject2.Builder.class) +public final class EventStreamCloudEventGroupDeletedPreviousObject2 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum type; + + private final OffsetDateTime updatedAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupDeletedPreviousObject2( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum type, + OffsetDateTime updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum getType() { + return type; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupDeletedPreviousObject2 + && equalTo((EventStreamCloudEventGroupDeletedPreviousObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupDeletedPreviousObject2 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name, this.externalId, this.createdAt, this.type, this.updatedAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + UpdatedAtStage type(@NotNull EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum type); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, UpdatedAtStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum type; + + private OffsetDateTime updatedAt; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupDeletedPreviousObject2 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public UpdatedAtStage type(@NotNull EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupDeletedPreviousObject2 build() { + return new EventStreamCloudEventGroupDeletedPreviousObject2( + id, name, externalId, createdAt, type, updatedAt, 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/EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum.java new file mode 100644 index 000000000..409291f59 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum.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 EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum { + public static final EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum TENANT = + new EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum(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 EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedData.java index 30580b809..f60f96b07 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventGroupMemberAddedData { private final EventStreamCloudEventGroupMemberAddedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventGroupMemberAddedData( EventStreamCloudEventGroupMemberAddedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventGroupMemberAddedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventGroupMemberAddedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventGroupMemberAddedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventGroupMemberAddedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,23 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventGroupMemberAddedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventGroupMemberAddedData build() { - return new EventStreamCloudEventGroupMemberAddedData(object, context, additionalProperties); + return new EventStreamCloudEventGroupMemberAddedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObject.java new file mode 100644 index 000000000..978b8a203 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObject.java @@ -0,0 +1,144 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObject.Builder.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObject { + private final EventStreamCloudEventGroupMemberAddedPreviousObjectGroup group; + + private final EventStreamCloudEventGroupMemberAddedPreviousObjectMember member; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberAddedPreviousObject( + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup group, + EventStreamCloudEventGroupMemberAddedPreviousObjectMember member, + Map additionalProperties) { + this.group = group; + this.member = member; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("group") + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup getGroup() { + return group; + } + + @JsonProperty("member") + public EventStreamCloudEventGroupMemberAddedPreviousObjectMember getMember() { + return member; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberAddedPreviousObject + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObject other) { + return group.equals(other.group) && member.equals(other.member); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.group, this.member); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static GroupStage builder() { + return new Builder(); + } + + public interface GroupStage { + MemberStage group(@NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectGroup group); + + Builder from(EventStreamCloudEventGroupMemberAddedPreviousObject other); + } + + public interface MemberStage { + _FinalStage member(@NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectMember member); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberAddedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements GroupStage, MemberStage, _FinalStage { + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup group; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectMember member; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberAddedPreviousObject other) { + group(other.getGroup()); + member(other.getMember()); + return this; + } + + @java.lang.Override + @JsonSetter("group") + public MemberStage group(@NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectGroup group) { + this.group = Objects.requireNonNull(group, "group must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("member") + public _FinalStage member(@NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectMember member) { + this.member = Objects.requireNonNull(member, "member must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObject build() { + return new EventStreamCloudEventGroupMemberAddedPreviousObject(group, member, 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/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup.java new file mode 100644 index 000000000..967a2c97b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObjectGroup.Deserializer.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObjectGroup { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup(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((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2) 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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup) other); + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup 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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup of( + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 value) { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup(value, 0); + } + + public static EventStreamCloudEventGroupMemberAddedPreviousObjectGroup of( + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 value) { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup(value, 1); + } + + public static EventStreamCloudEventGroupMemberAddedPreviousObjectGroup of( + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 value) { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 value); + + T visit(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 value); + + T visit(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0.java new file mode 100644 index 000000000..45c7364a2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0.java @@ -0,0 +1,235 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0.Builder.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0( + String id, + Optional externalId, + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum type, + String connectionId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 other); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum type; + + private String connectionId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The connection ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0 build() { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0( + id, externalId, type, connectionId, 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/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum.java new file mode 100644 index 000000000..0774f3454 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum.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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum { + public static final EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum CONNECTION = + new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum(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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1.java new file mode 100644 index 000000000..d8c569426 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1.Builder.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum type; + + private final String organizationId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1( + String id, + Optional externalId, + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum type, + String organizationId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.organizationId = organizationId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && organizationId.equals(other.organizationId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.organizationId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 other); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, OrganizationIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum type; + + private String organizationId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + organizationId(other.getOrganizationId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The organization ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1 build() { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1( + id, externalId, type, organizationId, 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/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum.java new file mode 100644 index 000000000..aa8c9b614 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum.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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum { + public static final EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum ORGANIZATION = + new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum(Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum(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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2.java new file mode 100644 index 000000000..93ab5a197 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2.java @@ -0,0 +1,199 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2.Builder.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum type; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2( + String id, + Optional externalId, + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum type, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 other) { + return id.equals(other.id) && externalId.equals(other.externalId) && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 other); + } + + public interface TypeStage { + _FinalStage type(@NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum type); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum type; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + return this; + } + + /** + *

The unique identifier for the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2 build() { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2( + id, externalId, 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/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum.java new file mode 100644 index 000000000..b04a340c5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum.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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum { + public static final EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum TENANT = + new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum(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 EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember.java new file mode 100644 index 000000000..3689342b2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember.java @@ -0,0 +1,112 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObjectMember.Deserializer.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObjectMember { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectMember(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((EventStreamCloudEventGroupMemberAddedPreviousObjectMember0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupMemberAddedPreviousObjectMember1) 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 EventStreamCloudEventGroupMemberAddedPreviousObjectMember + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObjectMember) other); + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObjectMember 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 EventStreamCloudEventGroupMemberAddedPreviousObjectMember of( + EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 value) { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectMember(value, 0); + } + + public static EventStreamCloudEventGroupMemberAddedPreviousObjectMember of( + EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 value) { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectMember(value, 1); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 value); + + T visit(EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupMemberAddedPreviousObjectMember.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObjectMember deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("member_type") + && ((Map) value).containsKey("id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberAddedPreviousObjectMember0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("member_type") + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberAddedPreviousObjectMember1.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember0.java new file mode 100644 index 000000000..5e6d0c6a5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember0.java @@ -0,0 +1,156 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObjectMember0.Builder.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 { + private final EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum memberType; + + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectMember0( + EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum memberType, + String id, + Map additionalProperties) { + this.memberType = memberType; + this.id = id; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("member_type") + public EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum getMemberType() { + return memberType; + } + + /** + * @return The user's unique identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObjectMember0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 other) { + return memberType.equals(other.memberType) && id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.memberType, this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MemberTypeStage builder() { + return new Builder(); + } + + public interface MemberTypeStage { + IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum memberType); + + Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 other); + } + + public interface IdStage { + /** + *

The user's unique identifier

+ */ + _FinalStage id(@NotNull String id); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MemberTypeStage, IdStage, _FinalStage { + private EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum memberType; + + private String id; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 other) { + memberType(other.getMemberType()); + id(other.getId()); + return this; + } + + @java.lang.Override + @JsonSetter("member_type") + public IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum memberType) { + this.memberType = Objects.requireNonNull(memberType, "memberType must not be null"); + return this; + } + + /** + *

The user's unique identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObjectMember0 build() { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectMember0(memberType, id, 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/EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum.java new file mode 100644 index 000000000..52bbd0a06 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum { + public static final EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum USER = + new EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum(Value.USER, "user"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum(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 EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USER: + return visitor.visitUser(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum valueOf(String value) { + switch (value) { + case "user": + return USER; + default: + return new EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + USER, + + UNKNOWN + } + + public interface Visitor { + T visitUser(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember1.java new file mode 100644 index 000000000..0ffd634fe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember1.java @@ -0,0 +1,226 @@ +/** + * 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 = EventStreamCloudEventGroupMemberAddedPreviousObjectMember1.Builder.class) +public final class EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 { + private final EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum memberType; + + private final String id; + + private final String type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberAddedPreviousObjectMember1( + EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum memberType, + String id, + String type, + String connectionId, + Map additionalProperties) { + this.memberType = memberType; + this.id = id; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("member_type") + public EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum getMemberType() { + return memberType; + } + + /** + * @return The connection member's unique identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The type of the connection + */ + @JsonProperty("type") + public String getType() { + return type; + } + + /** + * @return Connection ID associated with the member + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 + && equalTo((EventStreamCloudEventGroupMemberAddedPreviousObjectMember1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 other) { + return memberType.equals(other.memberType) + && id.equals(other.id) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.memberType, this.id, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MemberTypeStage builder() { + return new Builder(); + } + + public interface MemberTypeStage { + IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum memberType); + + Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 other); + } + + public interface IdStage { + /** + *

The connection member's unique identifier

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

The type of the connection

+ */ + ConnectionIdStage type(@NotNull String type); + } + + public interface ConnectionIdStage { + /** + *

Connection ID associated with the member

+ */ + _FinalStage connectionId(@NotNull String connectionId); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MemberTypeStage, IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum memberType; + + private String id; + + private String type; + + private String connectionId; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 other) { + memberType(other.getMemberType()); + id(other.getId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + @java.lang.Override + @JsonSetter("member_type") + public IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum memberType) { + this.memberType = Objects.requireNonNull(memberType, "memberType must not be null"); + return this; + } + + /** + *

The connection member's unique identifier

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

The type of the connection

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

Connection ID associated with the member

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection_id") + public _FinalStage connectionId(@NotNull String connectionId) { + this.connectionId = Objects.requireNonNull(connectionId, "connectionId must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberAddedPreviousObjectMember1 build() { + return new EventStreamCloudEventGroupMemberAddedPreviousObjectMember1( + memberType, id, type, connectionId, 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/EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum.java new file mode 100644 index 000000000..b3df5b01d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum.java @@ -0,0 +1,79 @@ +/** + * 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 EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum { + public static final EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum CONNECTION = + new EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum( + Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum(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 EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedData.java index 98e743bb4..78da18ba2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventGroupMemberDeletedData { private final EventStreamCloudEventGroupMemberDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventGroupMemberDeletedData( EventStreamCloudEventGroupMemberDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventGroupMemberDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventGroupMemberDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventGroupMemberDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventGroupMemberDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventGroupMemberDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventGroupMemberDeletedData build() { - return new EventStreamCloudEventGroupMemberDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventGroupMemberDeletedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObject.java new file mode 100644 index 000000000..4ab7c0b86 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObject.java @@ -0,0 +1,144 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObject.Builder.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObject { + private final EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup group; + + private final EventStreamCloudEventGroupMemberDeletedPreviousObjectMember member; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberDeletedPreviousObject( + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup group, + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember member, + Map additionalProperties) { + this.group = group; + this.member = member; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("group") + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup getGroup() { + return group; + } + + @JsonProperty("member") + public EventStreamCloudEventGroupMemberDeletedPreviousObjectMember getMember() { + return member; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberDeletedPreviousObject + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObject other) { + return group.equals(other.group) && member.equals(other.member); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.group, this.member); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static GroupStage builder() { + return new Builder(); + } + + public interface GroupStage { + MemberStage group(@NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup group); + + Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObject other); + } + + public interface MemberStage { + _FinalStage member(@NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectMember member); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberDeletedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements GroupStage, MemberStage, _FinalStage { + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup group; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectMember member; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObject other) { + group(other.getGroup()); + member(other.getMember()); + return this; + } + + @java.lang.Override + @JsonSetter("group") + public MemberStage group(@NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup group) { + this.group = Objects.requireNonNull(group, "group must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("member") + public _FinalStage member(@NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectMember member) { + this.member = Objects.requireNonNull(member, "member must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObject build() { + return new EventStreamCloudEventGroupMemberDeletedPreviousObject(group, member, 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/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup.java new file mode 100644 index 000000000..45b63e670 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup.java @@ -0,0 +1,131 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup.Deserializer.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup(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((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2) 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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup) other); + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup 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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup of( + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 value) { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup(value, 0); + } + + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup of( + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 value) { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup(value, 1); + } + + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup of( + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 value) { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 value); + + T visit(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 value); + + T visit(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0.java new file mode 100644 index 000000000..621b7535b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0.Builder.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0( + String id, + Optional externalId, + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum type, + String connectionId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 other); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum type; + + private String connectionId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The connection ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0 build() { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0( + id, externalId, type, connectionId, 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/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum.java new file mode 100644 index 000000000..77b7efb6b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum.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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum { + public static final EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum CONNECTION = + new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum(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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1.java new file mode 100644 index 000000000..577035c7c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1.Builder.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum type; + + private final String organizationId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1( + String id, + Optional externalId, + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum type, + String organizationId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.organizationId = organizationId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && organizationId.equals(other.organizationId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.organizationId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 other); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, OrganizationIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum type; + + private String organizationId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + organizationId(other.getOrganizationId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The organization ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1 build() { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1( + id, externalId, type, organizationId, 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/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum.java new file mode 100644 index 000000000..7a3356997 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum.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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum { + public static final EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum ORGANIZATION = + new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum(Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum(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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2.java new file mode 100644 index 000000000..b40c5a4a0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2.java @@ -0,0 +1,199 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2.Builder.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum type; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2( + String id, + Optional externalId, + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum type, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 other) { + return id.equals(other.id) && externalId.equals(other.externalId) && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 other); + } + + public interface TypeStage { + _FinalStage type(@NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum type); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum type; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + return this; + } + + /** + *

The unique identifier for the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2 build() { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2( + id, externalId, 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/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum.java new file mode 100644 index 000000000..ccd0e84bf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum.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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum { + public static final EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum TENANT = + new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum(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 EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember.java new file mode 100644 index 000000000..0242313ad --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember.java @@ -0,0 +1,113 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObjectMember.Deserializer.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObjectMember { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectMember(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((EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1) 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 EventStreamCloudEventGroupMemberDeletedPreviousObjectMember + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObjectMember) other); + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember 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 EventStreamCloudEventGroupMemberDeletedPreviousObjectMember of( + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 value) { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember(value, 0); + } + + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectMember of( + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 value) { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember(value, 1); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 value); + + T visit(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObjectMember deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("member_type") + && ((Map) value).containsKey("id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("member_type") + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0.java new file mode 100644 index 000000000..fa0dabf4b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0.java @@ -0,0 +1,157 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0.Builder.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 { + private final EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum memberType; + + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0( + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum memberType, + String id, + Map additionalProperties) { + this.memberType = memberType; + this.id = id; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("member_type") + public EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum getMemberType() { + return memberType; + } + + /** + * @return The user's unique identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 other) { + return memberType.equals(other.memberType) && id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.memberType, this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MemberTypeStage builder() { + return new Builder(); + } + + public interface MemberTypeStage { + IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum memberType); + + Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 other); + } + + public interface IdStage { + /** + *

The user's unique identifier

+ */ + _FinalStage id(@NotNull String id); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MemberTypeStage, IdStage, _FinalStage { + private EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum memberType; + + private String id; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 other) { + memberType(other.getMemberType()); + id(other.getId()); + return this; + } + + @java.lang.Override + @JsonSetter("member_type") + public IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum memberType) { + this.memberType = Objects.requireNonNull(memberType, "memberType must not be null"); + return this; + } + + /** + *

The user's unique identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0 build() { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0( + memberType, id, 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/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum.java new file mode 100644 index 000000000..b66490075 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum { + public static final EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum USER = + new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum(Value.USER, "user"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum(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 EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USER: + return visitor.visitUser(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum valueOf(String value) { + switch (value) { + case "user": + return USER; + default: + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + USER, + + UNKNOWN + } + + public interface Visitor { + T visitUser(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1.java new file mode 100644 index 000000000..035ad8400 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1.java @@ -0,0 +1,226 @@ +/** + * 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 = EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1.Builder.class) +public final class EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 { + private final EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum memberType; + + private final String id; + + private final String type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1( + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum memberType, + String id, + String type, + String connectionId, + Map additionalProperties) { + this.memberType = memberType; + this.id = id; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("member_type") + public EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum getMemberType() { + return memberType; + } + + /** + * @return The connection member's unique identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The type of the connection + */ + @JsonProperty("type") + public String getType() { + return type; + } + + /** + * @return Connection ID associated with the member + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 + && equalTo((EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 other) { + return memberType.equals(other.memberType) + && id.equals(other.id) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.memberType, this.id, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MemberTypeStage builder() { + return new Builder(); + } + + public interface MemberTypeStage { + IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum memberType); + + Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 other); + } + + public interface IdStage { + /** + *

The connection member's unique identifier

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

The type of the connection

+ */ + ConnectionIdStage type(@NotNull String type); + } + + public interface ConnectionIdStage { + /** + *

Connection ID associated with the member

+ */ + _FinalStage connectionId(@NotNull String connectionId); + } + + public interface _FinalStage { + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MemberTypeStage, IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum memberType; + + private String id; + + private String type; + + private String connectionId; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 other) { + memberType(other.getMemberType()); + id(other.getId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + @java.lang.Override + @JsonSetter("member_type") + public IdStage memberType( + @NotNull EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum memberType) { + this.memberType = Objects.requireNonNull(memberType, "memberType must not be null"); + return this; + } + + /** + *

The connection member's unique identifier

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

The type of the connection

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

Connection ID associated with the member

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection_id") + public _FinalStage connectionId(@NotNull String connectionId) { + this.connectionId = Objects.requireNonNull(connectionId, "connectionId must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1 build() { + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1( + memberType, id, type, connectionId, 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/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum.java new file mode 100644 index 000000000..97eb8cb28 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum.java @@ -0,0 +1,79 @@ +/** + * 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 EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum { + public static final EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum CONNECTION = + new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum( + Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum(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 EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedData.java index f5996e558..04586653f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventGroupRoleAssignedData { private final EventStreamCloudEventGroupRoleAssignedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventGroupRoleAssignedData( EventStreamCloudEventGroupRoleAssignedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventGroupRoleAssignedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventGroupRoleAssignedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventGroupRoleAssignedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventGroupRoleAssignedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventGroupRoleAssignedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventGroupRoleAssignedData build() { - return new EventStreamCloudEventGroupRoleAssignedData(object, context, additionalProperties); + return new EventStreamCloudEventGroupRoleAssignedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObject.java new file mode 100644 index 000000000..ba747dfe9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObject.java @@ -0,0 +1,179 @@ +/** + * 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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventGroupRoleAssignedPreviousObject.Builder.class) +public final class EventStreamCloudEventGroupRoleAssignedPreviousObject { + private final EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup group; + + private final EventStreamCloudEventGroupRoleAssignedPreviousObjectRole role; + + private final OffsetDateTime createdAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleAssignedPreviousObject( + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup group, + EventStreamCloudEventGroupRoleAssignedPreviousObjectRole role, + OffsetDateTime createdAt, + Map additionalProperties) { + this.group = group; + this.role = role; + this.createdAt = createdAt; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("group") + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup getGroup() { + return group; + } + + @JsonProperty("role") + public EventStreamCloudEventGroupRoleAssignedPreviousObjectRole getRole() { + return role; + } + + /** + * @return The time at which the role was assigned to the group. + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleAssignedPreviousObject + && equalTo((EventStreamCloudEventGroupRoleAssignedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleAssignedPreviousObject other) { + return group.equals(other.group) && role.equals(other.role) && createdAt.equals(other.createdAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.group, this.role, this.createdAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static GroupStage builder() { + return new Builder(); + } + + public interface GroupStage { + RoleStage group(@NotNull EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup group); + + Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObject other); + } + + public interface RoleStage { + CreatedAtStage role(@NotNull EventStreamCloudEventGroupRoleAssignedPreviousObjectRole role); + } + + public interface CreatedAtStage { + /** + *

The time at which the role was assigned to the group.

+ */ + _FinalStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface _FinalStage { + EventStreamCloudEventGroupRoleAssignedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements GroupStage, RoleStage, CreatedAtStage, _FinalStage { + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup group; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectRole role; + + private OffsetDateTime createdAt; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObject other) { + group(other.getGroup()); + role(other.getRole()); + createdAt(other.getCreatedAt()); + return this; + } + + @java.lang.Override + @JsonSetter("group") + public RoleStage group(@NotNull EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup group) { + this.group = Objects.requireNonNull(group, "group must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("role") + public CreatedAtStage role(@NotNull EventStreamCloudEventGroupRoleAssignedPreviousObjectRole role) { + this.role = Objects.requireNonNull(role, "role must not be null"); + return this; + } + + /** + *

The time at which the role was assigned to the group.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public _FinalStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleAssignedPreviousObject build() { + return new EventStreamCloudEventGroupRoleAssignedPreviousObject( + group, role, createdAt, 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/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup.java new file mode 100644 index 000000000..fa5c65ffc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup.Deserializer.class) +public final class EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup(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((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2) 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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup + && equalTo((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup) other); + } + + private boolean equalTo(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup 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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup of( + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 value) { + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup(value, 0); + } + + public static EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup of( + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 value) { + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup(value, 1); + } + + public static EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup of( + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 value) { + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 value); + + T visit(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 value); + + T visit(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0.java new file mode 100644 index 000000000..000e7e020 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0.Builder.class) +public final class EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0( + String id, + Optional externalId, + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum type, + String connectionId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 + && equalTo((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 other); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum type; + + private String connectionId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The connection ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0 build() { + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0( + id, externalId, type, connectionId, 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/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum.java new file mode 100644 index 000000000..7031474db --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum.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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum { + public static final EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum CONNECTION = + new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum(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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1.java new file mode 100644 index 000000000..24626d255 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1.Builder.class) +public final class EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum type; + + private final String organizationId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1( + String id, + Optional externalId, + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum type, + String organizationId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.organizationId = organizationId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 + && equalTo((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && organizationId.equals(other.organizationId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.organizationId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 other); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, OrganizationIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum type; + + private String organizationId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + organizationId(other.getOrganizationId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The organization ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1 build() { + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1( + id, externalId, type, organizationId, 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/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum.java new file mode 100644 index 000000000..440274589 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum.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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum { + public static final EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum ORGANIZATION = + new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum(Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum(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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2.java new file mode 100644 index 000000000..a5d7733e2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2.java @@ -0,0 +1,199 @@ +/** + * 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 = EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2.Builder.class) +public final class EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum type; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2( + String id, + Optional externalId, + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum type, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 + && equalTo((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 other) { + return id.equals(other.id) && externalId.equals(other.externalId) && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 other); + } + + public interface TypeStage { + _FinalStage type(@NotNull EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum type); + } + + public interface _FinalStage { + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum type; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + return this; + } + + /** + *

The unique identifier for the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2 build() { + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2( + id, externalId, 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/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum.java new file mode 100644 index 000000000..011079f19 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum.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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum { + public static final EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum TENANT = + new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum(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 EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectRole.java new file mode 100644 index 000000000..2fd068b33 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedPreviousObjectRole.java @@ -0,0 +1,162 @@ +/** + * 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 = EventStreamCloudEventGroupRoleAssignedPreviousObjectRole.Builder.class) +public final class EventStreamCloudEventGroupRoleAssignedPreviousObjectRole { + private final String id; + + private final String name; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleAssignedPreviousObjectRole( + String id, String name, Map additionalProperties) { + this.id = id; + this.name = name; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the role. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the role. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleAssignedPreviousObjectRole + && equalTo((EventStreamCloudEventGroupRoleAssignedPreviousObjectRole) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleAssignedPreviousObjectRole other) { + return id.equals(other.id) && name.equals(other.name); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the role.

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

The name of the role.

+ */ + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + EventStreamCloudEventGroupRoleAssignedPreviousObjectRole build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, _FinalStage { + private String id; + + private String name; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleAssignedPreviousObjectRole other) { + id(other.getId()); + name(other.getName()); + return this; + } + + /** + *

The ID of the role.

+ * @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 role.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleAssignedPreviousObjectRole build() { + return new EventStreamCloudEventGroupRoleAssignedPreviousObjectRole(id, name, 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/EventStreamCloudEventGroupRoleDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedData.java index 71069b3a3..3001d8411 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventGroupRoleDeletedData { private final EventStreamCloudEventGroupRoleDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventGroupRoleDeletedData( EventStreamCloudEventGroupRoleDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventGroupRoleDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventGroupRoleDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventGroupRoleDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventGroupRoleDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,23 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventGroupRoleDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventGroupRoleDeletedData build() { - return new EventStreamCloudEventGroupRoleDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventGroupRoleDeletedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObject.java new file mode 100644 index 000000000..3eeffb250 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObject.java @@ -0,0 +1,179 @@ +/** + * 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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventGroupRoleDeletedPreviousObject.Builder.class) +public final class EventStreamCloudEventGroupRoleDeletedPreviousObject { + private final EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup group; + + private final EventStreamCloudEventGroupRoleDeletedPreviousObjectRole role; + + private final OffsetDateTime createdAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleDeletedPreviousObject( + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup group, + EventStreamCloudEventGroupRoleDeletedPreviousObjectRole role, + OffsetDateTime createdAt, + Map additionalProperties) { + this.group = group; + this.role = role; + this.createdAt = createdAt; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("group") + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup getGroup() { + return group; + } + + @JsonProperty("role") + public EventStreamCloudEventGroupRoleDeletedPreviousObjectRole getRole() { + return role; + } + + /** + * @return The time at which the role was assigned to the group. + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleDeletedPreviousObject + && equalTo((EventStreamCloudEventGroupRoleDeletedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleDeletedPreviousObject other) { + return group.equals(other.group) && role.equals(other.role) && createdAt.equals(other.createdAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.group, this.role, this.createdAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static GroupStage builder() { + return new Builder(); + } + + public interface GroupStage { + RoleStage group(@NotNull EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup group); + + Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObject other); + } + + public interface RoleStage { + CreatedAtStage role(@NotNull EventStreamCloudEventGroupRoleDeletedPreviousObjectRole role); + } + + public interface CreatedAtStage { + /** + *

The time at which the role was assigned to the group.

+ */ + _FinalStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface _FinalStage { + EventStreamCloudEventGroupRoleDeletedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements GroupStage, RoleStage, CreatedAtStage, _FinalStage { + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup group; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectRole role; + + private OffsetDateTime createdAt; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObject other) { + group(other.getGroup()); + role(other.getRole()); + createdAt(other.getCreatedAt()); + return this; + } + + @java.lang.Override + @JsonSetter("group") + public RoleStage group(@NotNull EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup group) { + this.group = Objects.requireNonNull(group, "group must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("role") + public CreatedAtStage role(@NotNull EventStreamCloudEventGroupRoleDeletedPreviousObjectRole role) { + this.role = Objects.requireNonNull(role, "role must not be null"); + return this; + } + + /** + *

The time at which the role was assigned to the group.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public _FinalStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleDeletedPreviousObject build() { + return new EventStreamCloudEventGroupRoleDeletedPreviousObject( + group, role, createdAt, 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/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup.java new file mode 100644 index 000000000..a70ff4a9f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup.Deserializer.class) +public final class EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup(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((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2) 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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup + && equalTo((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup) other); + } + + private boolean equalTo(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup 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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup of( + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 value) { + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup(value, 0); + } + + public static EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup of( + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 value) { + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup(value, 1); + } + + public static EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup of( + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 value) { + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 value); + + T visit(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 value); + + T visit(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0.java new file mode 100644 index 000000000..5fd55ac43 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0.java @@ -0,0 +1,235 @@ +/** + * 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 = EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0.Builder.class) +public final class EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0( + String id, + Optional externalId, + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum type, + String connectionId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 + && equalTo((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 other); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum type; + + private String connectionId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The connection ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0 build() { + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0( + id, externalId, type, connectionId, 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/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum.java new file mode 100644 index 000000000..e1a8bc1b6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum.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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum { + public static final EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum CONNECTION = + new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum(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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1.java new file mode 100644 index 000000000..7fc33709d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1.Builder.class) +public final class EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum type; + + private final String organizationId; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1( + String id, + Optional externalId, + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum type, + String organizationId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.organizationId = organizationId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 + && equalTo((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && organizationId.equals(other.organizationId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.organizationId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 other); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, OrganizationIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum type; + + private String organizationId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + organizationId(other.getOrganizationId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The organization ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1 build() { + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1( + id, externalId, type, organizationId, 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/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum.java new file mode 100644 index 000000000..f33f26e65 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum.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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum { + public static final EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum ORGANIZATION = + new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum(Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum(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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2.java new file mode 100644 index 000000000..9eed73ce4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2.java @@ -0,0 +1,199 @@ +/** + * 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 = EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2.Builder.class) +public final class EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum type; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2( + String id, + Optional externalId, + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum type, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 + && equalTo((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 other) { + return id.equals(other.id) && externalId.equals(other.externalId) && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 other); + } + + public interface TypeStage { + _FinalStage type(@NotNull EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum type); + } + + public interface _FinalStage { + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, _FinalStage { + private String id; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum type; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + return this; + } + + /** + *

The unique identifier for the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2 build() { + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2( + id, externalId, 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/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum.java new file mode 100644 index 000000000..50579796b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum.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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum { + public static final EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum TENANT = + new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum(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 EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectRole.java new file mode 100644 index 000000000..56a4f417f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedPreviousObjectRole.java @@ -0,0 +1,162 @@ +/** + * 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 = EventStreamCloudEventGroupRoleDeletedPreviousObjectRole.Builder.class) +public final class EventStreamCloudEventGroupRoleDeletedPreviousObjectRole { + private final String id; + + private final String name; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupRoleDeletedPreviousObjectRole( + String id, String name, Map additionalProperties) { + this.id = id; + this.name = name; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the role. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the role. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupRoleDeletedPreviousObjectRole + && equalTo((EventStreamCloudEventGroupRoleDeletedPreviousObjectRole) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupRoleDeletedPreviousObjectRole other) { + return id.equals(other.id) && name.equals(other.name); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the role.

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

The name of the role.

+ */ + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + EventStreamCloudEventGroupRoleDeletedPreviousObjectRole build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, _FinalStage { + private String id; + + private String name; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupRoleDeletedPreviousObjectRole other) { + id(other.getId()); + name(other.getName()); + return this; + } + + /** + *

The ID of the role.

+ * @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 role.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupRoleDeletedPreviousObjectRole build() { + return new EventStreamCloudEventGroupRoleDeletedPreviousObjectRole(id, name, 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/EventStreamCloudEventGroupUpdatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedData.java index 5dd71c0a1..b271a9ed6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventGroupUpdatedData { private final EventStreamCloudEventGroupUpdatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventGroupUpdatedData( EventStreamCloudEventGroupUpdatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventGroupUpdatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventGroupUpdatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventGroupUpdatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventGroupUpdatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventGroupUpdatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventGroupUpdatedData build() { - return new EventStreamCloudEventGroupUpdatedData(object, context, additionalProperties); + return new EventStreamCloudEventGroupUpdatedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject.java new file mode 100644 index 000000000..0f859f469 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject.java @@ -0,0 +1,139 @@ +/** + * 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 = EventStreamCloudEventGroupUpdatedPreviousObject.Deserializer.class) +public final class EventStreamCloudEventGroupUpdatedPreviousObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventGroupUpdatedPreviousObject(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((EventStreamCloudEventGroupUpdatedPreviousObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventGroupUpdatedPreviousObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventGroupUpdatedPreviousObject2) 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 EventStreamCloudEventGroupUpdatedPreviousObject + && equalTo((EventStreamCloudEventGroupUpdatedPreviousObject) other); + } + + private boolean equalTo(EventStreamCloudEventGroupUpdatedPreviousObject 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 EventStreamCloudEventGroupUpdatedPreviousObject of( + EventStreamCloudEventGroupUpdatedPreviousObject0 value) { + return new EventStreamCloudEventGroupUpdatedPreviousObject(value, 0); + } + + public static EventStreamCloudEventGroupUpdatedPreviousObject of( + EventStreamCloudEventGroupUpdatedPreviousObject1 value) { + return new EventStreamCloudEventGroupUpdatedPreviousObject(value, 1); + } + + public static EventStreamCloudEventGroupUpdatedPreviousObject of( + EventStreamCloudEventGroupUpdatedPreviousObject2 value) { + return new EventStreamCloudEventGroupUpdatedPreviousObject(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventGroupUpdatedPreviousObject0 value); + + T visit(EventStreamCloudEventGroupUpdatedPreviousObject1 value); + + T visit(EventStreamCloudEventGroupUpdatedPreviousObject2 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventGroupUpdatedPreviousObject.class); + } + + @java.lang.Override + public EventStreamCloudEventGroupUpdatedPreviousObject 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("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id") + && ((Map) value).containsKey("updated_at")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupUpdatedPreviousObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id") + && ((Map) value).containsKey("updated_at")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupUpdatedPreviousObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("created_at") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("updated_at")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventGroupUpdatedPreviousObject2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject0.java new file mode 100644 index 000000000..0070574aa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject0.java @@ -0,0 +1,340 @@ +/** + * 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 = EventStreamCloudEventGroupUpdatedPreviousObject0.Builder.class) +public final class EventStreamCloudEventGroupUpdatedPreviousObject0 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum type; + + private final String connectionId; + + private final OffsetDateTime updatedAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupUpdatedPreviousObject0( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum type, + String connectionId, + OffsetDateTime updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.connectionId = connectionId; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupUpdatedPreviousObject0 + && equalTo((EventStreamCloudEventGroupUpdatedPreviousObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupUpdatedPreviousObject0 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && connectionId.equals(other.connectionId) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.id, this.name, this.externalId, this.createdAt, this.type, this.connectionId, this.updatedAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

+ */ + UpdatedAtStage connectionId(@NotNull String connectionId); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, ConnectionIdStage, UpdatedAtStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum type; + + private String connectionId; + + private OffsetDateTime updatedAt; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupUpdatedPreviousObject0 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + connectionId(other.getConnectionId()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The connection ID associated with the group.

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

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupUpdatedPreviousObject0 build() { + return new EventStreamCloudEventGroupUpdatedPreviousObject0( + id, name, externalId, createdAt, type, connectionId, updatedAt, 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/EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum.java new file mode 100644 index 000000000..b33038597 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum.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 EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum { + public static final EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum CONNECTION = + new EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum(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 EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject1.java new file mode 100644 index 000000000..67f303768 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject1.java @@ -0,0 +1,340 @@ +/** + * 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 = EventStreamCloudEventGroupUpdatedPreviousObject1.Builder.class) +public final class EventStreamCloudEventGroupUpdatedPreviousObject1 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum type; + + private final String organizationId; + + private final OffsetDateTime updatedAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupUpdatedPreviousObject1( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum type, + String organizationId, + OffsetDateTime updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.organizationId = organizationId; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupUpdatedPreviousObject1 + && equalTo((EventStreamCloudEventGroupUpdatedPreviousObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupUpdatedPreviousObject1 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && organizationId.equals(other.organizationId) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.id, this.name, this.externalId, this.createdAt, this.type, this.organizationId, this.updatedAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

+ */ + UpdatedAtStage organizationId(@NotNull String organizationId); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, OrganizationIdStage, UpdatedAtStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum type; + + private String organizationId; + + private OffsetDateTime updatedAt; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupUpdatedPreviousObject1 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + organizationId(other.getOrganizationId()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The organization ID associated with the group.

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

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupUpdatedPreviousObject1 build() { + return new EventStreamCloudEventGroupUpdatedPreviousObject1( + id, name, externalId, createdAt, type, organizationId, updatedAt, 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/EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum.java new file mode 100644 index 000000000..09079ac25 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum.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 EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum { + public static final EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum ORGANIZATION = + new EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum(Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum(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 EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject2.java new file mode 100644 index 000000000..62119c5c7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject2.java @@ -0,0 +1,305 @@ +/** + * 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 = EventStreamCloudEventGroupUpdatedPreviousObject2.Builder.class) +public final class EventStreamCloudEventGroupUpdatedPreviousObject2 { + private final String id; + + private final String name; + + private final Optional externalId; + + private final OffsetDateTime createdAt; + + private final EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum type; + + private final OffsetDateTime updatedAt; + + private final Map additionalProperties; + + private EventStreamCloudEventGroupUpdatedPreviousObject2( + String id, + String name, + Optional externalId, + OffsetDateTime createdAt, + EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum type, + OffsetDateTime updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.createdAt = createdAt; + this.type = type; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the group. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @JsonProperty("type") + public EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum getType() { + return type; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventGroupUpdatedPreviousObject2 + && equalTo((EventStreamCloudEventGroupUpdatedPreviousObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventGroupUpdatedPreviousObject2 other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && createdAt.equals(other.createdAt) + && type.equals(other.type) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name, this.externalId, this.createdAt, this.type, this.updatedAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

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

The name of the group.

+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + TypeStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface TypeStage { + UpdatedAtStage type(@NotNull EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum type); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, CreatedAtStage, TypeStage, UpdatedAtStage, _FinalStage { + private String id; + + private String name; + + private OffsetDateTime createdAt; + + private EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum type; + + private OffsetDateTime updatedAt; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventGroupUpdatedPreviousObject2 other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + createdAt(other.getCreatedAt()); + type(other.getType()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

The unique identifier for the group.

+ * @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 group.

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

Date and time when this entity was created (ISO_8601 format).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public TypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public UpdatedAtStage type(@NotNull EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventGroupUpdatedPreviousObject2 build() { + return new EventStreamCloudEventGroupUpdatedPreviousObject2( + id, name, externalId, createdAt, type, updatedAt, 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/EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum.java new file mode 100644 index 000000000..490bde6f7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum.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 EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum { + public static final EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum TENANT = + new EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum(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 EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum + && this.string.equals( + ((EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedData.java index 3f2f44c93..965821bc7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgConnectionAddedData { private final EventStreamCloudEventOrgConnectionAddedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgConnectionAddedData( EventStreamCloudEventOrgConnectionAddedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgConnectionAddedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgConnectionAddedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgConnectionAddedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgConnectionAddedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgConnectionAddedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgConnectionAddedData build() { - return new EventStreamCloudEventOrgConnectionAddedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgConnectionAddedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObject.java index 385a467e3..f8343cc4e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObject.java @@ -31,6 +31,11 @@ public final class EventStreamCloudEventOrgConnectionAddedObject { private final Optional isSignupEnabled; + private final Optional isEnabled; + + private final Optional + organizationAccessLevel; + private final Map additionalProperties; private EventStreamCloudEventOrgConnectionAddedObject( @@ -39,12 +44,16 @@ private EventStreamCloudEventOrgConnectionAddedObject( Optional assignMembershipOnLogin, Optional showAsButton, Optional isSignupEnabled, + Optional isEnabled, + Optional organizationAccessLevel, Map additionalProperties) { this.organization = organization; this.connection = connection; this.assignMembershipOnLogin = assignMembershipOnLogin; this.showAsButton = showAsButton; this.isSignupEnabled = isSignupEnabled; + this.isEnabled = isEnabled; + this.organizationAccessLevel = organizationAccessLevel; this.additionalProperties = additionalProperties; } @@ -86,6 +95,19 @@ public Optional getIsSignupEnabled() { return isSignupEnabled; } + /** + * @return Determines whether the connection is enabled for the organization. + */ + @JsonProperty("is_enabled") + public Optional getIsEnabled() { + return isEnabled; + } + + @JsonProperty("organization_access_level") + public Optional getOrganizationAccessLevel() { + return organizationAccessLevel; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -103,7 +125,9 @@ private boolean equalTo(EventStreamCloudEventOrgConnectionAddedObject other) { && connection.equals(other.connection) && assignMembershipOnLogin.equals(other.assignMembershipOnLogin) && showAsButton.equals(other.showAsButton) - && isSignupEnabled.equals(other.isSignupEnabled); + && isSignupEnabled.equals(other.isSignupEnabled) + && isEnabled.equals(other.isEnabled) + && organizationAccessLevel.equals(other.organizationAccessLevel); } @java.lang.Override @@ -113,7 +137,9 @@ public int hashCode() { this.connection, this.assignMembershipOnLogin, this.showAsButton, - this.isSignupEnabled); + this.isSignupEnabled, + this.isEnabled, + this.organizationAccessLevel); } @java.lang.Override @@ -166,6 +192,19 @@ public interface _FinalStage { _FinalStage isSignupEnabled(Optional isSignupEnabled); _FinalStage isSignupEnabled(Boolean isSignupEnabled); + + /** + *

Determines whether the connection is enabled for the organization.

+ */ + _FinalStage isEnabled(Optional isEnabled); + + _FinalStage isEnabled(Boolean isEnabled); + + _FinalStage organizationAccessLevel( + Optional organizationAccessLevel); + + _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel organizationAccessLevel); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -174,6 +213,11 @@ public static final class Builder implements OrganizationStage, ConnectionStage, private EventStreamCloudEventOrgConnectionAddedObjectConnection connection; + private Optional organizationAccessLevel = + Optional.empty(); + + private Optional isEnabled = Optional.empty(); + private Optional isSignupEnabled = Optional.empty(); private Optional showAsButton = Optional.empty(); @@ -192,6 +236,8 @@ public Builder from(EventStreamCloudEventOrgConnectionAddedObject other) { assignMembershipOnLogin(other.getAssignMembershipOnLogin()); showAsButton(other.getShowAsButton()); isSignupEnabled(other.getIsSignupEnabled()); + isEnabled(other.getIsEnabled()); + organizationAccessLevel(other.getOrganizationAccessLevel()); return this; } @@ -210,6 +256,42 @@ public _FinalStage connection(@NotNull EventStreamCloudEventOrgConnectionAddedOb return this; } + @java.lang.Override + public _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel organizationAccessLevel) { + this.organizationAccessLevel = Optional.ofNullable(organizationAccessLevel); + return this; + } + + @java.lang.Override + @JsonSetter(value = "organization_access_level", nulls = Nulls.SKIP) + public _FinalStage organizationAccessLevel( + Optional + organizationAccessLevel) { + this.organizationAccessLevel = organizationAccessLevel; + return this; + } + + /** + *

Determines whether the connection is enabled for the organization.

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

Determines whether the connection is enabled for the organization.

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

Determines whether organization signup should be enabled for this organization connection. * Only applicable for database connections.

@@ -286,6 +368,8 @@ public EventStreamCloudEventOrgConnectionAddedObject build() { assignMembershipOnLogin, showAsButton, isSignupEnabled, + isEnabled, + organizationAccessLevel, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel.java new file mode 100644 index 000000000..f0f6f9fe3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel.java @@ -0,0 +1,134 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel.Deserializer.class) +public final class EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel { + private final Object value; + + private final int type; + + private EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel(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( + (EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum) this.value); + } else if (this.type == 1) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum) this.value); + } else if (this.type == 2) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum) this.value); + } else if (this.type == 3) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum) 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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel + && equalTo((EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel) other); + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel 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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum value) { + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel(value, 0); + } + + public static EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum value) { + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel(value, 1); + } + + public static EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum value) { + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel(value, 2); + } + + public static EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum value) { + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel(value, 3); + } + + public interface Visitor { + T visit(EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum value); + + T visit(EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum value); + + T visit(EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum value); + + T visit(EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel.class); + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum.java new file mode 100644 index 000000000..366cfca8a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum { + public static final EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum NONE = + new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum(Value.NONE, "none"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum(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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NONE: + return visitor.visitNone(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum valueOf(String value) { + switch (value) { + case "none": + return NONE; + default: + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NONE, + + UNKNOWN + } + + public interface Visitor { + T visitNone(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum.java new file mode 100644 index 000000000..904a1f27d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum { + public static final EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum READONLY = + new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum(Value.READONLY, "readonly"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum(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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case READONLY: + return visitor.visitReadonly(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum valueOf(String value) { + switch (value) { + case "readonly": + return READONLY; + default: + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + READONLY, + + UNKNOWN + } + + public interface Visitor { + T visitReadonly(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum.java new file mode 100644 index 000000000..fdbb29407 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum { + public static final EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum LIMITED = + new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum(Value.LIMITED, "limited"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum(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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case LIMITED: + return visitor.visitLimited(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum valueOf(String value) { + switch (value) { + case "limited": + return LIMITED; + default: + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + LIMITED, + + UNKNOWN + } + + public interface Visitor { + T visitLimited(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum.java new file mode 100644 index 000000000..049c482bc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum { + public static final EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum FULL = + new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum(Value.FULL, "full"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum(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 EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FULL: + return visitor.visitFull(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum valueOf(String value) { + switch (value) { + case "full": + return FULL; + default: + return new EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + FULL, + + UNKNOWN + } + + public interface Visitor { + T visitFull(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObject.java new file mode 100644 index 000000000..e1e1c62e2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObject.java @@ -0,0 +1,393 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionAddedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgConnectionAddedPreviousObject { + private final EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection connection; + + private final Optional assignMembershipOnLogin; + + private final Optional showAsButton; + + private final Optional isSignupEnabled; + + private final Optional isEnabled; + + private final Optional + organizationAccessLevel; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionAddedPreviousObject( + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization organization, + EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection connection, + Optional assignMembershipOnLogin, + Optional showAsButton, + Optional isSignupEnabled, + Optional isEnabled, + Optional + organizationAccessLevel, + Map additionalProperties) { + this.organization = organization; + this.connection = connection; + this.assignMembershipOnLogin = assignMembershipOnLogin; + this.showAsButton = showAsButton; + this.isSignupEnabled = isSignupEnabled; + this.isEnabled = isEnabled; + this.organizationAccessLevel = organizationAccessLevel; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("connection") + public EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection getConnection() { + return connection; + } + + /** + * @return When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection. + */ + @JsonProperty("assign_membership_on_login") + public Optional getAssignMembershipOnLogin() { + return assignMembershipOnLogin; + } + + /** + * @return Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + /** + * @return Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections. + */ + @JsonProperty("is_signup_enabled") + public Optional getIsSignupEnabled() { + return isSignupEnabled; + } + + /** + * @return Determines whether the connection is enabled for the organization. + */ + @JsonProperty("is_enabled") + public Optional getIsEnabled() { + return isEnabled; + } + + @JsonProperty("organization_access_level") + public Optional + getOrganizationAccessLevel() { + return organizationAccessLevel; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionAddedPreviousObject + && equalTo((EventStreamCloudEventOrgConnectionAddedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionAddedPreviousObject other) { + return organization.equals(other.organization) + && connection.equals(other.connection) + && assignMembershipOnLogin.equals(other.assignMembershipOnLogin) + && showAsButton.equals(other.showAsButton) + && isSignupEnabled.equals(other.isSignupEnabled) + && isEnabled.equals(other.isEnabled) + && organizationAccessLevel.equals(other.organizationAccessLevel); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.organization, + this.connection, + this.assignMembershipOnLogin, + this.showAsButton, + this.isSignupEnabled, + this.isEnabled, + this.organizationAccessLevel); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + ConnectionStage organization( + @NotNull EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgConnectionAddedPreviousObject other); + } + + public interface ConnectionStage { + _FinalStage connection(@NotNull EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection connection); + } + + public interface _FinalStage { + EventStreamCloudEventOrgConnectionAddedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection.

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

Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections.

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

Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections.

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

Determines whether the connection is enabled for the organization.

+ */ + _FinalStage isEnabled(Optional isEnabled); + + _FinalStage isEnabled(Boolean isEnabled); + + _FinalStage organizationAccessLevel( + Optional + organizationAccessLevel); + + _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel organizationAccessLevel); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, ConnectionStage, _FinalStage { + private EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection connection; + + private Optional + organizationAccessLevel = Optional.empty(); + + private Optional isEnabled = Optional.empty(); + + private Optional isSignupEnabled = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + private Optional assignMembershipOnLogin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgConnectionAddedPreviousObject other) { + organization(other.getOrganization()); + connection(other.getConnection()); + assignMembershipOnLogin(other.getAssignMembershipOnLogin()); + showAsButton(other.getShowAsButton()); + isSignupEnabled(other.getIsSignupEnabled()); + isEnabled(other.getIsEnabled()); + organizationAccessLevel(other.getOrganizationAccessLevel()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public ConnectionStage organization( + @NotNull EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("connection") + public _FinalStage connection( + @NotNull EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel organizationAccessLevel) { + this.organizationAccessLevel = Optional.ofNullable(organizationAccessLevel); + return this; + } + + @java.lang.Override + @JsonSetter(value = "organization_access_level", nulls = Nulls.SKIP) + public _FinalStage organizationAccessLevel( + Optional + organizationAccessLevel) { + this.organizationAccessLevel = organizationAccessLevel; + return this; + } + + /** + *

Determines whether the connection is enabled for the organization.

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

Determines whether the connection is enabled for the organization.

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

Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections.

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

Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections.

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

Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections.

+ * @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; + } + + /** + *

Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections.

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

When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection.

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

When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection.

+ */ + @java.lang.Override + @JsonSetter(value = "assign_membership_on_login", nulls = Nulls.SKIP) + public _FinalStage assignMembershipOnLogin(Optional assignMembershipOnLogin) { + this.assignMembershipOnLogin = assignMembershipOnLogin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionAddedPreviousObject build() { + return new EventStreamCloudEventOrgConnectionAddedPreviousObject( + organization, + connection, + assignMembershipOnLogin, + showAsButton, + isSignupEnabled, + isEnabled, + organizationAccessLevel, + 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/EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection.java new file mode 100644 index 000000000..0b7c8844d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection.Builder.class) +public final class EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection { + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection( + String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the connection. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection + && equalTo((EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the connection.

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

The ID of the connection.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection build() { + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection(id, 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/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization.java new file mode 100644 index 000000000..bde1df81b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization.java @@ -0,0 +1,174 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization { + private final Optional name; + + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization( + Optional name, String id, Map additionalProperties) { + this.name = name; + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization other) { + return name.equals(other.name) && id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + _FinalStage name(Optional name); + + _FinalStage name(String name); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization other) { + name(other.getName()); + id(other.getId()); + return this; + } + + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization( + name, id, 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/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel.java new file mode 100644 index 000000000..d4cf8173b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel.java @@ -0,0 +1,139 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel.Deserializer.class) +public final class EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel { + private final Object value; + + private final int type; + + private EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel(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( + (EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum) this.value); + } else if (this.type == 1) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum) this.value); + } else if (this.type == 2) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum) this.value); + } else if (this.type == 3) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum) 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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel + && equalTo((EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel) other); + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel 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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum value) { + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel(value, 0); + } + + public static EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum value) { + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel(value, 1); + } + + public static EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum value) { + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel(value, 2); + } + + public static EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum value) { + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel(value, 3); + } + + public interface Visitor { + T visit(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum value); + + T visit(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum value); + + T visit(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum value); + + T visit(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel.class); + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum.java new file mode 100644 index 000000000..dbd347eb1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum.java @@ -0,0 +1,80 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum { + public static final EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum NONE = + new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum(Value.NONE, "none"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum(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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NONE: + return visitor.visitNone(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum valueOf( + String value) { + switch (value) { + case "none": + return NONE; + default: + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NONE, + + UNKNOWN + } + + public interface Visitor { + T visitNone(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum.java new file mode 100644 index 000000000..ed574b7da --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum.java @@ -0,0 +1,81 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum { + public static final EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum READONLY = + new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum( + Value.READONLY, "readonly"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum(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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case READONLY: + return visitor.visitReadonly(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum valueOf( + String value) { + switch (value) { + case "readonly": + return READONLY; + default: + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + READONLY, + + UNKNOWN + } + + public interface Visitor { + T visitReadonly(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum.java new file mode 100644 index 000000000..27ad0e46c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum.java @@ -0,0 +1,81 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum { + public static final EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum LIMITED = + new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum( + Value.LIMITED, "limited"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum(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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case LIMITED: + return visitor.visitLimited(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum valueOf( + String value) { + switch (value) { + case "limited": + return LIMITED; + default: + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + LIMITED, + + UNKNOWN + } + + public interface Visitor { + T visitLimited(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum.java new file mode 100644 index 000000000..0c73eb043 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum.java @@ -0,0 +1,80 @@ +/** + * 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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum { + public static final EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum FULL = + new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum(Value.FULL, "full"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum(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 EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FULL: + return visitor.visitFull(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum valueOf( + String value) { + switch (value) { + case "full": + return FULL; + default: + return new EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + FULL, + + UNKNOWN + } + + public interface Visitor { + T visitFull(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedData.java index e733915b9..d8ce1cee5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgConnectionRemovedData { private final EventStreamCloudEventOrgConnectionRemovedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgConnectionRemovedData( EventStreamCloudEventOrgConnectionRemovedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgConnectionRemovedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgConnectionRemovedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgConnectionRemovedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgConnectionRemovedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgConnectionRemovedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgConnectionRemovedData build() { - return new EventStreamCloudEventOrgConnectionRemovedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgConnectionRemovedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedPreviousObject.java new file mode 100644 index 000000000..7e4695bb3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedPreviousObject.java @@ -0,0 +1,148 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionRemovedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgConnectionRemovedPreviousObject { + private final EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection connection; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionRemovedPreviousObject( + EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization organization, + EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection connection, + Map additionalProperties) { + this.organization = organization; + this.connection = connection; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("connection") + public EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection getConnection() { + return connection; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionRemovedPreviousObject + && equalTo((EventStreamCloudEventOrgConnectionRemovedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionRemovedPreviousObject other) { + return organization.equals(other.organization) && connection.equals(other.connection); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.organization, this.connection); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + ConnectionStage organization( + @NotNull EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgConnectionRemovedPreviousObject other); + } + + public interface ConnectionStage { + _FinalStage connection(@NotNull EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection connection); + } + + public interface _FinalStage { + EventStreamCloudEventOrgConnectionRemovedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, ConnectionStage, _FinalStage { + private EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection connection; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgConnectionRemovedPreviousObject other) { + organization(other.getOrganization()); + connection(other.getConnection()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public ConnectionStage organization( + @NotNull EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("connection") + public _FinalStage connection( + @NotNull EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionRemovedPreviousObject build() { + return new EventStreamCloudEventOrgConnectionRemovedPreviousObject( + organization, connection, 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/EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection.java new file mode 100644 index 000000000..270cd2d8e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection.Builder.class) +public final class EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection { + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection( + String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the connection. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection + && equalTo((EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the connection.

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

The ID of the connection.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection build() { + return new EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection(id, 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/EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization.java new file mode 100644 index 000000000..51fbc63d6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization.java @@ -0,0 +1,174 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization { + private final Optional name; + + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization( + Optional name, String id, Map additionalProperties) { + this.name = name; + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization other) { + return name.equals(other.name) && id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + _FinalStage name(Optional name); + + _FinalStage name(String name); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization other) { + name(other.getName()); + id(other.getId()); + return this; + } + + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization( + name, id, 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/EventStreamCloudEventOrgConnectionUpdatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedData.java index 66d342133..eecfabcaf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgConnectionUpdatedData { private final EventStreamCloudEventOrgConnectionUpdatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgConnectionUpdatedData( EventStreamCloudEventOrgConnectionUpdatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgConnectionUpdatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgConnectionUpdatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgConnectionUpdatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgConnectionUpdatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgConnectionUpdatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgConnectionUpdatedData build() { - return new EventStreamCloudEventOrgConnectionUpdatedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgConnectionUpdatedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObject.java index 15c1d971b..f6cb5f20b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObject.java @@ -31,6 +31,11 @@ public final class EventStreamCloudEventOrgConnectionUpdatedObject { private final Optional isSignupEnabled; + private final Optional isEnabled; + + private final Optional + organizationAccessLevel; + private final Map additionalProperties; private EventStreamCloudEventOrgConnectionUpdatedObject( @@ -39,12 +44,16 @@ private EventStreamCloudEventOrgConnectionUpdatedObject( Optional assignMembershipOnLogin, Optional showAsButton, Optional isSignupEnabled, + Optional isEnabled, + Optional organizationAccessLevel, Map additionalProperties) { this.organization = organization; this.connection = connection; this.assignMembershipOnLogin = assignMembershipOnLogin; this.showAsButton = showAsButton; this.isSignupEnabled = isSignupEnabled; + this.isEnabled = isEnabled; + this.organizationAccessLevel = organizationAccessLevel; this.additionalProperties = additionalProperties; } @@ -86,6 +95,20 @@ public Optional getIsSignupEnabled() { return isSignupEnabled; } + /** + * @return Determines whether the connection is enabled for the organization. + */ + @JsonProperty("is_enabled") + public Optional getIsEnabled() { + return isEnabled; + } + + @JsonProperty("organization_access_level") + public Optional + getOrganizationAccessLevel() { + return organizationAccessLevel; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -103,7 +126,9 @@ private boolean equalTo(EventStreamCloudEventOrgConnectionUpdatedObject other) { && connection.equals(other.connection) && assignMembershipOnLogin.equals(other.assignMembershipOnLogin) && showAsButton.equals(other.showAsButton) - && isSignupEnabled.equals(other.isSignupEnabled); + && isSignupEnabled.equals(other.isSignupEnabled) + && isEnabled.equals(other.isEnabled) + && organizationAccessLevel.equals(other.organizationAccessLevel); } @java.lang.Override @@ -113,7 +138,9 @@ public int hashCode() { this.connection, this.assignMembershipOnLogin, this.showAsButton, - this.isSignupEnabled); + this.isSignupEnabled, + this.isEnabled, + this.organizationAccessLevel); } @java.lang.Override @@ -166,6 +193,20 @@ public interface _FinalStage { _FinalStage isSignupEnabled(Optional isSignupEnabled); _FinalStage isSignupEnabled(Boolean isSignupEnabled); + + /** + *

Determines whether the connection is enabled for the organization.

+ */ + _FinalStage isEnabled(Optional isEnabled); + + _FinalStage isEnabled(Boolean isEnabled); + + _FinalStage organizationAccessLevel( + Optional + organizationAccessLevel); + + _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel organizationAccessLevel); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -174,6 +215,11 @@ public static final class Builder implements OrganizationStage, ConnectionStage, private EventStreamCloudEventOrgConnectionUpdatedObjectConnection connection; + private Optional + organizationAccessLevel = Optional.empty(); + + private Optional isEnabled = Optional.empty(); + private Optional isSignupEnabled = Optional.empty(); private Optional showAsButton = Optional.empty(); @@ -192,6 +238,8 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdatedObject other) { assignMembershipOnLogin(other.getAssignMembershipOnLogin()); showAsButton(other.getShowAsButton()); isSignupEnabled(other.getIsSignupEnabled()); + isEnabled(other.getIsEnabled()); + organizationAccessLevel(other.getOrganizationAccessLevel()); return this; } @@ -210,6 +258,42 @@ public _FinalStage connection(@NotNull EventStreamCloudEventOrgConnectionUpdated return this; } + @java.lang.Override + public _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel organizationAccessLevel) { + this.organizationAccessLevel = Optional.ofNullable(organizationAccessLevel); + return this; + } + + @java.lang.Override + @JsonSetter(value = "organization_access_level", nulls = Nulls.SKIP) + public _FinalStage organizationAccessLevel( + Optional + organizationAccessLevel) { + this.organizationAccessLevel = organizationAccessLevel; + return this; + } + + /** + *

Determines whether the connection is enabled for the organization.

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

Determines whether the connection is enabled for the organization.

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

Determines whether organization signup should be enabled for this organization connection. * Only applicable for database connections.

@@ -286,6 +370,8 @@ public EventStreamCloudEventOrgConnectionUpdatedObject build() { assignMembershipOnLogin, showAsButton, isSignupEnabled, + isEnabled, + organizationAccessLevel, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel.java new file mode 100644 index 000000000..986e9e76c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel.java @@ -0,0 +1,134 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel.Deserializer.class) +public final class EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel { + private final Object value; + + private final int type; + + private EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel(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( + (EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum) this.value); + } else if (this.type == 1) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum) this.value); + } else if (this.type == 2) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum) this.value); + } else if (this.type == 3) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum) 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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel + && equalTo((EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel) other); + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel 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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel(value, 0); + } + + public static EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel(value, 1); + } + + public static EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel(value, 2); + } + + public static EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel(value, 3); + } + + public interface Visitor { + T visit(EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum value); + + T visit(EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum value); + + T visit(EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum value); + + T visit(EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel.class); + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum.java new file mode 100644 index 000000000..769f5dea9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum NONE = + new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum(Value.NONE, "none"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum(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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NONE: + return visitor.visitNone(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum valueOf(String value) { + switch (value) { + case "none": + return NONE; + default: + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NONE, + + UNKNOWN + } + + public interface Visitor { + T visitNone(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum.java new file mode 100644 index 000000000..b54242556 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum READONLY = + new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum(Value.READONLY, "readonly"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum(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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case READONLY: + return visitor.visitReadonly(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum valueOf(String value) { + switch (value) { + case "readonly": + return READONLY; + default: + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + READONLY, + + UNKNOWN + } + + public interface Visitor { + T visitReadonly(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum.java new file mode 100644 index 000000000..a543aaf0d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum LIMITED = + new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum(Value.LIMITED, "limited"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum(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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case LIMITED: + return visitor.visitLimited(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum valueOf(String value) { + switch (value) { + case "limited": + return LIMITED; + default: + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + LIMITED, + + UNKNOWN + } + + public interface Visitor { + T visitLimited(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum.java new file mode 100644 index 000000000..a11bf16da --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum FULL = + new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum(Value.FULL, "full"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum(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 EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FULL: + return visitor.visitFull(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum valueOf(String value) { + switch (value) { + case "full": + return FULL; + default: + return new EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + FULL, + + UNKNOWN + } + + public interface Visitor { + T visitFull(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObject.java new file mode 100644 index 000000000..56d30a828 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObject.java @@ -0,0 +1,394 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionUpdatedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgConnectionUpdatedPreviousObject { + private final EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection connection; + + private final Optional assignMembershipOnLogin; + + private final Optional showAsButton; + + private final Optional isSignupEnabled; + + private final Optional isEnabled; + + private final Optional + organizationAccessLevel; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionUpdatedPreviousObject( + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization organization, + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection connection, + Optional assignMembershipOnLogin, + Optional showAsButton, + Optional isSignupEnabled, + Optional isEnabled, + Optional + organizationAccessLevel, + Map additionalProperties) { + this.organization = organization; + this.connection = connection; + this.assignMembershipOnLogin = assignMembershipOnLogin; + this.showAsButton = showAsButton; + this.isSignupEnabled = isSignupEnabled; + this.isEnabled = isEnabled; + this.organizationAccessLevel = organizationAccessLevel; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("connection") + public EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection getConnection() { + return connection; + } + + /** + * @return When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection. + */ + @JsonProperty("assign_membership_on_login") + public Optional getAssignMembershipOnLogin() { + return assignMembershipOnLogin; + } + + /** + * @return Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + /** + * @return Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections. + */ + @JsonProperty("is_signup_enabled") + public Optional getIsSignupEnabled() { + return isSignupEnabled; + } + + /** + * @return Determines whether the connection is enabled for the organization. + */ + @JsonProperty("is_enabled") + public Optional getIsEnabled() { + return isEnabled; + } + + @JsonProperty("organization_access_level") + public Optional + getOrganizationAccessLevel() { + return organizationAccessLevel; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionUpdatedPreviousObject + && equalTo((EventStreamCloudEventOrgConnectionUpdatedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionUpdatedPreviousObject other) { + return organization.equals(other.organization) + && connection.equals(other.connection) + && assignMembershipOnLogin.equals(other.assignMembershipOnLogin) + && showAsButton.equals(other.showAsButton) + && isSignupEnabled.equals(other.isSignupEnabled) + && isEnabled.equals(other.isEnabled) + && organizationAccessLevel.equals(other.organizationAccessLevel); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.organization, + this.connection, + this.assignMembershipOnLogin, + this.showAsButton, + this.isSignupEnabled, + this.isEnabled, + this.organizationAccessLevel); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + ConnectionStage organization( + @NotNull EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgConnectionUpdatedPreviousObject other); + } + + public interface ConnectionStage { + _FinalStage connection(@NotNull EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection connection); + } + + public interface _FinalStage { + EventStreamCloudEventOrgConnectionUpdatedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection.

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

Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections.

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

Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections.

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

Determines whether the connection is enabled for the organization.

+ */ + _FinalStage isEnabled(Optional isEnabled); + + _FinalStage isEnabled(Boolean isEnabled); + + _FinalStage organizationAccessLevel( + Optional + organizationAccessLevel); + + _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel organizationAccessLevel); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, ConnectionStage, _FinalStage { + private EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection connection; + + private Optional + organizationAccessLevel = Optional.empty(); + + private Optional isEnabled = Optional.empty(); + + private Optional isSignupEnabled = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + private Optional assignMembershipOnLogin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgConnectionUpdatedPreviousObject other) { + organization(other.getOrganization()); + connection(other.getConnection()); + assignMembershipOnLogin(other.getAssignMembershipOnLogin()); + showAsButton(other.getShowAsButton()); + isSignupEnabled(other.getIsSignupEnabled()); + isEnabled(other.getIsEnabled()); + organizationAccessLevel(other.getOrganizationAccessLevel()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public ConnectionStage organization( + @NotNull EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("connection") + public _FinalStage connection( + @NotNull EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage organizationAccessLevel( + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel + organizationAccessLevel) { + this.organizationAccessLevel = Optional.ofNullable(organizationAccessLevel); + return this; + } + + @java.lang.Override + @JsonSetter(value = "organization_access_level", nulls = Nulls.SKIP) + public _FinalStage organizationAccessLevel( + Optional + organizationAccessLevel) { + this.organizationAccessLevel = organizationAccessLevel; + return this; + } + + /** + *

Determines whether the connection is enabled for the organization.

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

Determines whether the connection is enabled for the organization.

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

Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections.

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

Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections.

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

Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections.

+ * @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; + } + + /** + *

Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections.

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

When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection.

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

When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection.

+ */ + @java.lang.Override + @JsonSetter(value = "assign_membership_on_login", nulls = Nulls.SKIP) + public _FinalStage assignMembershipOnLogin(Optional assignMembershipOnLogin) { + this.assignMembershipOnLogin = assignMembershipOnLogin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionUpdatedPreviousObject build() { + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObject( + organization, + connection, + assignMembershipOnLogin, + showAsButton, + isSignupEnabled, + isEnabled, + organizationAccessLevel, + 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/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection.java new file mode 100644 index 000000000..f84f79063 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection.Builder.class) +public final class EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection { + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection( + String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the connection. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection + && equalTo((EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the connection.

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

The ID of the connection.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection build() { + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection(id, 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/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization.java new file mode 100644 index 000000000..beee6e19a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization.java @@ -0,0 +1,174 @@ +/** + * 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 = EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization { + private final Optional name; + + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization( + Optional name, String id, Map additionalProperties) { + this.name = name; + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization other) { + return name.equals(other.name) && id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + _FinalStage name(Optional name); + + _FinalStage name(String name); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization other) { + name(other.getName()); + id(other.getId()); + return this; + } + + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization( + name, id, 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/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel.java new file mode 100644 index 000000000..371dde69f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel.java @@ -0,0 +1,139 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel.Deserializer.class) +public final class EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel { + private final Object value; + + private final int type; + + private EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel(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( + (EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum) this.value); + } else if (this.type == 1) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum) this.value); + } else if (this.type == 2) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum) this.value); + } else if (this.type == 3) { + return visitor.visit( + (EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum) 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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel + && equalTo((EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel) other); + } + + private boolean equalTo(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel 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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel(value, 0); + } + + public static EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel(value, 1); + } + + public static EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel(value, 2); + } + + public static EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel of( + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum value) { + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel(value, 3); + } + + public interface Visitor { + T visit(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum value); + + T visit(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum value); + + T visit(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum value); + + T visit(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel.class); + } + + @java.lang.Override + public EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum.java new file mode 100644 index 000000000..ee9ffcd9b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum.java @@ -0,0 +1,80 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum NONE = + new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum(Value.NONE, "none"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum(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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NONE: + return visitor.visitNone(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum valueOf( + String value) { + switch (value) { + case "none": + return NONE; + default: + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NONE, + + UNKNOWN + } + + public interface Visitor { + T visitNone(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum.java new file mode 100644 index 000000000..647be8d94 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum.java @@ -0,0 +1,81 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum READONLY = + new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum( + Value.READONLY, "readonly"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum(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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case READONLY: + return visitor.visitReadonly(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum valueOf( + String value) { + switch (value) { + case "readonly": + return READONLY; + default: + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + READONLY, + + UNKNOWN + } + + public interface Visitor { + T visitReadonly(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum.java new file mode 100644 index 000000000..a980ed02c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum.java @@ -0,0 +1,81 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum LIMITED = + new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum( + Value.LIMITED, "limited"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum(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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case LIMITED: + return visitor.visitLimited(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum valueOf( + String value) { + switch (value) { + case "limited": + return LIMITED; + default: + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + LIMITED, + + UNKNOWN + } + + public interface Visitor { + T visitLimited(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum.java new file mode 100644 index 000000000..153b8f78a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum.java @@ -0,0 +1,80 @@ +/** + * 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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum { + public static final EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum FULL = + new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum(Value.FULL, "full"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum(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 EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum + && this.string.equals( + ((EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FULL: + return visitor.visitFull(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum valueOf( + String value) { + switch (value) { + case "full": + return FULL; + default: + return new EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum( + Value.UNKNOWN, value); + } + } + + public enum Value { + FULL, + + UNKNOWN + } + + public interface Visitor { + T visitFull(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedData.java index c9020f10d..b542a9147 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgCreatedData { private final EventStreamCloudEventOrgCreatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgCreatedData( EventStreamCloudEventOrgCreatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgCreatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgCreatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgCreatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgCreatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgCreatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgCreatedData build() { - return new EventStreamCloudEventOrgCreatedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgCreatedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedPreviousObject.java new file mode 100644 index 000000000..070efd3d5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedPreviousObject.java @@ -0,0 +1,280 @@ +/** + * 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 = EventStreamCloudEventOrgCreatedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgCreatedPreviousObject { + private final Optional name; + + private final String id; + + private final Optional displayName; + + private final Optional> metadata; + + private final Optional branding; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgCreatedPreviousObject( + Optional name, + String id, + Optional displayName, + Optional> metadata, + Optional branding, + Map additionalProperties) { + this.name = name; + this.id = id; + this.displayName = displayName; + this.metadata = metadata; + this.branding = branding; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return If set, the name that will be displayed to end-users for this organization in any interaction with them. + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("metadata") + public Optional> getMetadata() { + return metadata; + } + + @JsonProperty("branding") + public Optional getBranding() { + return branding; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgCreatedPreviousObject + && equalTo((EventStreamCloudEventOrgCreatedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgCreatedPreviousObject other) { + return name.equals(other.name) + && id.equals(other.id) + && displayName.equals(other.displayName) + && metadata.equals(other.metadata) + && branding.equals(other.branding); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id, this.displayName, this.metadata, this.branding); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

If set, the name that will be displayed to end-users for this organization in any interaction with them.

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + _FinalStage metadata(Optional> metadata); + + _FinalStage metadata(Map metadata); + + _FinalStage branding(Optional branding); + + _FinalStage branding(EventStreamCloudEventOrgCreatedPreviousObjectBranding branding); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional branding = Optional.empty(); + + private Optional> metadata = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgCreatedPreviousObject other) { + name(other.getName()); + id(other.getId()); + displayName(other.getDisplayName()); + metadata(other.getMetadata()); + branding(other.getBranding()); + return this; + } + + /** + *

ID of the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage branding(EventStreamCloudEventOrgCreatedPreviousObjectBranding branding) { + this.branding = Optional.ofNullable(branding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "branding", nulls = Nulls.SKIP) + public _FinalStage branding(Optional branding) { + this.branding = branding; + return this; + } + + @java.lang.Override + public _FinalStage metadata(Map 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; + } + + /** + *

If set, the name that will be displayed to end-users for this organization in any interaction with them.

+ * @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; + } + + /** + *

If set, the name that will be displayed to end-users for this organization in any interaction with them.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgCreatedPreviousObject build() { + return new EventStreamCloudEventOrgCreatedPreviousObject( + name, id, displayName, metadata, branding, 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/EventStreamCloudEventOrgCreatedPreviousObjectBranding.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedPreviousObjectBranding.java new file mode 100644 index 000000000..0952f3bec --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedPreviousObjectBranding.java @@ -0,0 +1,137 @@ +/** + * 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 = EventStreamCloudEventOrgCreatedPreviousObjectBranding.Builder.class) +public final class EventStreamCloudEventOrgCreatedPreviousObjectBranding { + private final Optional logoUrl; + + private final Optional colors; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgCreatedPreviousObjectBranding( + Optional logoUrl, + Optional colors, + Map additionalProperties) { + this.logoUrl = logoUrl; + this.colors = colors; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of logo to display on login page. + */ + @JsonProperty("logo_url") + public Optional getLogoUrl() { + return logoUrl; + } + + @JsonProperty("colors") + public Optional getColors() { + return colors; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgCreatedPreviousObjectBranding + && equalTo((EventStreamCloudEventOrgCreatedPreviousObjectBranding) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgCreatedPreviousObjectBranding other) { + return logoUrl.equals(other.logoUrl) && colors.equals(other.colors); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.logoUrl, this.colors); + } + + @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 logoUrl = Optional.empty(); + + private Optional colors = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventOrgCreatedPreviousObjectBranding other) { + logoUrl(other.getLogoUrl()); + colors(other.getColors()); + return this; + } + + /** + *

URL of logo to display on login page.

+ */ + @JsonSetter(value = "logo_url", nulls = Nulls.SKIP) + public Builder logoUrl(Optional logoUrl) { + this.logoUrl = logoUrl; + return this; + } + + public Builder logoUrl(String logoUrl) { + this.logoUrl = Optional.ofNullable(logoUrl); + return this; + } + + @JsonSetter(value = "colors", nulls = Nulls.SKIP) + public Builder colors(Optional colors) { + this.colors = colors; + return this; + } + + public Builder colors(EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors colors) { + this.colors = Optional.ofNullable(colors); + return this; + } + + public EventStreamCloudEventOrgCreatedPreviousObjectBranding build() { + return new EventStreamCloudEventOrgCreatedPreviousObjectBranding(logoUrl, colors, 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/EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors.java new file mode 100644 index 000000000..38ad90526 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors.java @@ -0,0 +1,142 @@ +/** + * 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 = EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors.Builder.class) +public final class EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors { + private final Optional primary; + + private final Optional pageBackground; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors( + Optional primary, Optional pageBackground, Map additionalProperties) { + this.primary = primary; + this.pageBackground = pageBackground; + this.additionalProperties = additionalProperties; + } + + /** + * @return HEX Color for primary elements. + */ + @JsonProperty("primary") + public Optional getPrimary() { + return primary; + } + + /** + * @return HEX Color for background. + */ + @JsonProperty("page_background") + public Optional getPageBackground() { + return pageBackground; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors + && equalTo((EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors other) { + return primary.equals(other.primary) && pageBackground.equals(other.pageBackground); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.primary, this.pageBackground); + } + + @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 primary = Optional.empty(); + + private Optional pageBackground = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors other) { + primary(other.getPrimary()); + pageBackground(other.getPageBackground()); + return this; + } + + /** + *

HEX Color for primary elements.

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

HEX Color for background.

+ */ + @JsonSetter(value = "page_background", nulls = Nulls.SKIP) + public Builder pageBackground(Optional pageBackground) { + this.pageBackground = pageBackground; + return this; + } + + public Builder pageBackground(String pageBackground) { + this.pageBackground = Optional.ofNullable(pageBackground); + return this; + } + + public EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors build() { + return new EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors( + primary, pageBackground, 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/EventStreamCloudEventOrgDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedData.java index 0eb937bf6..0a406f194 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgDeletedData { private final EventStreamCloudEventOrgDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgDeletedData( EventStreamCloudEventOrgDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgDeletedData build() { - return new EventStreamCloudEventOrgDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgDeletedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedPreviousObject.java new file mode 100644 index 000000000..9cb2f2678 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedPreviousObject.java @@ -0,0 +1,250 @@ +/** + * 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 = EventStreamCloudEventOrgDeletedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgDeletedPreviousObject { + private final Optional name; + + private final String id; + + private final Optional displayName; + + private final Optional> metadata; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgDeletedPreviousObject( + Optional name, + String id, + Optional displayName, + Optional> metadata, + Map additionalProperties) { + this.name = name; + this.id = id; + this.displayName = displayName; + this.metadata = metadata; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return If set, the name that will be displayed to end-users for this organization in any interaction with them. + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("metadata") + public Optional> getMetadata() { + return metadata; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgDeletedPreviousObject + && equalTo((EventStreamCloudEventOrgDeletedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgDeletedPreviousObject other) { + return name.equals(other.name) + && id.equals(other.id) + && displayName.equals(other.displayName) + && metadata.equals(other.metadata); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id, this.displayName, this.metadata); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

If set, the name that will be displayed to end-users for this organization in any interaction with them.

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + _FinalStage metadata(Optional> metadata); + + _FinalStage metadata(Map metadata); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional> metadata = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgDeletedPreviousObject other) { + name(other.getName()); + id(other.getId()); + displayName(other.getDisplayName()); + metadata(other.getMetadata()); + return this; + } + + /** + *

ID of the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage metadata(Map 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; + } + + /** + *

If set, the name that will be displayed to end-users for this organization in any interaction with them.

+ * @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; + } + + /** + *

If set, the name that will be displayed to end-users for this organization in any interaction with them.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgDeletedPreviousObject build() { + return new EventStreamCloudEventOrgDeletedPreviousObject( + name, id, displayName, metadata, 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/EventStreamCloudEventOrgGroupRoleAssignedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedData.java index de947ab2f..53ec60202 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgGroupRoleAssignedData { private final EventStreamCloudEventOrgGroupRoleAssignedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgGroupRoleAssignedData( EventStreamCloudEventOrgGroupRoleAssignedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgGroupRoleAssignedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgGroupRoleAssignedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgGroupRoleAssignedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgGroupRoleAssignedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgGroupRoleAssignedData build() { - return new EventStreamCloudEventOrgGroupRoleAssignedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgGroupRoleAssignedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObject.java new file mode 100644 index 000000000..921f40b6d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObject.java @@ -0,0 +1,207 @@ +/** + * 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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventOrgGroupRoleAssignedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleAssignedPreviousObject { + private final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole role; + + private final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup group; + + private final OffsetDateTime createdAt; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObject( + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization organization, + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole role, + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup group, + OffsetDateTime createdAt, + Map additionalProperties) { + this.organization = organization; + this.role = role; + this.group = group; + this.createdAt = createdAt; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("role") + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole getRole() { + return role; + } + + @JsonProperty("group") + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup getGroup() { + return group; + } + + /** + * @return The time at which the role was assigned to the group in the organization. + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleAssignedPreviousObject + && equalTo((EventStreamCloudEventOrgGroupRoleAssignedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedPreviousObject other) { + return organization.equals(other.organization) + && role.equals(other.role) + && group.equals(other.group) + && createdAt.equals(other.createdAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.organization, this.role, this.group, this.createdAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + RoleStage organization( + @NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObject other); + } + + public interface RoleStage { + GroupStage role(@NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole role); + } + + public interface GroupStage { + CreatedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup group); + } + + public interface CreatedAtStage { + /** + *

The time at which the role was assigned to the group in the organization.

+ */ + _FinalStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface _FinalStage { + EventStreamCloudEventOrgGroupRoleAssignedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, RoleStage, GroupStage, CreatedAtStage, _FinalStage { + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole role; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup group; + + private OffsetDateTime createdAt; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObject other) { + organization(other.getOrganization()); + role(other.getRole()); + group(other.getGroup()); + createdAt(other.getCreatedAt()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public RoleStage organization( + @NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("role") + public GroupStage role(@NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole role) { + this.role = Objects.requireNonNull(role, "role must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("group") + public CreatedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup group) { + this.group = Objects.requireNonNull(group, "group must not be null"); + return this; + } + + /** + *

The time at which the role was assigned to the group in the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public _FinalStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObject build() { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObject( + organization, role, group, createdAt, 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/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup.java new file mode 100644 index 000000000..56a2c065e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup.java @@ -0,0 +1,131 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup.Deserializer.class) +public final class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup { + private final Object value; + + private final int type; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup(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((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2) 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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup + && equalTo((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup) other); + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup 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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup of( + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 value) { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup(value, 0); + } + + public static EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup of( + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 value) { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup(value, 1); + } + + public static EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup of( + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 value) { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 value); + + T visit(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 value); + + T visit(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup.class); + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0.java new file mode 100644 index 000000000..f478f0fe2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0( + String id, + Optional externalId, + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum type, + String connectionId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 + && equalTo((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 other); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum type; + + private String connectionId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The connection ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0 build() { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0( + id, externalId, type, connectionId, 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/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum.java new file mode 100644 index 000000000..bd2d10b82 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum.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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum { + public static final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum CONNECTION = + new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum(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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum + && this.string.equals( + ((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1.java new file mode 100644 index 000000000..69bb1930a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum type; + + private final String organizationId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1( + String id, + Optional externalId, + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum type, + String organizationId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.organizationId = organizationId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 + && equalTo((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && organizationId.equals(other.organizationId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.organizationId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 other); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, OrganizationIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum type; + + private String organizationId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + organizationId(other.getOrganizationId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The organization ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1 build() { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1( + id, externalId, type, organizationId, 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/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum.java new file mode 100644 index 000000000..74fff369a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum { + public static final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum ORGANIZATION = + new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum( + Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum(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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum + && this.string.equals( + ((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2.java new file mode 100644 index 000000000..40fe5122f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2.java @@ -0,0 +1,199 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum type; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2( + String id, + Optional externalId, + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum type, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 + && equalTo((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 other) { + return id.equals(other.id) && externalId.equals(other.externalId) && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 other); + } + + public interface TypeStage { + _FinalStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum type); + } + + public interface _FinalStage { + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, _FinalStage { + private String id; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum type; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + return this; + } + + /** + *

The unique identifier for the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2 build() { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2( + id, externalId, 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/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum.java new file mode 100644 index 000000000..cb60b846e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum.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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum { + public static final EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum TENANT = + new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum(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 EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum + && this.string.equals( + ((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization.java new file mode 100644 index 000000000..c42441873 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization { + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization( + String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

ID of the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization(id, 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/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole.java new file mode 100644 index 000000000..914b0f6c4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole.java @@ -0,0 +1,162 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole { + private final String id; + + private final String name; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole( + String id, String name, Map additionalProperties) { + this.id = id; + this.name = name; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the role. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the role. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole + && equalTo((EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole other) { + return id.equals(other.id) && name.equals(other.name); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the role.

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

The name of the role.

+ */ + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, _FinalStage { + private String id; + + private String name; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole other) { + id(other.getId()); + name(other.getName()); + return this; + } + + /** + *

The ID of the role.

+ * @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 role.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole build() { + return new EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole(id, name, 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/EventStreamCloudEventOrgGroupRoleDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedData.java index 8583bcfac..013faea14 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgGroupRoleDeletedData { private final EventStreamCloudEventOrgGroupRoleDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgGroupRoleDeletedData( EventStreamCloudEventOrgGroupRoleDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgGroupRoleDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgGroupRoleDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgGroupRoleDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgGroupRoleDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgGroupRoleDeletedData build() { - return new EventStreamCloudEventOrgGroupRoleDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgGroupRoleDeletedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObject.java new file mode 100644 index 000000000..98a97fab6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObject.java @@ -0,0 +1,207 @@ +/** + * 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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventOrgGroupRoleDeletedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleDeletedPreviousObject { + private final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole role; + + private final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup group; + + private final OffsetDateTime createdAt; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObject( + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization organization, + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole role, + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup group, + OffsetDateTime createdAt, + Map additionalProperties) { + this.organization = organization; + this.role = role; + this.group = group; + this.createdAt = createdAt; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("role") + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole getRole() { + return role; + } + + @JsonProperty("group") + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup getGroup() { + return group; + } + + /** + * @return The time at which the role was assigned to the group in the organization. + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleDeletedPreviousObject + && equalTo((EventStreamCloudEventOrgGroupRoleDeletedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedPreviousObject other) { + return organization.equals(other.organization) + && role.equals(other.role) + && group.equals(other.group) + && createdAt.equals(other.createdAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.organization, this.role, this.group, this.createdAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + RoleStage organization( + @NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObject other); + } + + public interface RoleStage { + GroupStage role(@NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole role); + } + + public interface GroupStage { + CreatedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup group); + } + + public interface CreatedAtStage { + /** + *

The time at which the role was assigned to the group in the organization.

+ */ + _FinalStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface _FinalStage { + EventStreamCloudEventOrgGroupRoleDeletedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, RoleStage, GroupStage, CreatedAtStage, _FinalStage { + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole role; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup group; + + private OffsetDateTime createdAt; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObject other) { + organization(other.getOrganization()); + role(other.getRole()); + group(other.getGroup()); + createdAt(other.getCreatedAt()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public RoleStage organization( + @NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("role") + public GroupStage role(@NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole role) { + this.role = Objects.requireNonNull(role, "role must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("group") + public CreatedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup group) { + this.group = Objects.requireNonNull(group, "group must not be null"); + return this; + } + + /** + *

The time at which the role was assigned to the group in the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public _FinalStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObject build() { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObject( + organization, role, group, createdAt, 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/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup.java new file mode 100644 index 000000000..e343869eb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup.java @@ -0,0 +1,131 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup.Deserializer.class) +public final class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup { + private final Object value; + + private final int type; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup(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((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2) 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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup + && equalTo((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup) other); + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup 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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup of( + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 value) { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup(value, 0); + } + + public static EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup of( + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 value) { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup(value, 1); + } + + public static EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup of( + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 value) { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup(value, 2); + } + + public interface Visitor { + T visit(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 value); + + T visit(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 value); + + T visit(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup.class); + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("connection_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type") + && ((Map) value).containsKey("organization_id")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("type")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0.java new file mode 100644 index 000000000..67b10e7a1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum type; + + private final String connectionId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0( + String id, + Optional externalId, + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum type, + String connectionId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.connectionId = connectionId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum getType() { + return type; + } + + /** + * @return The connection ID associated with the group. + */ + @JsonProperty("connection_id") + public String getConnectionId() { + return connectionId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 + && equalTo((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && connectionId.equals(other.connectionId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.connectionId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 other); + } + + public interface TypeStage { + ConnectionIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum type); + } + + public interface ConnectionIdStage { + /** + *

The connection ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, ConnectionIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum type; + + private String connectionId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + connectionId(other.getConnectionId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The connection ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0 build() { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0( + id, externalId, type, connectionId, 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/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum.java new file mode 100644 index 000000000..d6a62dfca --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum.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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum { + public static final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum CONNECTION = + new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum(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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum + && this.string.equals( + ((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum valueOf(String value) { + switch (value) { + case "connection": + return CONNECTION; + default: + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1.java new file mode 100644 index 000000000..2f9d5dfdd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1.java @@ -0,0 +1,236 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum type; + + private final String organizationId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1( + String id, + Optional externalId, + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum type, + String organizationId, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.organizationId = organizationId; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum getType() { + return type; + } + + /** + * @return The organization ID associated with the group. + */ + @JsonProperty("organization_id") + public String getOrganizationId() { + return organizationId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 + && equalTo((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 other) { + return id.equals(other.id) + && externalId.equals(other.externalId) + && type.equals(other.type) + && organizationId.equals(other.organizationId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type, this.organizationId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 other); + } + + public interface TypeStage { + OrganizationIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum type); + } + + public interface OrganizationIdStage { + /** + *

The organization ID associated with the group.

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

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, OrganizationIdStage, _FinalStage { + private String id; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum type; + + private String organizationId; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + organizationId(other.getOrganizationId()); + return this; + } + + /** + *

The unique identifier for the group.

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

The organization ID associated with the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1 build() { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1( + id, externalId, type, organizationId, 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/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum.java new file mode 100644 index 000000000..4ad5e8d52 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum.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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum { + public static final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum ORGANIZATION = + new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum( + Value.ORGANIZATION, "organization"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum(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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum + && this.string.equals( + ((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + default: + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ORGANIZATION, + + UNKNOWN + } + + public interface Visitor { + T visitOrganization(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2.java new file mode 100644 index 000000000..2b282b07e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2.java @@ -0,0 +1,199 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 { + private final String id; + + private final Optional externalId; + + private final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum type; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2( + String id, + Optional externalId, + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum type, + Map additionalProperties) { + this.id = id; + this.externalId = externalId; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return The unique identifier for the group. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The external identifier for the group. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + @JsonProperty("type") + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 + && equalTo((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 other) { + return id.equals(other.id) && externalId.equals(other.externalId) && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.externalId, this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The unique identifier for the group.

+ */ + TypeStage id(@NotNull String id); + + Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 other); + } + + public interface TypeStage { + _FinalStage type(@NotNull EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum type); + } + + public interface _FinalStage { + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The external identifier for the group.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, TypeStage, _FinalStage { + private String id; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum type; + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 other) { + id(other.getId()); + externalId(other.getExternalId()); + type(other.getType()); + return this; + } + + /** + *

The unique identifier for the group.

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

The external identifier for the group.

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

The external identifier for the group.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2 build() { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2( + id, externalId, 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/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum.java new file mode 100644 index 000000000..db55c17cb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum.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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum { + public static final EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum TENANT = + new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum(Value.TENANT, "tenant"); + + private final Value value; + + private final String string; + + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum(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 EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum + && this.string.equals( + ((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TENANT: + return visitor.visitTenant(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum valueOf(String value) { + switch (value) { + case "tenant": + return TENANT; + default: + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization.java new file mode 100644 index 000000000..12fbbaa7f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization { + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization( + String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

ID of the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization(id, 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/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole.java new file mode 100644 index 000000000..8a3b615a0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole.java @@ -0,0 +1,162 @@ +/** + * 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 = EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole.Builder.class) +public final class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole { + private final String id; + + private final String name; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole( + String id, String name, Map additionalProperties) { + this.id = id; + this.name = name; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the role. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the role. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole + && equalTo((EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole other) { + return id.equals(other.id) && name.equals(other.name); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the role.

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

The name of the role.

+ */ + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, _FinalStage { + private String id; + + private String name; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole other) { + id(other.getId()); + name(other.getName()); + return this; + } + + /** + *

The ID of the role.

+ * @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 role.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole build() { + return new EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole(id, name, 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/EventStreamCloudEventOrgMemberAddedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedData.java index 727826740..1b59b804b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgMemberAddedData { private final EventStreamCloudEventOrgMemberAddedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgMemberAddedData( EventStreamCloudEventOrgMemberAddedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgMemberAddedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgMemberAddedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgMemberAddedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgMemberAddedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgMemberAddedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgMemberAddedData build() { - return new EventStreamCloudEventOrgMemberAddedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgMemberAddedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedPreviousObject.java new file mode 100644 index 000000000..60ff7c22d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedPreviousObject.java @@ -0,0 +1,145 @@ +/** + * 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 = EventStreamCloudEventOrgMemberAddedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgMemberAddedPreviousObject { + private final EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgMemberAddedPreviousObjectUser user; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberAddedPreviousObject( + EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization organization, + EventStreamCloudEventOrgMemberAddedPreviousObjectUser user, + Map additionalProperties) { + this.organization = organization; + this.user = user; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("user") + public EventStreamCloudEventOrgMemberAddedPreviousObjectUser getUser() { + return user; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberAddedPreviousObject + && equalTo((EventStreamCloudEventOrgMemberAddedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberAddedPreviousObject other) { + return organization.equals(other.organization) && user.equals(other.user); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.organization, this.user); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + UserStage organization(@NotNull EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgMemberAddedPreviousObject other); + } + + public interface UserStage { + _FinalStage user(@NotNull EventStreamCloudEventOrgMemberAddedPreviousObjectUser user); + } + + public interface _FinalStage { + EventStreamCloudEventOrgMemberAddedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, UserStage, _FinalStage { + private EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgMemberAddedPreviousObjectUser user; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberAddedPreviousObject other) { + organization(other.getOrganization()); + user(other.getUser()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public UserStage organization( + @NotNull EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user") + public _FinalStage user(@NotNull EventStreamCloudEventOrgMemberAddedPreviousObjectUser user) { + this.user = Objects.requireNonNull(user, "user must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberAddedPreviousObject build() { + return new EventStreamCloudEventOrgMemberAddedPreviousObject(organization, user, 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/EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization.java new file mode 100644 index 000000000..87cbfaf7c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization.java @@ -0,0 +1,173 @@ +/** + * 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 = EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization { + private final Optional name; + + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization( + Optional name, String id, Map additionalProperties) { + this.name = name; + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization other) { + return name.equals(other.name) && id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + _FinalStage name(Optional name); + + _FinalStage name(String name); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization other) { + name(other.getName()); + id(other.getId()); + return this; + } + + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization(name, id, 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/EventStreamCloudEventOrgMemberAddedPreviousObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedPreviousObjectUser.java new file mode 100644 index 000000000..e11970fcd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedPreviousObjectUser.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgMemberAddedPreviousObjectUser.Builder.class) +public final class EventStreamCloudEventOrgMemberAddedPreviousObjectUser { + private final String userId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberAddedPreviousObjectUser( + String userId, Map additionalProperties) { + this.userId = userId; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user which can be used when interacting with other APIs. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberAddedPreviousObjectUser + && equalTo((EventStreamCloudEventOrgMemberAddedPreviousObjectUser) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberAddedPreviousObjectUser other) { + return userId.equals(other.userId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.userId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user which can be used when interacting with other APIs.

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

ID of the user which can be used when interacting with other APIs.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("user_id") + public _FinalStage userId(@NotNull String userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberAddedPreviousObjectUser build() { + return new EventStreamCloudEventOrgMemberAddedPreviousObjectUser(userId, 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/EventStreamCloudEventOrgMemberDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedData.java index 78bd54862..3724ede0c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgMemberDeletedData { private final EventStreamCloudEventOrgMemberDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgMemberDeletedData( EventStreamCloudEventOrgMemberDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgMemberDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgMemberDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgMemberDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgMemberDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,23 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgMemberDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgMemberDeletedData build() { - return new EventStreamCloudEventOrgMemberDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgMemberDeletedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedPreviousObject.java new file mode 100644 index 000000000..a0889cd5b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedPreviousObject.java @@ -0,0 +1,145 @@ +/** + * 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 = EventStreamCloudEventOrgMemberDeletedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgMemberDeletedPreviousObject { + private final EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgMemberDeletedPreviousObjectUser user; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberDeletedPreviousObject( + EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization organization, + EventStreamCloudEventOrgMemberDeletedPreviousObjectUser user, + Map additionalProperties) { + this.organization = organization; + this.user = user; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("user") + public EventStreamCloudEventOrgMemberDeletedPreviousObjectUser getUser() { + return user; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberDeletedPreviousObject + && equalTo((EventStreamCloudEventOrgMemberDeletedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberDeletedPreviousObject other) { + return organization.equals(other.organization) && user.equals(other.user); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.organization, this.user); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + UserStage organization(@NotNull EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgMemberDeletedPreviousObject other); + } + + public interface UserStage { + _FinalStage user(@NotNull EventStreamCloudEventOrgMemberDeletedPreviousObjectUser user); + } + + public interface _FinalStage { + EventStreamCloudEventOrgMemberDeletedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, UserStage, _FinalStage { + private EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgMemberDeletedPreviousObjectUser user; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberDeletedPreviousObject other) { + organization(other.getOrganization()); + user(other.getUser()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public UserStage organization( + @NotNull EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user") + public _FinalStage user(@NotNull EventStreamCloudEventOrgMemberDeletedPreviousObjectUser user) { + this.user = Objects.requireNonNull(user, "user must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberDeletedPreviousObject build() { + return new EventStreamCloudEventOrgMemberDeletedPreviousObject(organization, user, 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/EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization.java new file mode 100644 index 000000000..e53f13f4b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization.java @@ -0,0 +1,173 @@ +/** + * 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 = EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization { + private final Optional name; + + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization( + Optional name, String id, Map additionalProperties) { + this.name = name; + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization other) { + return name.equals(other.name) && id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + _FinalStage name(Optional name); + + _FinalStage name(String name); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization other) { + name(other.getName()); + id(other.getId()); + return this; + } + + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization(name, id, 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/EventStreamCloudEventOrgMemberDeletedPreviousObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedPreviousObjectUser.java new file mode 100644 index 000000000..c650f73a2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedPreviousObjectUser.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgMemberDeletedPreviousObjectUser.Builder.class) +public final class EventStreamCloudEventOrgMemberDeletedPreviousObjectUser { + private final String userId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberDeletedPreviousObjectUser( + String userId, Map additionalProperties) { + this.userId = userId; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user which can be used when interacting with other APIs. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberDeletedPreviousObjectUser + && equalTo((EventStreamCloudEventOrgMemberDeletedPreviousObjectUser) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberDeletedPreviousObjectUser other) { + return userId.equals(other.userId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.userId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user which can be used when interacting with other APIs.

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

ID of the user which can be used when interacting with other APIs.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("user_id") + public _FinalStage userId(@NotNull String userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberDeletedPreviousObjectUser build() { + return new EventStreamCloudEventOrgMemberDeletedPreviousObjectUser(userId, 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/EventStreamCloudEventOrgMemberRoleAssignedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedData.java index 28fa3c7ea..9d66676c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgMemberRoleAssignedData { private final EventStreamCloudEventOrgMemberRoleAssignedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgMemberRoleAssignedData( EventStreamCloudEventOrgMemberRoleAssignedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgMemberRoleAssignedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgMemberRoleAssignedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgMemberRoleAssignedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgMemberRoleAssignedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgMemberRoleAssignedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgMemberRoleAssignedData build() { - return new EventStreamCloudEventOrgMemberRoleAssignedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgMemberRoleAssignedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObject.java new file mode 100644 index 000000000..2d805a0ee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObject.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleAssignedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleAssignedPreviousObject { + private final EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser user; + + private final EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole role; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleAssignedPreviousObject( + EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization organization, + EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser user, + EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole role, + Map additionalProperties) { + this.organization = organization; + this.user = user; + this.role = role; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("user") + public EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser getUser() { + return user; + } + + @JsonProperty("role") + public EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole getRole() { + return role; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleAssignedPreviousObject + && equalTo((EventStreamCloudEventOrgMemberRoleAssignedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleAssignedPreviousObject other) { + return organization.equals(other.organization) && user.equals(other.user) && role.equals(other.role); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.organization, this.user, this.role); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + UserStage organization( + @NotNull EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgMemberRoleAssignedPreviousObject other); + } + + public interface UserStage { + RoleStage user(@NotNull EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser user); + } + + public interface RoleStage { + _FinalStage role(@NotNull EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole role); + } + + public interface _FinalStage { + EventStreamCloudEventOrgMemberRoleAssignedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, UserStage, RoleStage, _FinalStage { + private EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser user; + + private EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole role; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberRoleAssignedPreviousObject other) { + organization(other.getOrganization()); + user(other.getUser()); + role(other.getRole()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public UserStage organization( + @NotNull EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user") + public RoleStage user(@NotNull EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser user) { + this.user = Objects.requireNonNull(user, "user must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("role") + public _FinalStage role(@NotNull EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole role) { + this.role = Objects.requireNonNull(role, "role must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleAssignedPreviousObject build() { + return new EventStreamCloudEventOrgMemberRoleAssignedPreviousObject( + organization, user, role, 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/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization.java new file mode 100644 index 000000000..a06a9c00c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization { + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization( + String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

ID of the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization(id, 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/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole.java new file mode 100644 index 000000000..96250cb5a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole.java @@ -0,0 +1,162 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole { + private final String id; + + private final String name; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole( + String id, String name, Map additionalProperties) { + this.id = id; + this.name = name; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the role. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the role. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole + && equalTo((EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole other) { + return id.equals(other.id) && name.equals(other.name); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the role.

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

The name of the role.

+ */ + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, _FinalStage { + private String id; + + private String name; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole other) { + id(other.getId()); + name(other.getName()); + return this; + } + + /** + *

The ID of the role.

+ * @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 role.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole build() { + return new EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole(id, name, 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/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser.java new file mode 100644 index 000000000..0fd480fcf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser { + private final String userId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser( + String userId, Map additionalProperties) { + this.userId = userId; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user which can be used when interacting with other APIs. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser + && equalTo((EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser other) { + return userId.equals(other.userId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.userId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user which can be used when interacting with other APIs.

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

ID of the user which can be used when interacting with other APIs.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("user_id") + public _FinalStage userId(@NotNull String userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser build() { + return new EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser(userId, 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/EventStreamCloudEventOrgMemberRoleDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedData.java index 25c76b531..0e0c3951e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgMemberRoleDeletedData { private final EventStreamCloudEventOrgMemberRoleDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgMemberRoleDeletedData( EventStreamCloudEventOrgMemberRoleDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgMemberRoleDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgMemberRoleDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgMemberRoleDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgMemberRoleDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,24 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgMemberRoleDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject( + Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgMemberRoleDeletedData build() { - return new EventStreamCloudEventOrgMemberRoleDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgMemberRoleDeletedData( + object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObject.java new file mode 100644 index 000000000..47965c521 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObject.java @@ -0,0 +1,170 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleDeletedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleDeletedPreviousObject { + private final EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization organization; + + private final EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser user; + + private final EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole role; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleDeletedPreviousObject( + EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization organization, + EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser user, + EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole role, + Map additionalProperties) { + this.organization = organization; + this.user = user; + this.role = role; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("organization") + public EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization getOrganization() { + return organization; + } + + @JsonProperty("user") + public EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser getUser() { + return user; + } + + @JsonProperty("role") + public EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole getRole() { + return role; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleDeletedPreviousObject + && equalTo((EventStreamCloudEventOrgMemberRoleDeletedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleDeletedPreviousObject other) { + return organization.equals(other.organization) && user.equals(other.user) && role.equals(other.role); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.organization, this.user, this.role); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OrganizationStage builder() { + return new Builder(); + } + + public interface OrganizationStage { + UserStage organization( + @NotNull EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization organization); + + Builder from(EventStreamCloudEventOrgMemberRoleDeletedPreviousObject other); + } + + public interface UserStage { + RoleStage user(@NotNull EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser user); + } + + public interface RoleStage { + _FinalStage role(@NotNull EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole role); + } + + public interface _FinalStage { + EventStreamCloudEventOrgMemberRoleDeletedPreviousObject build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OrganizationStage, UserStage, RoleStage, _FinalStage { + private EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization organization; + + private EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser user; + + private EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole role; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberRoleDeletedPreviousObject other) { + organization(other.getOrganization()); + user(other.getUser()); + role(other.getRole()); + return this; + } + + @java.lang.Override + @JsonSetter("organization") + public UserStage organization( + @NotNull EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization organization) { + this.organization = Objects.requireNonNull(organization, "organization must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user") + public RoleStage user(@NotNull EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser user) { + this.user = Objects.requireNonNull(user, "user must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("role") + public _FinalStage role(@NotNull EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole role) { + this.role = Objects.requireNonNull(role, "role must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleDeletedPreviousObject build() { + return new EventStreamCloudEventOrgMemberRoleDeletedPreviousObject( + organization, user, role, 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/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization.java new file mode 100644 index 000000000..5473a10fe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization { + private final String id; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization( + String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization + && equalTo((EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

ID of the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization build() { + return new EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization(id, 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/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole.java new file mode 100644 index 000000000..fb27f62e1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole.java @@ -0,0 +1,162 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole { + private final String id; + + private final String name; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole( + String id, String name, Map additionalProperties) { + this.id = id; + this.name = name; + this.additionalProperties = additionalProperties; + } + + /** + * @return The ID of the role. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return The name of the role. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole + && equalTo((EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole other) { + return id.equals(other.id) && name.equals(other.name); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.name); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The ID of the role.

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

The name of the role.

+ */ + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, _FinalStage { + private String id; + + private String name; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole other) { + id(other.getId()); + name(other.getName()); + return this; + } + + /** + *

The ID of the role.

+ * @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 role.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole build() { + return new EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole(id, name, 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/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser.java new file mode 100644 index 000000000..29765eee6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser.java @@ -0,0 +1,130 @@ +/** + * 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 = EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser.Builder.class) +public final class EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser { + private final String userId; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser( + String userId, Map additionalProperties) { + this.userId = userId; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user which can be used when interacting with other APIs. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser + && equalTo((EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser other) { + return userId.equals(other.userId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.userId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user which can be used when interacting with other APIs.

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

ID of the user which can be used when interacting with other APIs.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("user_id") + public _FinalStage userId(@NotNull String userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser build() { + return new EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser(userId, 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/EventStreamCloudEventOrgUpdatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedData.java index 9e0185eb2..68b7cf887 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventOrgUpdatedData { private final EventStreamCloudEventOrgUpdatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventOrgUpdatedData( EventStreamCloudEventOrgUpdatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventOrgUpdatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventOrgUpdatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventOrgUpdatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventOrgUpdatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventOrgUpdatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventOrgUpdatedData build() { - return new EventStreamCloudEventOrgUpdatedData(object, context, additionalProperties); + return new EventStreamCloudEventOrgUpdatedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedPreviousObject.java new file mode 100644 index 000000000..01d033beb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedPreviousObject.java @@ -0,0 +1,280 @@ +/** + * 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 = EventStreamCloudEventOrgUpdatedPreviousObject.Builder.class) +public final class EventStreamCloudEventOrgUpdatedPreviousObject { + private final Optional name; + + private final String id; + + private final Optional displayName; + + private final Optional> metadata; + + private final Optional branding; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgUpdatedPreviousObject( + Optional name, + String id, + Optional displayName, + Optional> metadata, + Optional branding, + Map additionalProperties) { + this.name = name; + this.id = id; + this.displayName = displayName; + this.metadata = metadata; + this.branding = branding; + this.additionalProperties = additionalProperties; + } + + /** + * @return The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return ID of the organization. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return If set, the name that will be displayed to end-users for this organization in any interaction with them. + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("metadata") + public Optional> getMetadata() { + return metadata; + } + + @JsonProperty("branding") + public Optional getBranding() { + return branding; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgUpdatedPreviousObject + && equalTo((EventStreamCloudEventOrgUpdatedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgUpdatedPreviousObject other) { + return name.equals(other.name) + && id.equals(other.id) + && displayName.equals(other.displayName) + && metadata.equals(other.metadata) + && branding.equals(other.branding); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.name, this.id, this.displayName, this.metadata, this.branding); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

ID of the organization.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

If set, the name that will be displayed to end-users for this organization in any interaction with them.

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + _FinalStage metadata(Optional> metadata); + + _FinalStage metadata(Map metadata); + + _FinalStage branding(Optional branding); + + _FinalStage branding(EventStreamCloudEventOrgUpdatedPreviousObjectBranding branding); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, _FinalStage { + private String id; + + private Optional branding = Optional.empty(); + + private Optional> metadata = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventOrgUpdatedPreviousObject other) { + name(other.getName()); + id(other.getId()); + displayName(other.getDisplayName()); + metadata(other.getMetadata()); + branding(other.getBranding()); + return this; + } + + /** + *

ID of the organization.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage branding(EventStreamCloudEventOrgUpdatedPreviousObjectBranding branding) { + this.branding = Optional.ofNullable(branding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "branding", nulls = Nulls.SKIP) + public _FinalStage branding(Optional branding) { + this.branding = branding; + return this; + } + + @java.lang.Override + public _FinalStage metadata(Map 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; + } + + /** + *

If set, the name that will be displayed to end-users for this organization in any interaction with them.

+ * @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; + } + + /** + *

If set, the name that will be displayed to end-users for this organization in any interaction with them.

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

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

The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public EventStreamCloudEventOrgUpdatedPreviousObject build() { + return new EventStreamCloudEventOrgUpdatedPreviousObject( + name, id, displayName, metadata, branding, 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/EventStreamCloudEventOrgUpdatedPreviousObjectBranding.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedPreviousObjectBranding.java new file mode 100644 index 000000000..14ea56030 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedPreviousObjectBranding.java @@ -0,0 +1,137 @@ +/** + * 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 = EventStreamCloudEventOrgUpdatedPreviousObjectBranding.Builder.class) +public final class EventStreamCloudEventOrgUpdatedPreviousObjectBranding { + private final Optional logoUrl; + + private final Optional colors; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgUpdatedPreviousObjectBranding( + Optional logoUrl, + Optional colors, + Map additionalProperties) { + this.logoUrl = logoUrl; + this.colors = colors; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of logo to display on login page. + */ + @JsonProperty("logo_url") + public Optional getLogoUrl() { + return logoUrl; + } + + @JsonProperty("colors") + public Optional getColors() { + return colors; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgUpdatedPreviousObjectBranding + && equalTo((EventStreamCloudEventOrgUpdatedPreviousObjectBranding) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgUpdatedPreviousObjectBranding other) { + return logoUrl.equals(other.logoUrl) && colors.equals(other.colors); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.logoUrl, this.colors); + } + + @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 logoUrl = Optional.empty(); + + private Optional colors = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventOrgUpdatedPreviousObjectBranding other) { + logoUrl(other.getLogoUrl()); + colors(other.getColors()); + return this; + } + + /** + *

URL of logo to display on login page.

+ */ + @JsonSetter(value = "logo_url", nulls = Nulls.SKIP) + public Builder logoUrl(Optional logoUrl) { + this.logoUrl = logoUrl; + return this; + } + + public Builder logoUrl(String logoUrl) { + this.logoUrl = Optional.ofNullable(logoUrl); + return this; + } + + @JsonSetter(value = "colors", nulls = Nulls.SKIP) + public Builder colors(Optional colors) { + this.colors = colors; + return this; + } + + public Builder colors(EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors colors) { + this.colors = Optional.ofNullable(colors); + return this; + } + + public EventStreamCloudEventOrgUpdatedPreviousObjectBranding build() { + return new EventStreamCloudEventOrgUpdatedPreviousObjectBranding(logoUrl, colors, 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/EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors.java new file mode 100644 index 000000000..4e863db17 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors.java @@ -0,0 +1,142 @@ +/** + * 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 = EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors.Builder.class) +public final class EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors { + private final Optional primary; + + private final Optional pageBackground; + + private final Map additionalProperties; + + private EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors( + Optional primary, Optional pageBackground, Map additionalProperties) { + this.primary = primary; + this.pageBackground = pageBackground; + this.additionalProperties = additionalProperties; + } + + /** + * @return HEX Color for primary elements. + */ + @JsonProperty("primary") + public Optional getPrimary() { + return primary; + } + + /** + * @return HEX Color for background. + */ + @JsonProperty("page_background") + public Optional getPageBackground() { + return pageBackground; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors + && equalTo((EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors other) { + return primary.equals(other.primary) && pageBackground.equals(other.pageBackground); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.primary, this.pageBackground); + } + + @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 primary = Optional.empty(); + + private Optional pageBackground = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors other) { + primary(other.getPrimary()); + pageBackground(other.getPageBackground()); + return this; + } + + /** + *

HEX Color for primary elements.

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

HEX Color for background.

+ */ + @JsonSetter(value = "page_background", nulls = Nulls.SKIP) + public Builder pageBackground(Optional pageBackground) { + this.pageBackground = pageBackground; + return this; + } + + public Builder pageBackground(String pageBackground) { + this.pageBackground = Optional.ofNullable(pageBackground); + return this; + } + + public EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors build() { + return new EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors( + primary, pageBackground, 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/EventStreamCloudEventUserCreatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedData.java index 99ab1cda8..bdb357ca6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventUserCreatedData { private final EventStreamCloudEventUserCreatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventUserCreatedData( EventStreamCloudEventUserCreatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventUserCreatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventUserCreatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventUserCreatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventUserCreatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventUserCreatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventUserCreatedData build() { - return new EventStreamCloudEventUserCreatedData(object, context, additionalProperties); + return new EventStreamCloudEventUserCreatedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObject.java new file mode 100644 index 000000000..8699ac9c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObject.java @@ -0,0 +1,1013 @@ +/** + * 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.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 = EventStreamCloudEventUserCreatedPreviousObject.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObject { + private final String userId; + + private final Optional email; + + private final Optional emailVerified; + + private final Optional username; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final OffsetDateTime createdAt; + + private final OffsetDateTime updatedAt; + + private final List identities; + + private final Optional> appMetadata; + + private final Optional> userMetadata; + + private final Optional picture; + + private final Optional name; + + private final Optional nickname; + + private final Optional> multifactor; + + private final Optional lastIp; + + private final Optional lastLogin; + + private final Optional loginsCount; + + private final Optional blocked; + + private final Optional givenName; + + private final Optional familyName; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObject( + String userId, + Optional email, + Optional emailVerified, + Optional username, + Optional phoneNumber, + Optional phoneVerified, + OffsetDateTime createdAt, + OffsetDateTime updatedAt, + List identities, + Optional> appMetadata, + Optional> userMetadata, + Optional picture, + Optional name, + Optional nickname, + Optional> multifactor, + Optional lastIp, + Optional lastLogin, + Optional loginsCount, + Optional blocked, + Optional givenName, + Optional familyName, + Map additionalProperties) { + this.userId = userId; + this.email = email; + this.emailVerified = emailVerified; + this.username = username; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.identities = identities; + this.appMetadata = appMetadata; + this.userMetadata = userMetadata; + this.picture = picture; + this.name = name; + this.nickname = nickname; + this.multifactor = multifactor; + this.lastIp = lastIp; + this.lastLogin = lastLogin; + this.loginsCount = loginsCount; + this.blocked = blocked; + this.givenName = givenName; + this.familyName = familyName; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user which can be used when interacting with other APIs. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + /** + * @return Array of user identity objects when accounts are linked. + */ + @JsonProperty("identities") + public List getIdentities() { + return identities; + } + + @JsonProperty("app_metadata") + public Optional> getAppMetadata() { + return appMetadata; + } + + @JsonProperty("user_metadata") + public Optional> getUserMetadata() { + return userMetadata; + } + + /** + * @return URL to picture, photo, or avatar of this user. + */ + @JsonProperty("picture") + public Optional getPicture() { + return picture; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Preferred nickname or alias of this user. + */ + @JsonProperty("nickname") + public Optional getNickname() { + return nickname; + } + + /** + * @return List of multi-factor authentication providers with which this user has enrolled. + */ + @JsonProperty("multifactor") + public Optional> getMultifactor() { + return multifactor; + } + + /** + * @return Last IP address from which this user logged in. + */ + @JsonProperty("last_ip") + public Optional getLastIp() { + return lastIp; + } + + /** + * @return Last date and time this user logged in (ISO_8601 format). + */ + @JsonProperty("last_login") + public Optional getLastLogin() { + return lastLogin; + } + + /** + * @return Total number of logins this user has performed. + */ + @JsonProperty("logins_count") + public Optional getLoginsCount() { + return loginsCount; + } + + /** + * @return Whether this user was blocked by an administrator (true) or is not (false). + */ + @JsonProperty("blocked") + public Optional getBlocked() { + return blocked; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObject + && equalTo((EventStreamCloudEventUserCreatedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObject other) { + return userId.equals(other.userId) + && email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && username.equals(other.username) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified) + && createdAt.equals(other.createdAt) + && updatedAt.equals(other.updatedAt) + && identities.equals(other.identities) + && appMetadata.equals(other.appMetadata) + && userMetadata.equals(other.userMetadata) + && picture.equals(other.picture) + && name.equals(other.name) + && nickname.equals(other.nickname) + && multifactor.equals(other.multifactor) + && lastIp.equals(other.lastIp) + && lastLogin.equals(other.lastLogin) + && loginsCount.equals(other.loginsCount) + && blocked.equals(other.blocked) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.userId, + this.email, + this.emailVerified, + this.username, + this.phoneNumber, + this.phoneVerified, + this.createdAt, + this.updatedAt, + this.identities, + this.appMetadata, + this.userMetadata, + this.picture, + this.name, + this.nickname, + this.multifactor, + this.lastIp, + this.lastLogin, + this.loginsCount, + this.blocked, + this.givenName, + this.familyName); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user which can be used when interacting with other APIs.

+ */ + CreatedAtStage userId(@NotNull String userId); + + Builder from(EventStreamCloudEventUserCreatedPreviousObject other); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

Email address of this user.

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

Whether this email address is verified (true) or unverified (false).

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

Username of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

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

Array of user identity objects when accounts are linked.

+ */ + _FinalStage identities(List identities); + + _FinalStage addIdentities(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem identities); + + _FinalStage addAllIdentities(List identities); + + _FinalStage appMetadata(Optional> appMetadata); + + _FinalStage appMetadata(Map appMetadata); + + _FinalStage userMetadata(Optional> userMetadata); + + _FinalStage userMetadata(Map userMetadata); + + /** + *

URL to picture, photo, or avatar of this user.

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

Name of this user.

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

Preferred nickname or alias of this user.

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

List of multi-factor authentication providers with which this user has enrolled.

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

Last IP address from which this user logged in.

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

Last date and time this user logged in (ISO_8601 format).

+ */ + _FinalStage lastLogin(Optional lastLogin); + + _FinalStage lastLogin(OffsetDateTime lastLogin); + + /** + *

Total number of logins this user has performed.

+ */ + _FinalStage loginsCount(Optional loginsCount); + + _FinalStage loginsCount(Integer loginsCount); + + /** + *

Whether this user was blocked by an administrator (true) or is not (false).

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

+ */ + _FinalStage familyName(Optional familyName); + + _FinalStage familyName(String familyName); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements UserIdStage, CreatedAtStage, UpdatedAtStage, _FinalStage { + private String userId; + + private OffsetDateTime createdAt; + + private OffsetDateTime updatedAt; + + private Optional familyName = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional blocked = Optional.empty(); + + private Optional loginsCount = Optional.empty(); + + private Optional lastLogin = Optional.empty(); + + private Optional lastIp = Optional.empty(); + + private Optional> multifactor = Optional.empty(); + + private Optional nickname = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional picture = Optional.empty(); + + private Optional> userMetadata = Optional.empty(); + + private Optional> appMetadata = Optional.empty(); + + private List identities = new ArrayList<>(); + + private Optional phoneVerified = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional email = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserCreatedPreviousObject other) { + userId(other.getUserId()); + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + username(other.getUsername()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + createdAt(other.getCreatedAt()); + updatedAt(other.getUpdatedAt()); + identities(other.getIdentities()); + appMetadata(other.getAppMetadata()); + userMetadata(other.getUserMetadata()); + picture(other.getPicture()); + name(other.getName()); + nickname(other.getNickname()); + multifactor(other.getMultifactor()); + lastIp(other.getLastIp()); + lastLogin(other.getLastLogin()); + loginsCount(other.getLoginsCount()); + blocked(other.getBlocked()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + return this; + } + + /** + *

ID of the user which can be used when interacting with other APIs.

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

Date and time when this entity was created (ISO_8601 format).

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

Date and time when this entity was last updated/modified (ISO_8601 format).

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

Family name/last name/surname of this user.

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

Family name/last name/surname of this user.

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

Given name/first name/forename of this user.

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

Given name/first name/forename of this user.

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

Whether this user was blocked by an administrator (true) or is not (false).

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

Whether this user was blocked by an administrator (true) or is not (false).

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

Total number of logins this user has performed.

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

Total number of logins this user has performed.

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

Last date and time this user logged in (ISO_8601 format).

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

Last date and time this user logged in (ISO_8601 format).

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

Last IP address from which this user logged in.

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

Last IP address from which this user logged in.

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

List of multi-factor authentication providers with which this user has enrolled.

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

List of multi-factor authentication providers with which this user has enrolled.

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

Preferred nickname or alias of this user.

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

Preferred nickname or alias of this user.

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

Name of this user.

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

Name of this user.

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

URL to picture, photo, or avatar of this user.

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

URL to picture, photo, or avatar of this user.

+ */ + @java.lang.Override + @JsonSetter(value = "picture", nulls = Nulls.SKIP) + public _FinalStage picture(Optional picture) { + this.picture = picture; + return this; + } + + @java.lang.Override + public _FinalStage userMetadata(Map userMetadata) { + this.userMetadata = Optional.ofNullable(userMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "user_metadata", nulls = Nulls.SKIP) + public _FinalStage userMetadata(Optional> userMetadata) { + this.userMetadata = userMetadata; + return this; + } + + @java.lang.Override + public _FinalStage appMetadata(Map appMetadata) { + this.appMetadata = Optional.ofNullable(appMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "app_metadata", nulls = Nulls.SKIP) + public _FinalStage appMetadata(Optional> appMetadata) { + this.appMetadata = appMetadata; + return this; + } + + /** + *

Array of user identity objects when accounts are linked.

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

Array of user identity objects when accounts are linked.

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

Array of user identity objects when accounts are linked.

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

Whether this phone number has been verified (true) or not (false).

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

Whether this phone number has been verified (true) or not (false).

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

Phone number of this user.

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

Phone number of this user.

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

Username of this user.

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

Username of this user.

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

Whether this email address is verified (true) or unverified (false).

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

Whether this email address is verified (true) or unverified (false).

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

Email address of this user.

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

Email address of this user.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObject build() { + return new EventStreamCloudEventUserCreatedPreviousObject( + userId, + email, + emailVerified, + username, + phoneNumber, + phoneVerified, + createdAt, + updatedAt, + identities, + appMetadata, + userMetadata, + picture, + name, + nickname, + multifactor, + lastIp, + lastLogin, + loginsCount, + blocked, + givenName, + familyName, + 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem.java new file mode 100644 index 000000000..60f88e52c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem.java @@ -0,0 +1,175 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem.Deserializer.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem(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((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial) 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem) other); + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem(value, 0); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem(value, 1); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem(value, 2); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem(value, 3); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem(value, 4); + } + + public interface Visitor { + T visit(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom value); + + T visit(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase value); + + T visit(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise value); + + T visit(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless value); + + T visit(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem.class); + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom.java new file mode 100644 index 000000000..93ccd3d21 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom.java @@ -0,0 +1,245 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom { + private final String connection; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom( + String connection, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId userId, + Optional profileData, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom other); + } + + public interface UserIdStage { + ProviderStage userId(@NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId userId; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData.java new file mode 100644 index 000000000..b02d1b660 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData.java @@ -0,0 +1,341 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum.java new file mode 100644 index 000000000..f39166449 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum { + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum CUSTOM = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum(Value.CUSTOM, "custom"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum(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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CUSTOM: + return visitor.visitCustom(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum valueOf(String value) { + switch (value) { + case "custom": + return CUSTOM; + default: + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CUSTOM, + + UNKNOWN + } + + public interface Visitor { + T visitCustom(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId.java new file mode 100644 index 000000000..f3998a624 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId.Deserializer.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId of(String value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId(value, 0); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId of(int value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase.java new file mode 100644 index 000000000..df58a0691 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase.java @@ -0,0 +1,246 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase { + private final String connection; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase( + String connection, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId userId, + Optional profileData, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId userId; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData.java new file mode 100644 index 000000000..b2fc09a85 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum.java new file mode 100644 index 000000000..5a90ceaa3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum.java @@ -0,0 +1,80 @@ +/** + * 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum { + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum AUTH0 = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum(Value.AUTH0, "auth0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum(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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AUTH0: + return visitor.visitAuth0(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum valueOf( + String value) { + switch (value) { + case "auth0": + return AUTH0; + default: + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTH0, + + UNKNOWN + } + + public interface Visitor { + T visitAuth0(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId.java new file mode 100644 index 000000000..641630a53 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId.Deserializer.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId of(String value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId(value, 0); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId of(int value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise.java new file mode 100644 index 000000000..5c25118e3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise.java @@ -0,0 +1,250 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise { + private final String connection; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId userId; + + private final Optional + profileData; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise( + String connection, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId userId, + Optional profileData, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional + getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional + profileData); + + _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId userId; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider; + + private boolean isSocial; + + private Optional + profileData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional + profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData.java new file mode 100644 index 000000000..9e81d1382 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java new file mode 100644 index 000000000..c7ceb25a0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java @@ -0,0 +1,195 @@ +/** + * 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum { + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum AD = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.AD, "ad"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum + PINGFEDERATE = new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.PINGFEDERATE, "pingfederate"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum OKTA = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.OKTA, "okta"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum SAMLP = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum WAAD = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.WAAD, "waad"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum OFFICE365 = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.OFFICE365, "office365"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum SHAREPOINT = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.SHAREPOINT, "sharepoint"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum IP = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.IP, "ip"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum ADFS = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.ADFS, "adfs"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum OIDC = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.OIDC, "oidc"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum GOOGLE_APPS = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum) + 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 PINGFEDERATE: + return visitor.visitPingfederate(); + case OKTA: + return visitor.visitOkta(); + case SAMLP: + return visitor.visitSamlp(); + case WAAD: + return visitor.visitWaad(); + case OFFICE365: + return visitor.visitOffice365(); + case SHAREPOINT: + return visitor.visitSharepoint(); + case IP: + return visitor.visitIp(); + case ADFS: + return visitor.visitAdfs(); + case OIDC: + return visitor.visitOidc(); + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum valueOf( + String value) { + switch (value) { + case "ad": + return AD; + case "pingfederate": + return PINGFEDERATE; + case "okta": + return OKTA; + case "samlp": + return SAMLP; + case "waad": + return WAAD; + case "office365": + return OFFICE365; + case "sharepoint": + return SHAREPOINT; + case "ip": + return IP; + case "adfs": + return ADFS; + case "oidc": + return OIDC; + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + ADFS, + + GOOGLE_APPS, + + IP, + + OFFICE365, + + OIDC, + + OKTA, + + PINGFEDERATE, + + SAMLP, + + SHAREPOINT, + + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitAdfs(); + + T visitGoogleApps(); + + T visitIp(); + + T visitOffice365(); + + T visitOidc(); + + T visitOkta(); + + T visitPingfederate(); + + T visitSamlp(); + + T visitSharepoint(); + + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId.java new file mode 100644 index 000000000..0b35a9ffc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId.java @@ -0,0 +1,98 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId.Deserializer.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId of(String value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId(value, 0); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId of(int value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless.java new file mode 100644 index 000000000..2ec0490d4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless.java @@ -0,0 +1,251 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless { + private final String connection; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId userId; + + private final Optional + profileData; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless( + String connection, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId userId, + Optional profileData, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional + getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional + profileData); + + _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId userId; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider; + + private boolean isSocial; + + private Optional + profileData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional + profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData.java new file mode 100644 index 000000000..2247c4530 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java new file mode 100644 index 000000000..3b22eac9c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java @@ -0,0 +1,94 @@ +/** + * 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum { + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum EMAIL = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum( + Value.EMAIL, "email"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum SMS = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum(Value.SMS, "sms"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum(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 + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case EMAIL: + return visitor.visitEmail(); + case SMS: + return visitor.visitSms(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum valueOf( + String value) { + switch (value) { + case "email": + return EMAIL; + case "sms": + return SMS; + default: + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + EMAIL, + + SMS, + + UNKNOWN + } + + public interface Visitor { + T visitEmail(); + + T visitSms(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId.java new file mode 100644 index 000000000..4079e6276 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId.java @@ -0,0 +1,98 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId.Deserializer.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId of(String value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId(value, 0); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId of(int value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial.java new file mode 100644 index 000000000..b419b00fd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial.java @@ -0,0 +1,245 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial { + private final String connection; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial( + String connection, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId userId, + Optional profileData, + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial other); + } + + public interface UserIdStage { + ProviderStage userId(@NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId userId; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData.java new file mode 100644 index 000000000..f43582972 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData.java @@ -0,0 +1,341 @@ +/** + * 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 = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData.Builder.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData build() { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum.java new file mode 100644 index 000000000..e68122d2e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum.java @@ -0,0 +1,519 @@ +/** + * 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum { + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum BAIDU = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BAIDU, "baidu"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum DWOLLA = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.DWOLLA, "dwolla"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum AUTH0OIDC = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.AUTH0OIDC, "auth0-oidc"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum PLANNINGCENTER = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.PLANNINGCENTER, "planningcenter"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum BITLY = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BITLY, "bitly"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum PAYPAL_SANDBOX = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.PAYPAL_SANDBOX, "paypal-sandbox"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum DROPBOX = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.DROPBOX, "dropbox"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum GOOGLE_OAUTH2 = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.GOOGLE_OAUTH2, "google-oauth2"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum VKONTAKTE = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.VKONTAKTE, "vkontakte"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum WORDPRESS = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.WORDPRESS, "wordpress"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum EXACT = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.EXACT, "exact"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum INSTAGRAM = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.INSTAGRAM, "instagram"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum FITBIT = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.FITBIT, "fitbit"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum + THIRTYSEVENSIGNALS = new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.THIRTYSEVENSIGNALS, "thirtysevensignals"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum EVERNOTE = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.EVERNOTE, "evernote"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum SHOPIFY = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SHOPIFY, "shopify"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum + SALESFORCE_SANDBOX = new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum + SALESFORCE_COMMUNITY = new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE_COMMUNITY, "salesforce-community"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum FACEBOOK = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.FACEBOOK, "facebook"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum DACCOUNT = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.DACCOUNT, "daccount"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum SOUNDCLOUD = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SOUNDCLOUD, "soundcloud"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum APPLE = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.APPLE, "apple"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum + EVERNOTE_SANDBOX = new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.EVERNOTE_SANDBOX, "evernote-sandbox"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum OAUTH2 = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.OAUTH2, "oauth2"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum OAUTH1 = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.OAUTH1, "oauth1"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum AMAZON = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.AMAZON, "amazon"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum LINE = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.LINE, "line"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum BOX = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BOX, "box"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum UNTAPPED = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.UNTAPPED, "untapped"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum GITHUB = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.GITHUB, "github"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum SALESFORCE = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE, "salesforce"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum BITBUCKET = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.BITBUCKET, "bitbucket"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum YAHOO = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.YAHOO, "yahoo"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum WEIBO = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.WEIBO, "weibo"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum PAYPAL = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.PAYPAL, "paypal"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum LINKEDIN = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.LINKEDIN, "linkedin"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum WINDOWSLIVE = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.WINDOWSLIVE, "windowslive"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum YANDEX = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.YANDEX, "yandex"); + + public static final EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum TWITTER = + new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.TWITTER, "twitter"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum(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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BAIDU: + return visitor.visitBaidu(); + case DWOLLA: + return visitor.visitDwolla(); + case AUTH0OIDC: + return visitor.visitAuth0Oidc(); + case PLANNINGCENTER: + return visitor.visitPlanningcenter(); + case BITLY: + return visitor.visitBitly(); + case PAYPAL_SANDBOX: + return visitor.visitPaypalSandbox(); + case DROPBOX: + return visitor.visitDropbox(); + case GOOGLE_OAUTH2: + return visitor.visitGoogleOauth2(); + case VKONTAKTE: + return visitor.visitVkontakte(); + case WORDPRESS: + return visitor.visitWordpress(); + case EXACT: + return visitor.visitExact(); + case INSTAGRAM: + return visitor.visitInstagram(); + case FITBIT: + return visitor.visitFitbit(); + case THIRTYSEVENSIGNALS: + return visitor.visitThirtysevensignals(); + case EVERNOTE: + return visitor.visitEvernote(); + case SHOPIFY: + return visitor.visitShopify(); + case SALESFORCE_SANDBOX: + return visitor.visitSalesforceSandbox(); + case SALESFORCE_COMMUNITY: + return visitor.visitSalesforceCommunity(); + case FACEBOOK: + return visitor.visitFacebook(); + case DACCOUNT: + return visitor.visitDaccount(); + case SOUNDCLOUD: + return visitor.visitSoundcloud(); + case APPLE: + return visitor.visitApple(); + case EVERNOTE_SANDBOX: + return visitor.visitEvernoteSandbox(); + case OAUTH2: + return visitor.visitOauth2(); + case OAUTH1: + return visitor.visitOauth1(); + case AMAZON: + return visitor.visitAmazon(); + case LINE: + return visitor.visitLine(); + case BOX: + return visitor.visitBox(); + case UNTAPPED: + return visitor.visitUntapped(); + case GITHUB: + return visitor.visitGithub(); + case SALESFORCE: + return visitor.visitSalesforce(); + case BITBUCKET: + return visitor.visitBitbucket(); + case YAHOO: + return visitor.visitYahoo(); + case WEIBO: + return visitor.visitWeibo(); + case PAYPAL: + return visitor.visitPaypal(); + case LINKEDIN: + return visitor.visitLinkedin(); + case WINDOWSLIVE: + return visitor.visitWindowslive(); + case YANDEX: + return visitor.visitYandex(); + case TWITTER: + return visitor.visitTwitter(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum valueOf(String value) { + switch (value) { + case "baidu": + return BAIDU; + case "dwolla": + return DWOLLA; + case "auth0-oidc": + return AUTH0OIDC; + case "planningcenter": + return PLANNINGCENTER; + case "bitly": + return BITLY; + case "paypal-sandbox": + return PAYPAL_SANDBOX; + case "dropbox": + return DROPBOX; + case "google-oauth2": + return GOOGLE_OAUTH2; + case "vkontakte": + return VKONTAKTE; + case "wordpress": + return WORDPRESS; + case "exact": + return EXACT; + case "instagram": + return INSTAGRAM; + case "fitbit": + return FITBIT; + case "thirtysevensignals": + return THIRTYSEVENSIGNALS; + case "evernote": + return EVERNOTE; + case "shopify": + return SHOPIFY; + case "salesforce-sandbox": + return SALESFORCE_SANDBOX; + case "salesforce-community": + return SALESFORCE_COMMUNITY; + case "facebook": + return FACEBOOK; + case "daccount": + return DACCOUNT; + case "soundcloud": + return SOUNDCLOUD; + case "apple": + return APPLE; + case "evernote-sandbox": + return EVERNOTE_SANDBOX; + case "oauth2": + return OAUTH2; + case "oauth1": + return OAUTH1; + case "amazon": + return AMAZON; + case "line": + return LINE; + case "box": + return BOX; + case "untapped": + return UNTAPPED; + case "github": + return GITHUB; + case "salesforce": + return SALESFORCE; + case "bitbucket": + return BITBUCKET; + case "yahoo": + return YAHOO; + case "weibo": + return WEIBO; + case "paypal": + return PAYPAL; + case "linkedin": + return LINKEDIN; + case "windowslive": + return WINDOWSLIVE; + case "yandex": + return YANDEX; + case "twitter": + return TWITTER; + default: + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AMAZON, + + APPLE, + + DROPBOX, + + BITBUCKET, + + AUTH0OIDC, + + BAIDU, + + BITLY, + + BOX, + + DACCOUNT, + + DWOLLA, + + EVERNOTE_SANDBOX, + + EVERNOTE, + + EXACT, + + FACEBOOK, + + FITBIT, + + GITHUB, + + GOOGLE_OAUTH2, + + INSTAGRAM, + + LINE, + + LINKEDIN, + + OAUTH1, + + OAUTH2, + + PAYPAL, + + PAYPAL_SANDBOX, + + PLANNINGCENTER, + + SALESFORCE_COMMUNITY, + + SALESFORCE_SANDBOX, + + SALESFORCE, + + SHOPIFY, + + SOUNDCLOUD, + + THIRTYSEVENSIGNALS, + + TWITTER, + + UNTAPPED, + + VKONTAKTE, + + WEIBO, + + WINDOWSLIVE, + + WORDPRESS, + + YAHOO, + + YANDEX, + + UNKNOWN + } + + public interface Visitor { + T visitAmazon(); + + T visitApple(); + + T visitDropbox(); + + T visitBitbucket(); + + T visitAuth0Oidc(); + + T visitBaidu(); + + T visitBitly(); + + T visitBox(); + + T visitDaccount(); + + T visitDwolla(); + + T visitEvernoteSandbox(); + + T visitEvernote(); + + T visitExact(); + + T visitFacebook(); + + T visitFitbit(); + + T visitGithub(); + + T visitGoogleOauth2(); + + T visitInstagram(); + + T visitLine(); + + T visitLinkedin(); + + T visitOauth1(); + + T visitOauth2(); + + T visitPaypal(); + + T visitPaypalSandbox(); + + T visitPlanningcenter(); + + T visitSalesforceCommunity(); + + T visitSalesforceSandbox(); + + T visitSalesforce(); + + T visitShopify(); + + T visitSoundcloud(); + + T visitThirtysevensignals(); + + T visitTwitter(); + + T visitUntapped(); + + T visitVkontakte(); + + T visitWeibo(); + + T visitWindowslive(); + + T visitWordpress(); + + T visitYahoo(); + + T visitYandex(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId.java new file mode 100644 index 000000000..4bd10dc04 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId.Deserializer.class) +public final class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId + && equalTo((EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId 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 EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId of(String value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId(value, 0); + } + + public static EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId of(int value) { + return new EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedData.java index 28127ece6..e65550536 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventUserDeletedData { private final EventStreamCloudEventUserDeletedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventUserDeletedData( EventStreamCloudEventUserDeletedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventUserDeletedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventUserDeletedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventUserDeletedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventUserDeletedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventUserDeletedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventUserDeletedData build() { - return new EventStreamCloudEventUserDeletedData(object, context, additionalProperties); + return new EventStreamCloudEventUserDeletedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObject.java new file mode 100644 index 000000000..ffebf536b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObject.java @@ -0,0 +1,1013 @@ +/** + * 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.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 = EventStreamCloudEventUserDeletedPreviousObject.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObject { + private final String userId; + + private final Optional email; + + private final Optional emailVerified; + + private final Optional username; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final OffsetDateTime createdAt; + + private final OffsetDateTime updatedAt; + + private final List identities; + + private final Optional> appMetadata; + + private final Optional> userMetadata; + + private final Optional picture; + + private final Optional name; + + private final Optional nickname; + + private final Optional> multifactor; + + private final Optional lastIp; + + private final Optional lastLogin; + + private final Optional loginsCount; + + private final Optional blocked; + + private final Optional givenName; + + private final Optional familyName; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObject( + String userId, + Optional email, + Optional emailVerified, + Optional username, + Optional phoneNumber, + Optional phoneVerified, + OffsetDateTime createdAt, + OffsetDateTime updatedAt, + List identities, + Optional> appMetadata, + Optional> userMetadata, + Optional picture, + Optional name, + Optional nickname, + Optional> multifactor, + Optional lastIp, + Optional lastLogin, + Optional loginsCount, + Optional blocked, + Optional givenName, + Optional familyName, + Map additionalProperties) { + this.userId = userId; + this.email = email; + this.emailVerified = emailVerified; + this.username = username; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.identities = identities; + this.appMetadata = appMetadata; + this.userMetadata = userMetadata; + this.picture = picture; + this.name = name; + this.nickname = nickname; + this.multifactor = multifactor; + this.lastIp = lastIp; + this.lastLogin = lastLogin; + this.loginsCount = loginsCount; + this.blocked = blocked; + this.givenName = givenName; + this.familyName = familyName; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user which can be used when interacting with other APIs. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + /** + * @return Array of user identity objects when accounts are linked. + */ + @JsonProperty("identities") + public List getIdentities() { + return identities; + } + + @JsonProperty("app_metadata") + public Optional> getAppMetadata() { + return appMetadata; + } + + @JsonProperty("user_metadata") + public Optional> getUserMetadata() { + return userMetadata; + } + + /** + * @return URL to picture, photo, or avatar of this user. + */ + @JsonProperty("picture") + public Optional getPicture() { + return picture; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Preferred nickname or alias of this user. + */ + @JsonProperty("nickname") + public Optional getNickname() { + return nickname; + } + + /** + * @return List of multi-factor authentication providers with which this user has enrolled. + */ + @JsonProperty("multifactor") + public Optional> getMultifactor() { + return multifactor; + } + + /** + * @return Last IP address from which this user logged in. + */ + @JsonProperty("last_ip") + public Optional getLastIp() { + return lastIp; + } + + /** + * @return Last date and time this user logged in (ISO_8601 format). + */ + @JsonProperty("last_login") + public Optional getLastLogin() { + return lastLogin; + } + + /** + * @return Total number of logins this user has performed. + */ + @JsonProperty("logins_count") + public Optional getLoginsCount() { + return loginsCount; + } + + /** + * @return Whether this user was blocked by an administrator (true) or is not (false). + */ + @JsonProperty("blocked") + public Optional getBlocked() { + return blocked; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObject + && equalTo((EventStreamCloudEventUserDeletedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObject other) { + return userId.equals(other.userId) + && email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && username.equals(other.username) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified) + && createdAt.equals(other.createdAt) + && updatedAt.equals(other.updatedAt) + && identities.equals(other.identities) + && appMetadata.equals(other.appMetadata) + && userMetadata.equals(other.userMetadata) + && picture.equals(other.picture) + && name.equals(other.name) + && nickname.equals(other.nickname) + && multifactor.equals(other.multifactor) + && lastIp.equals(other.lastIp) + && lastLogin.equals(other.lastLogin) + && loginsCount.equals(other.loginsCount) + && blocked.equals(other.blocked) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.userId, + this.email, + this.emailVerified, + this.username, + this.phoneNumber, + this.phoneVerified, + this.createdAt, + this.updatedAt, + this.identities, + this.appMetadata, + this.userMetadata, + this.picture, + this.name, + this.nickname, + this.multifactor, + this.lastIp, + this.lastLogin, + this.loginsCount, + this.blocked, + this.givenName, + this.familyName); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user which can be used when interacting with other APIs.

+ */ + CreatedAtStage userId(@NotNull String userId); + + Builder from(EventStreamCloudEventUserDeletedPreviousObject other); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

Email address of this user.

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

Whether this email address is verified (true) or unverified (false).

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

Username of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

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

Array of user identity objects when accounts are linked.

+ */ + _FinalStage identities(List identities); + + _FinalStage addIdentities(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem identities); + + _FinalStage addAllIdentities(List identities); + + _FinalStage appMetadata(Optional> appMetadata); + + _FinalStage appMetadata(Map appMetadata); + + _FinalStage userMetadata(Optional> userMetadata); + + _FinalStage userMetadata(Map userMetadata); + + /** + *

URL to picture, photo, or avatar of this user.

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

Name of this user.

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

Preferred nickname or alias of this user.

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

List of multi-factor authentication providers with which this user has enrolled.

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

Last IP address from which this user logged in.

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

Last date and time this user logged in (ISO_8601 format).

+ */ + _FinalStage lastLogin(Optional lastLogin); + + _FinalStage lastLogin(OffsetDateTime lastLogin); + + /** + *

Total number of logins this user has performed.

+ */ + _FinalStage loginsCount(Optional loginsCount); + + _FinalStage loginsCount(Integer loginsCount); + + /** + *

Whether this user was blocked by an administrator (true) or is not (false).

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

+ */ + _FinalStage familyName(Optional familyName); + + _FinalStage familyName(String familyName); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements UserIdStage, CreatedAtStage, UpdatedAtStage, _FinalStage { + private String userId; + + private OffsetDateTime createdAt; + + private OffsetDateTime updatedAt; + + private Optional familyName = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional blocked = Optional.empty(); + + private Optional loginsCount = Optional.empty(); + + private Optional lastLogin = Optional.empty(); + + private Optional lastIp = Optional.empty(); + + private Optional> multifactor = Optional.empty(); + + private Optional nickname = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional picture = Optional.empty(); + + private Optional> userMetadata = Optional.empty(); + + private Optional> appMetadata = Optional.empty(); + + private List identities = new ArrayList<>(); + + private Optional phoneVerified = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional email = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserDeletedPreviousObject other) { + userId(other.getUserId()); + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + username(other.getUsername()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + createdAt(other.getCreatedAt()); + updatedAt(other.getUpdatedAt()); + identities(other.getIdentities()); + appMetadata(other.getAppMetadata()); + userMetadata(other.getUserMetadata()); + picture(other.getPicture()); + name(other.getName()); + nickname(other.getNickname()); + multifactor(other.getMultifactor()); + lastIp(other.getLastIp()); + lastLogin(other.getLastLogin()); + loginsCount(other.getLoginsCount()); + blocked(other.getBlocked()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + return this; + } + + /** + *

ID of the user which can be used when interacting with other APIs.

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

Date and time when this entity was created (ISO_8601 format).

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

Date and time when this entity was last updated/modified (ISO_8601 format).

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

Family name/last name/surname of this user.

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

Family name/last name/surname of this user.

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

Given name/first name/forename of this user.

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

Given name/first name/forename of this user.

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

Whether this user was blocked by an administrator (true) or is not (false).

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

Whether this user was blocked by an administrator (true) or is not (false).

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

Total number of logins this user has performed.

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

Total number of logins this user has performed.

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

Last date and time this user logged in (ISO_8601 format).

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

Last date and time this user logged in (ISO_8601 format).

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

Last IP address from which this user logged in.

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

Last IP address from which this user logged in.

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

List of multi-factor authentication providers with which this user has enrolled.

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

List of multi-factor authentication providers with which this user has enrolled.

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

Preferred nickname or alias of this user.

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

Preferred nickname or alias of this user.

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

Name of this user.

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

Name of this user.

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

URL to picture, photo, or avatar of this user.

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

URL to picture, photo, or avatar of this user.

+ */ + @java.lang.Override + @JsonSetter(value = "picture", nulls = Nulls.SKIP) + public _FinalStage picture(Optional picture) { + this.picture = picture; + return this; + } + + @java.lang.Override + public _FinalStage userMetadata(Map userMetadata) { + this.userMetadata = Optional.ofNullable(userMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "user_metadata", nulls = Nulls.SKIP) + public _FinalStage userMetadata(Optional> userMetadata) { + this.userMetadata = userMetadata; + return this; + } + + @java.lang.Override + public _FinalStage appMetadata(Map appMetadata) { + this.appMetadata = Optional.ofNullable(appMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "app_metadata", nulls = Nulls.SKIP) + public _FinalStage appMetadata(Optional> appMetadata) { + this.appMetadata = appMetadata; + return this; + } + + /** + *

Array of user identity objects when accounts are linked.

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

Array of user identity objects when accounts are linked.

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

Array of user identity objects when accounts are linked.

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

Whether this phone number has been verified (true) or not (false).

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

Whether this phone number has been verified (true) or not (false).

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

Phone number of this user.

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

Phone number of this user.

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

Username of this user.

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

Username of this user.

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

Whether this email address is verified (true) or unverified (false).

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

Whether this email address is verified (true) or unverified (false).

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

Email address of this user.

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

Email address of this user.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObject build() { + return new EventStreamCloudEventUserDeletedPreviousObject( + userId, + email, + emailVerified, + username, + phoneNumber, + phoneVerified, + createdAt, + updatedAt, + identities, + appMetadata, + userMetadata, + picture, + name, + nickname, + multifactor, + lastIp, + lastLogin, + loginsCount, + blocked, + givenName, + familyName, + 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem.java new file mode 100644 index 000000000..f73ee4586 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem.java @@ -0,0 +1,175 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem.Deserializer.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem(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((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial) 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem) other); + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem(value, 0); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem(value, 1); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem(value, 2); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem(value, 3); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem(value, 4); + } + + public interface Visitor { + T visit(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom value); + + T visit(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase value); + + T visit(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise value); + + T visit(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless value); + + T visit(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem.class); + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom.java new file mode 100644 index 000000000..7c927ced8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom.java @@ -0,0 +1,245 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom { + private final String connection; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom( + String connection, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId userId, + Optional profileData, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom other); + } + + public interface UserIdStage { + ProviderStage userId(@NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId userId; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData.java new file mode 100644 index 000000000..76410844c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData.java @@ -0,0 +1,341 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum.java new file mode 100644 index 000000000..710944883 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum { + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum CUSTOM = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum(Value.CUSTOM, "custom"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum(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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CUSTOM: + return visitor.visitCustom(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum valueOf(String value) { + switch (value) { + case "custom": + return CUSTOM; + default: + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CUSTOM, + + UNKNOWN + } + + public interface Visitor { + T visitCustom(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId.java new file mode 100644 index 000000000..c9d49f23c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId.Deserializer.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId of(String value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId(value, 0); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId of(int value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase.java new file mode 100644 index 000000000..c35032e9e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase.java @@ -0,0 +1,246 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase { + private final String connection; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase( + String connection, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId userId, + Optional profileData, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId userId; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData.java new file mode 100644 index 000000000..7eb74adae --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum.java new file mode 100644 index 000000000..77d5cd02c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum.java @@ -0,0 +1,80 @@ +/** + * 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum { + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum AUTH0 = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum(Value.AUTH0, "auth0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum(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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AUTH0: + return visitor.visitAuth0(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum valueOf( + String value) { + switch (value) { + case "auth0": + return AUTH0; + default: + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTH0, + + UNKNOWN + } + + public interface Visitor { + T visitAuth0(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId.java new file mode 100644 index 000000000..04253211b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId.Deserializer.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId of(String value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId(value, 0); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId of(int value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise.java new file mode 100644 index 000000000..c6b3d7e38 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise.java @@ -0,0 +1,250 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise { + private final String connection; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId userId; + + private final Optional + profileData; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise( + String connection, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId userId, + Optional profileData, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional + getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional + profileData); + + _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId userId; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider; + + private boolean isSocial; + + private Optional + profileData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional + profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData.java new file mode 100644 index 000000000..3843adae8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java new file mode 100644 index 000000000..e1a95da6a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java @@ -0,0 +1,195 @@ +/** + * 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum { + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum AD = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.AD, "ad"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum + PINGFEDERATE = new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.PINGFEDERATE, "pingfederate"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum OKTA = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.OKTA, "okta"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum SAMLP = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum WAAD = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.WAAD, "waad"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum OFFICE365 = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.OFFICE365, "office365"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum SHAREPOINT = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.SHAREPOINT, "sharepoint"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum IP = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.IP, "ip"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum ADFS = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.ADFS, "adfs"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum OIDC = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.OIDC, "oidc"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum GOOGLE_APPS = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum(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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum) + 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 PINGFEDERATE: + return visitor.visitPingfederate(); + case OKTA: + return visitor.visitOkta(); + case SAMLP: + return visitor.visitSamlp(); + case WAAD: + return visitor.visitWaad(); + case OFFICE365: + return visitor.visitOffice365(); + case SHAREPOINT: + return visitor.visitSharepoint(); + case IP: + return visitor.visitIp(); + case ADFS: + return visitor.visitAdfs(); + case OIDC: + return visitor.visitOidc(); + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum valueOf( + String value) { + switch (value) { + case "ad": + return AD; + case "pingfederate": + return PINGFEDERATE; + case "okta": + return OKTA; + case "samlp": + return SAMLP; + case "waad": + return WAAD; + case "office365": + return OFFICE365; + case "sharepoint": + return SHAREPOINT; + case "ip": + return IP; + case "adfs": + return ADFS; + case "oidc": + return OIDC; + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + ADFS, + + GOOGLE_APPS, + + IP, + + OFFICE365, + + OIDC, + + OKTA, + + PINGFEDERATE, + + SAMLP, + + SHAREPOINT, + + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitAdfs(); + + T visitGoogleApps(); + + T visitIp(); + + T visitOffice365(); + + T visitOidc(); + + T visitOkta(); + + T visitPingfederate(); + + T visitSamlp(); + + T visitSharepoint(); + + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId.java new file mode 100644 index 000000000..b5a59621f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId.java @@ -0,0 +1,98 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId.Deserializer.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId of(String value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId(value, 0); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId of(int value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless.java new file mode 100644 index 000000000..70043d0b2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless.java @@ -0,0 +1,251 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless { + private final String connection; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId userId; + + private final Optional + profileData; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless( + String connection, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId userId, + Optional profileData, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional + getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional + profileData); + + _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId userId; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider; + + private boolean isSocial; + + private Optional + profileData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional + profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData.java new file mode 100644 index 000000000..7ef28d0e4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java new file mode 100644 index 000000000..7024d00b3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java @@ -0,0 +1,94 @@ +/** + * 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum { + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum EMAIL = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum( + Value.EMAIL, "email"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum SMS = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum(Value.SMS, "sms"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum(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 + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case EMAIL: + return visitor.visitEmail(); + case SMS: + return visitor.visitSms(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum valueOf( + String value) { + switch (value) { + case "email": + return EMAIL; + case "sms": + return SMS; + default: + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + EMAIL, + + SMS, + + UNKNOWN + } + + public interface Visitor { + T visitEmail(); + + T visitSms(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId.java new file mode 100644 index 000000000..31fa2302b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId.java @@ -0,0 +1,98 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId.Deserializer.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId of(String value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId(value, 0); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId of(int value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial.java new file mode 100644 index 000000000..4539da370 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial.java @@ -0,0 +1,245 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial { + private final String connection; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial( + String connection, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId userId, + Optional profileData, + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial other); + } + + public interface UserIdStage { + ProviderStage userId(@NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId userId; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData.java new file mode 100644 index 000000000..93300405d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData.java @@ -0,0 +1,341 @@ +/** + * 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 = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData.Builder.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData build() { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum.java new file mode 100644 index 000000000..0624bc2a1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum.java @@ -0,0 +1,519 @@ +/** + * 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum { + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum BAIDU = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BAIDU, "baidu"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum DWOLLA = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.DWOLLA, "dwolla"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum AUTH0OIDC = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.AUTH0OIDC, "auth0-oidc"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum PLANNINGCENTER = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.PLANNINGCENTER, "planningcenter"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum BITLY = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BITLY, "bitly"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum PAYPAL_SANDBOX = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.PAYPAL_SANDBOX, "paypal-sandbox"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum DROPBOX = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.DROPBOX, "dropbox"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum GOOGLE_OAUTH2 = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.GOOGLE_OAUTH2, "google-oauth2"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum VKONTAKTE = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.VKONTAKTE, "vkontakte"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum WORDPRESS = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.WORDPRESS, "wordpress"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum EXACT = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.EXACT, "exact"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum INSTAGRAM = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.INSTAGRAM, "instagram"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum FITBIT = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.FITBIT, "fitbit"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum + THIRTYSEVENSIGNALS = new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.THIRTYSEVENSIGNALS, "thirtysevensignals"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum EVERNOTE = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.EVERNOTE, "evernote"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum SHOPIFY = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SHOPIFY, "shopify"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum + SALESFORCE_SANDBOX = new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum + SALESFORCE_COMMUNITY = new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE_COMMUNITY, "salesforce-community"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum FACEBOOK = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.FACEBOOK, "facebook"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum DACCOUNT = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.DACCOUNT, "daccount"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum SOUNDCLOUD = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SOUNDCLOUD, "soundcloud"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum APPLE = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.APPLE, "apple"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum + EVERNOTE_SANDBOX = new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.EVERNOTE_SANDBOX, "evernote-sandbox"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum OAUTH2 = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.OAUTH2, "oauth2"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum OAUTH1 = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.OAUTH1, "oauth1"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum AMAZON = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.AMAZON, "amazon"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum LINE = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.LINE, "line"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum BOX = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BOX, "box"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum UNTAPPED = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.UNTAPPED, "untapped"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum GITHUB = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.GITHUB, "github"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum SALESFORCE = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE, "salesforce"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum BITBUCKET = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.BITBUCKET, "bitbucket"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum YAHOO = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.YAHOO, "yahoo"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum WEIBO = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.WEIBO, "weibo"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum PAYPAL = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.PAYPAL, "paypal"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum LINKEDIN = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.LINKEDIN, "linkedin"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum WINDOWSLIVE = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.WINDOWSLIVE, "windowslive"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum YANDEX = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(Value.YANDEX, "yandex"); + + public static final EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum TWITTER = + new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.TWITTER, "twitter"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum(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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BAIDU: + return visitor.visitBaidu(); + case DWOLLA: + return visitor.visitDwolla(); + case AUTH0OIDC: + return visitor.visitAuth0Oidc(); + case PLANNINGCENTER: + return visitor.visitPlanningcenter(); + case BITLY: + return visitor.visitBitly(); + case PAYPAL_SANDBOX: + return visitor.visitPaypalSandbox(); + case DROPBOX: + return visitor.visitDropbox(); + case GOOGLE_OAUTH2: + return visitor.visitGoogleOauth2(); + case VKONTAKTE: + return visitor.visitVkontakte(); + case WORDPRESS: + return visitor.visitWordpress(); + case EXACT: + return visitor.visitExact(); + case INSTAGRAM: + return visitor.visitInstagram(); + case FITBIT: + return visitor.visitFitbit(); + case THIRTYSEVENSIGNALS: + return visitor.visitThirtysevensignals(); + case EVERNOTE: + return visitor.visitEvernote(); + case SHOPIFY: + return visitor.visitShopify(); + case SALESFORCE_SANDBOX: + return visitor.visitSalesforceSandbox(); + case SALESFORCE_COMMUNITY: + return visitor.visitSalesforceCommunity(); + case FACEBOOK: + return visitor.visitFacebook(); + case DACCOUNT: + return visitor.visitDaccount(); + case SOUNDCLOUD: + return visitor.visitSoundcloud(); + case APPLE: + return visitor.visitApple(); + case EVERNOTE_SANDBOX: + return visitor.visitEvernoteSandbox(); + case OAUTH2: + return visitor.visitOauth2(); + case OAUTH1: + return visitor.visitOauth1(); + case AMAZON: + return visitor.visitAmazon(); + case LINE: + return visitor.visitLine(); + case BOX: + return visitor.visitBox(); + case UNTAPPED: + return visitor.visitUntapped(); + case GITHUB: + return visitor.visitGithub(); + case SALESFORCE: + return visitor.visitSalesforce(); + case BITBUCKET: + return visitor.visitBitbucket(); + case YAHOO: + return visitor.visitYahoo(); + case WEIBO: + return visitor.visitWeibo(); + case PAYPAL: + return visitor.visitPaypal(); + case LINKEDIN: + return visitor.visitLinkedin(); + case WINDOWSLIVE: + return visitor.visitWindowslive(); + case YANDEX: + return visitor.visitYandex(); + case TWITTER: + return visitor.visitTwitter(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum valueOf(String value) { + switch (value) { + case "baidu": + return BAIDU; + case "dwolla": + return DWOLLA; + case "auth0-oidc": + return AUTH0OIDC; + case "planningcenter": + return PLANNINGCENTER; + case "bitly": + return BITLY; + case "paypal-sandbox": + return PAYPAL_SANDBOX; + case "dropbox": + return DROPBOX; + case "google-oauth2": + return GOOGLE_OAUTH2; + case "vkontakte": + return VKONTAKTE; + case "wordpress": + return WORDPRESS; + case "exact": + return EXACT; + case "instagram": + return INSTAGRAM; + case "fitbit": + return FITBIT; + case "thirtysevensignals": + return THIRTYSEVENSIGNALS; + case "evernote": + return EVERNOTE; + case "shopify": + return SHOPIFY; + case "salesforce-sandbox": + return SALESFORCE_SANDBOX; + case "salesforce-community": + return SALESFORCE_COMMUNITY; + case "facebook": + return FACEBOOK; + case "daccount": + return DACCOUNT; + case "soundcloud": + return SOUNDCLOUD; + case "apple": + return APPLE; + case "evernote-sandbox": + return EVERNOTE_SANDBOX; + case "oauth2": + return OAUTH2; + case "oauth1": + return OAUTH1; + case "amazon": + return AMAZON; + case "line": + return LINE; + case "box": + return BOX; + case "untapped": + return UNTAPPED; + case "github": + return GITHUB; + case "salesforce": + return SALESFORCE; + case "bitbucket": + return BITBUCKET; + case "yahoo": + return YAHOO; + case "weibo": + return WEIBO; + case "paypal": + return PAYPAL; + case "linkedin": + return LINKEDIN; + case "windowslive": + return WINDOWSLIVE; + case "yandex": + return YANDEX; + case "twitter": + return TWITTER; + default: + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AMAZON, + + APPLE, + + DROPBOX, + + BITBUCKET, + + AUTH0OIDC, + + BAIDU, + + BITLY, + + BOX, + + DACCOUNT, + + DWOLLA, + + EVERNOTE_SANDBOX, + + EVERNOTE, + + EXACT, + + FACEBOOK, + + FITBIT, + + GITHUB, + + GOOGLE_OAUTH2, + + INSTAGRAM, + + LINE, + + LINKEDIN, + + OAUTH1, + + OAUTH2, + + PAYPAL, + + PAYPAL_SANDBOX, + + PLANNINGCENTER, + + SALESFORCE_COMMUNITY, + + SALESFORCE_SANDBOX, + + SALESFORCE, + + SHOPIFY, + + SOUNDCLOUD, + + THIRTYSEVENSIGNALS, + + TWITTER, + + UNTAPPED, + + VKONTAKTE, + + WEIBO, + + WINDOWSLIVE, + + WORDPRESS, + + YAHOO, + + YANDEX, + + UNKNOWN + } + + public interface Visitor { + T visitAmazon(); + + T visitApple(); + + T visitDropbox(); + + T visitBitbucket(); + + T visitAuth0Oidc(); + + T visitBaidu(); + + T visitBitly(); + + T visitBox(); + + T visitDaccount(); + + T visitDwolla(); + + T visitEvernoteSandbox(); + + T visitEvernote(); + + T visitExact(); + + T visitFacebook(); + + T visitFitbit(); + + T visitGithub(); + + T visitGoogleOauth2(); + + T visitInstagram(); + + T visitLine(); + + T visitLinkedin(); + + T visitOauth1(); + + T visitOauth2(); + + T visitPaypal(); + + T visitPaypalSandbox(); + + T visitPlanningcenter(); + + T visitSalesforceCommunity(); + + T visitSalesforceSandbox(); + + T visitSalesforce(); + + T visitShopify(); + + T visitSoundcloud(); + + T visitThirtysevensignals(); + + T visitTwitter(); + + T visitUntapped(); + + T visitVkontakte(); + + T visitWeibo(); + + T visitWindowslive(); + + T visitWordpress(); + + T visitYahoo(); + + T visitYandex(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId.java new file mode 100644 index 000000000..938638f7f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId.Deserializer.class) +public final class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId + && equalTo((EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId 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 EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId of(String value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId(value, 0); + } + + public static EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId of(int value) { + return new EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedData.java index 652ed0ef9..e65231475 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedData.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedData.java @@ -23,15 +23,19 @@ public final class EventStreamCloudEventUserUpdatedData { private final EventStreamCloudEventUserUpdatedObject object; + private final Optional previousObject; + private final Optional context; private final Map additionalProperties; private EventStreamCloudEventUserUpdatedData( EventStreamCloudEventUserUpdatedObject object, + Optional previousObject, Optional context, Map additionalProperties) { this.object = object; + this.previousObject = previousObject; this.context = context; this.additionalProperties = additionalProperties; } @@ -41,6 +45,11 @@ public EventStreamCloudEventUserUpdatedObject getObject() { return object; } + @JsonProperty("previous_object") + public Optional getPreviousObject() { + return previousObject; + } + @JsonProperty("context") public Optional getContext() { return context; @@ -59,12 +68,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(EventStreamCloudEventUserUpdatedData other) { - return object.equals(other.object) && context.equals(other.context); + return object.equals(other.object) + && previousObject.equals(other.previousObject) + && context.equals(other.context); } @java.lang.Override public int hashCode() { - return Objects.hash(this.object, this.context); + return Objects.hash(this.object, this.previousObject, this.context); } @java.lang.Override @@ -89,6 +100,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage previousObject(Optional previousObject); + + _FinalStage previousObject(EventStreamCloudEventUserUpdatedPreviousObject previousObject); + _FinalStage context(Optional context); _FinalStage context(EventStreamCloudEventContext context); @@ -100,6 +115,8 @@ public static final class Builder implements ObjectStage, _FinalStage { private Optional context = Optional.empty(); + private Optional previousObject = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -108,6 +125,7 @@ private Builder() {} @java.lang.Override public Builder from(EventStreamCloudEventUserUpdatedData other) { object(other.getObject()); + previousObject(other.getPreviousObject()); context(other.getContext()); return this; } @@ -132,9 +150,22 @@ public _FinalStage context(Optional context) { return this; } + @java.lang.Override + public _FinalStage previousObject(EventStreamCloudEventUserUpdatedPreviousObject previousObject) { + this.previousObject = Optional.ofNullable(previousObject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "previous_object", nulls = Nulls.SKIP) + public _FinalStage previousObject(Optional previousObject) { + this.previousObject = previousObject; + return this; + } + @java.lang.Override public EventStreamCloudEventUserUpdatedData build() { - return new EventStreamCloudEventUserUpdatedData(object, context, additionalProperties); + return new EventStreamCloudEventUserUpdatedData(object, previousObject, context, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObject.java new file mode 100644 index 000000000..404ca8957 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObject.java @@ -0,0 +1,1013 @@ +/** + * 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.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 = EventStreamCloudEventUserUpdatedPreviousObject.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObject { + private final String userId; + + private final Optional email; + + private final Optional emailVerified; + + private final Optional username; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final OffsetDateTime createdAt; + + private final OffsetDateTime updatedAt; + + private final List identities; + + private final Optional> appMetadata; + + private final Optional> userMetadata; + + private final Optional picture; + + private final Optional name; + + private final Optional nickname; + + private final Optional> multifactor; + + private final Optional lastIp; + + private final Optional lastLogin; + + private final Optional loginsCount; + + private final Optional blocked; + + private final Optional givenName; + + private final Optional familyName; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObject( + String userId, + Optional email, + Optional emailVerified, + Optional username, + Optional phoneNumber, + Optional phoneVerified, + OffsetDateTime createdAt, + OffsetDateTime updatedAt, + List identities, + Optional> appMetadata, + Optional> userMetadata, + Optional picture, + Optional name, + Optional nickname, + Optional> multifactor, + Optional lastIp, + Optional lastLogin, + Optional loginsCount, + Optional blocked, + Optional givenName, + Optional familyName, + Map additionalProperties) { + this.userId = userId; + this.email = email; + this.emailVerified = emailVerified; + this.username = username; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.identities = identities; + this.appMetadata = appMetadata; + this.userMetadata = userMetadata; + this.picture = picture; + this.name = name; + this.nickname = nickname; + this.multifactor = multifactor; + this.lastIp = lastIp; + this.lastLogin = lastLogin; + this.loginsCount = loginsCount; + this.blocked = blocked; + this.givenName = givenName; + this.familyName = familyName; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user which can be used when interacting with other APIs. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + /** + * @return Date and time when this entity was created (ISO_8601 format). + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * @return Date and time when this entity was last updated/modified (ISO_8601 format). + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + /** + * @return Array of user identity objects when accounts are linked. + */ + @JsonProperty("identities") + public List getIdentities() { + return identities; + } + + @JsonProperty("app_metadata") + public Optional> getAppMetadata() { + return appMetadata; + } + + @JsonProperty("user_metadata") + public Optional> getUserMetadata() { + return userMetadata; + } + + /** + * @return URL to picture, photo, or avatar of this user. + */ + @JsonProperty("picture") + public Optional getPicture() { + return picture; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Preferred nickname or alias of this user. + */ + @JsonProperty("nickname") + public Optional getNickname() { + return nickname; + } + + /** + * @return List of multi-factor authentication providers with which this user has enrolled. + */ + @JsonProperty("multifactor") + public Optional> getMultifactor() { + return multifactor; + } + + /** + * @return Last IP address from which this user logged in. + */ + @JsonProperty("last_ip") + public Optional getLastIp() { + return lastIp; + } + + /** + * @return Last date and time this user logged in (ISO_8601 format). + */ + @JsonProperty("last_login") + public Optional getLastLogin() { + return lastLogin; + } + + /** + * @return Total number of logins this user has performed. + */ + @JsonProperty("logins_count") + public Optional getLoginsCount() { + return loginsCount; + } + + /** + * @return Whether this user was blocked by an administrator (true) or is not (false). + */ + @JsonProperty("blocked") + public Optional getBlocked() { + return blocked; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObject + && equalTo((EventStreamCloudEventUserUpdatedPreviousObject) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObject other) { + return userId.equals(other.userId) + && email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && username.equals(other.username) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified) + && createdAt.equals(other.createdAt) + && updatedAt.equals(other.updatedAt) + && identities.equals(other.identities) + && appMetadata.equals(other.appMetadata) + && userMetadata.equals(other.userMetadata) + && picture.equals(other.picture) + && name.equals(other.name) + && nickname.equals(other.nickname) + && multifactor.equals(other.multifactor) + && lastIp.equals(other.lastIp) + && lastLogin.equals(other.lastLogin) + && loginsCount.equals(other.loginsCount) + && blocked.equals(other.blocked) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.userId, + this.email, + this.emailVerified, + this.username, + this.phoneNumber, + this.phoneVerified, + this.createdAt, + this.updatedAt, + this.identities, + this.appMetadata, + this.userMetadata, + this.picture, + this.name, + this.nickname, + this.multifactor, + this.lastIp, + this.lastLogin, + this.loginsCount, + this.blocked, + this.givenName, + this.familyName); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user which can be used when interacting with other APIs.

+ */ + CreatedAtStage userId(@NotNull String userId); + + Builder from(EventStreamCloudEventUserUpdatedPreviousObject other); + } + + public interface CreatedAtStage { + /** + *

Date and time when this entity was created (ISO_8601 format).

+ */ + UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedAtStage { + /** + *

Date and time when this entity was last updated/modified (ISO_8601 format).

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

Email address of this user.

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

Whether this email address is verified (true) or unverified (false).

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

Username of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

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

Array of user identity objects when accounts are linked.

+ */ + _FinalStage identities(List identities); + + _FinalStage addIdentities(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem identities); + + _FinalStage addAllIdentities(List identities); + + _FinalStage appMetadata(Optional> appMetadata); + + _FinalStage appMetadata(Map appMetadata); + + _FinalStage userMetadata(Optional> userMetadata); + + _FinalStage userMetadata(Map userMetadata); + + /** + *

URL to picture, photo, or avatar of this user.

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

Name of this user.

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

Preferred nickname or alias of this user.

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

List of multi-factor authentication providers with which this user has enrolled.

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

Last IP address from which this user logged in.

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

Last date and time this user logged in (ISO_8601 format).

+ */ + _FinalStage lastLogin(Optional lastLogin); + + _FinalStage lastLogin(OffsetDateTime lastLogin); + + /** + *

Total number of logins this user has performed.

+ */ + _FinalStage loginsCount(Optional loginsCount); + + _FinalStage loginsCount(Integer loginsCount); + + /** + *

Whether this user was blocked by an administrator (true) or is not (false).

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

+ */ + _FinalStage familyName(Optional familyName); + + _FinalStage familyName(String familyName); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements UserIdStage, CreatedAtStage, UpdatedAtStage, _FinalStage { + private String userId; + + private OffsetDateTime createdAt; + + private OffsetDateTime updatedAt; + + private Optional familyName = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional blocked = Optional.empty(); + + private Optional loginsCount = Optional.empty(); + + private Optional lastLogin = Optional.empty(); + + private Optional lastIp = Optional.empty(); + + private Optional> multifactor = Optional.empty(); + + private Optional nickname = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional picture = Optional.empty(); + + private Optional> userMetadata = Optional.empty(); + + private Optional> appMetadata = Optional.empty(); + + private List identities = new ArrayList<>(); + + private Optional phoneVerified = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional email = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserUpdatedPreviousObject other) { + userId(other.getUserId()); + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + username(other.getUsername()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + createdAt(other.getCreatedAt()); + updatedAt(other.getUpdatedAt()); + identities(other.getIdentities()); + appMetadata(other.getAppMetadata()); + userMetadata(other.getUserMetadata()); + picture(other.getPicture()); + name(other.getName()); + nickname(other.getNickname()); + multifactor(other.getMultifactor()); + lastIp(other.getLastIp()); + lastLogin(other.getLastLogin()); + loginsCount(other.getLoginsCount()); + blocked(other.getBlocked()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + return this; + } + + /** + *

ID of the user which can be used when interacting with other APIs.

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

Date and time when this entity was created (ISO_8601 format).

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

Date and time when this entity was last updated/modified (ISO_8601 format).

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

Family name/last name/surname of this user.

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

Family name/last name/surname of this user.

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

Given name/first name/forename of this user.

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

Given name/first name/forename of this user.

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

Whether this user was blocked by an administrator (true) or is not (false).

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

Whether this user was blocked by an administrator (true) or is not (false).

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

Total number of logins this user has performed.

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

Total number of logins this user has performed.

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

Last date and time this user logged in (ISO_8601 format).

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

Last date and time this user logged in (ISO_8601 format).

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

Last IP address from which this user logged in.

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

Last IP address from which this user logged in.

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

List of multi-factor authentication providers with which this user has enrolled.

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

List of multi-factor authentication providers with which this user has enrolled.

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

Preferred nickname or alias of this user.

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

Preferred nickname or alias of this user.

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

Name of this user.

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

Name of this user.

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

URL to picture, photo, or avatar of this user.

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

URL to picture, photo, or avatar of this user.

+ */ + @java.lang.Override + @JsonSetter(value = "picture", nulls = Nulls.SKIP) + public _FinalStage picture(Optional picture) { + this.picture = picture; + return this; + } + + @java.lang.Override + public _FinalStage userMetadata(Map userMetadata) { + this.userMetadata = Optional.ofNullable(userMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "user_metadata", nulls = Nulls.SKIP) + public _FinalStage userMetadata(Optional> userMetadata) { + this.userMetadata = userMetadata; + return this; + } + + @java.lang.Override + public _FinalStage appMetadata(Map appMetadata) { + this.appMetadata = Optional.ofNullable(appMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "app_metadata", nulls = Nulls.SKIP) + public _FinalStage appMetadata(Optional> appMetadata) { + this.appMetadata = appMetadata; + return this; + } + + /** + *

Array of user identity objects when accounts are linked.

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

Array of user identity objects when accounts are linked.

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

Array of user identity objects when accounts are linked.

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

Whether this phone number has been verified (true) or not (false).

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

Whether this phone number has been verified (true) or not (false).

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

Phone number of this user.

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

Phone number of this user.

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

Username of this user.

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

Username of this user.

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

Whether this email address is verified (true) or unverified (false).

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

Whether this email address is verified (true) or unverified (false).

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

Email address of this user.

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

Email address of this user.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObject build() { + return new EventStreamCloudEventUserUpdatedPreviousObject( + userId, + email, + emailVerified, + username, + phoneNumber, + phoneVerified, + createdAt, + updatedAt, + identities, + appMetadata, + userMetadata, + picture, + name, + nickname, + multifactor, + lastIp, + lastLogin, + loginsCount, + blocked, + givenName, + familyName, + 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem.java new file mode 100644 index 000000000..b9d0c52bf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem.java @@ -0,0 +1,175 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem.Deserializer.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem(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((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial) 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem) other); + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem(value, 0); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem(value, 1); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem(value, 2); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem(value, 3); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem of( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem(value, 4); + } + + public interface Visitor { + T visit(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom value); + + T visit(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase value); + + T visit(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise value); + + T visit(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless value); + + T visit(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem.class); + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("connection") + && ((Map) value).containsKey("user_id") + && ((Map) value).containsKey("provider") + && ((Map) value).containsKey("isSocial")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom.java new file mode 100644 index 000000000..2286da864 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom.java @@ -0,0 +1,245 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom { + private final String connection; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom( + String connection, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId userId, + Optional profileData, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom other); + } + + public interface UserIdStage { + ProviderStage userId(@NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId userId; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData.java new file mode 100644 index 000000000..d5a07d25f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData.java @@ -0,0 +1,341 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum.java new file mode 100644 index 000000000..cfbbe45a4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum.java @@ -0,0 +1,78 @@ +/** + * 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum { + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum CUSTOM = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum(Value.CUSTOM, "custom"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum(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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CUSTOM: + return visitor.visitCustom(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum valueOf(String value) { + switch (value) { + case "custom": + return CUSTOM; + default: + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CUSTOM, + + UNKNOWN + } + + public interface Visitor { + T visitCustom(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId.java new file mode 100644 index 000000000..e59e634f5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId.Deserializer.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId of(String value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId(value, 0); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId of(int value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase.java new file mode 100644 index 000000000..558725fe4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase.java @@ -0,0 +1,246 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase { + private final String connection; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase( + String connection, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId userId, + Optional profileData, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId userId; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData.java new file mode 100644 index 000000000..2ab4f9443 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum.java new file mode 100644 index 000000000..71959d588 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum.java @@ -0,0 +1,80 @@ +/** + * 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum { + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum AUTH0 = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum(Value.AUTH0, "auth0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum(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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AUTH0: + return visitor.visitAuth0(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum valueOf( + String value) { + switch (value) { + case "auth0": + return AUTH0; + default: + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTH0, + + UNKNOWN + } + + public interface Visitor { + T visitAuth0(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId.java new file mode 100644 index 000000000..103717349 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId.Deserializer.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId of(String value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId(value, 0); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId of(int value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise.java new file mode 100644 index 000000000..504364a95 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise.java @@ -0,0 +1,250 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise { + private final String connection; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId userId; + + private final Optional + profileData; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise( + String connection, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId userId, + Optional profileData, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional + getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional + profileData); + + _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId userId; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider; + + private boolean isSocial; + + private Optional + profileData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional + profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData.java new file mode 100644 index 000000000..ba5ea9afa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java new file mode 100644 index 000000000..541c1c0a0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum.java @@ -0,0 +1,195 @@ +/** + * 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum { + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum AD = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.AD, "ad"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum + PINGFEDERATE = new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.PINGFEDERATE, "pingfederate"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum OKTA = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.OKTA, "okta"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum SAMLP = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum WAAD = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.WAAD, "waad"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum OFFICE365 = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.OFFICE365, "office365"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum SHAREPOINT = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.SHAREPOINT, "sharepoint"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum IP = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.IP, "ip"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum ADFS = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.ADFS, "adfs"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum OIDC = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(Value.OIDC, "oidc"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum GOOGLE_APPS = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum(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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum) + 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 PINGFEDERATE: + return visitor.visitPingfederate(); + case OKTA: + return visitor.visitOkta(); + case SAMLP: + return visitor.visitSamlp(); + case WAAD: + return visitor.visitWaad(); + case OFFICE365: + return visitor.visitOffice365(); + case SHAREPOINT: + return visitor.visitSharepoint(); + case IP: + return visitor.visitIp(); + case ADFS: + return visitor.visitAdfs(); + case OIDC: + return visitor.visitOidc(); + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum valueOf( + String value) { + switch (value) { + case "ad": + return AD; + case "pingfederate": + return PINGFEDERATE; + case "okta": + return OKTA; + case "samlp": + return SAMLP; + case "waad": + return WAAD; + case "office365": + return OFFICE365; + case "sharepoint": + return SHAREPOINT; + case "ip": + return IP; + case "adfs": + return ADFS; + case "oidc": + return OIDC; + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + ADFS, + + GOOGLE_APPS, + + IP, + + OFFICE365, + + OIDC, + + OKTA, + + PINGFEDERATE, + + SAMLP, + + SHAREPOINT, + + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitAdfs(); + + T visitGoogleApps(); + + T visitIp(); + + T visitOffice365(); + + T visitOidc(); + + T visitOkta(); + + T visitPingfederate(); + + T visitSamlp(); + + T visitSharepoint(); + + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId.java new file mode 100644 index 000000000..f5909828d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId.java @@ -0,0 +1,98 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId.Deserializer.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId of(String value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId(value, 0); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId of(int value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless.java new file mode 100644 index 000000000..9c7e24afe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless.java @@ -0,0 +1,251 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless { + private final String connection; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId userId; + + private final Optional + profileData; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless( + String connection, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId userId, + Optional profileData, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional + getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless other); + } + + public interface UserIdStage { + ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional + profileData); + + _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId userId; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider; + + private boolean isSocial; + + private Optional + profileData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional + profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData.java new file mode 100644 index 000000000..5ef44b05b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData.java @@ -0,0 +1,342 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java new file mode 100644 index 000000000..5a9dc4542 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum.java @@ -0,0 +1,94 @@ +/** + * 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum { + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum EMAIL = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum( + Value.EMAIL, "email"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum SMS = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum(Value.SMS, "sms"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum(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 + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case EMAIL: + return visitor.visitEmail(); + case SMS: + return visitor.visitSms(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum valueOf( + String value) { + switch (value) { + case "email": + return EMAIL; + case "sms": + return SMS; + default: + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + EMAIL, + + SMS, + + UNKNOWN + } + + public interface Visitor { + T visitEmail(); + + T visitSms(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId.java new file mode 100644 index 000000000..7f31300ea --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId.java @@ -0,0 +1,98 @@ +/** + * 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.Objects; + +@JsonDeserialize( + using = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId.Deserializer.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId of(String value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId(value, 0); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId of(int value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial.java new file mode 100644 index 000000000..2348c6be2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial.java @@ -0,0 +1,245 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial { + private final String connection; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId userId; + + private final Optional profileData; + + private final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum provider; + + private final boolean isSocial; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial( + String connection, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId userId, + Optional profileData, + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum provider, + boolean isSocial, + Map additionalProperties) { + this.connection = connection; + this.userId = userId; + this.profileData = profileData; + this.provider = provider; + this.isSocial = isSocial; + this.additionalProperties = additionalProperties; + } + + /** + * @return Name of the connection containing this identity. + */ + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("user_id") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId getUserId() { + return userId; + } + + @JsonProperty("profileData") + public Optional getProfileData() { + return profileData; + } + + @JsonProperty("provider") + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum getProvider() { + return provider; + } + + @JsonProperty("isSocial") + public boolean getIsSocial() { + return isSocial; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial other) { + return connection.equals(other.connection) + && userId.equals(other.userId) + && profileData.equals(other.profileData) + && provider.equals(other.provider) + && isSocial == other.isSocial; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.userId, this.profileData, this.provider, this.isSocial); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + /** + *

Name of the connection containing this identity.

+ */ + UserIdStage connection(@NotNull String connection); + + Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial other); + } + + public interface UserIdStage { + ProviderStage userId(@NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId userId); + } + + public interface ProviderStage { + IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum provider); + } + + public interface IsSocialStage { + _FinalStage isSocial(boolean isSocial); + } + + public interface _FinalStage { + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage profileData( + Optional profileData); + + _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData profileData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements ConnectionStage, UserIdStage, ProviderStage, IsSocialStage, _FinalStage { + private String connection; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId userId; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum provider; + + private boolean isSocial; + + private Optional profileData = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial other) { + connection(other.getConnection()); + userId(other.getUserId()); + profileData(other.getProfileData()); + provider(other.getProvider()); + isSocial(other.getIsSocial()); + return this; + } + + /** + *

Name of the connection containing this identity.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("connection") + public UserIdStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("user_id") + public ProviderStage userId( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("provider") + public IsSocialStage provider( + @NotNull EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum provider) { + this.provider = Objects.requireNonNull(provider, "provider must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("isSocial") + public _FinalStage isSocial(boolean isSocial) { + this.isSocial = isSocial; + return this; + } + + @java.lang.Override + public _FinalStage profileData( + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "profileData", nulls = Nulls.SKIP) + public _FinalStage profileData( + Optional profileData) { + this.profileData = profileData; + return this; + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial( + connection, userId, profileData, provider, isSocial, 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData.java new file mode 100644 index 000000000..0e52523b1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData.java @@ -0,0 +1,341 @@ +/** + * 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 = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData.Builder.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData { + private final Optional email; + + private final Optional emailVerified; + + private final Optional name; + + private final Optional username; + + private final Optional givenName; + + private final Optional familyName; + + private final Optional phoneNumber; + + private final Optional phoneVerified; + + private final Map additionalProperties; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData( + Optional email, + Optional emailVerified, + Optional name, + Optional username, + Optional givenName, + Optional familyName, + Optional phoneNumber, + Optional phoneVerified, + Map additionalProperties) { + this.email = email; + this.emailVerified = emailVerified; + this.name = name; + this.username = username; + this.givenName = givenName; + this.familyName = familyName; + this.phoneNumber = phoneNumber; + this.phoneVerified = phoneVerified; + this.additionalProperties = additionalProperties; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Whether this email address is verified (true) or unverified (false). + */ + @JsonProperty("email_verified") + public Optional getEmailVerified() { + return emailVerified; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Username of this user. + */ + @JsonProperty("username") + public Optional getUsername() { + return username; + } + + /** + * @return Given name/first name/forename of this user. + */ + @JsonProperty("given_name") + public Optional getGivenName() { + return givenName; + } + + /** + * @return Family name/last name/surname of this user. + */ + @JsonProperty("family_name") + public Optional getFamilyName() { + return familyName; + } + + /** + * @return Phone number of this user. + */ + @JsonProperty("phone_number") + public Optional getPhoneNumber() { + return phoneNumber; + } + + /** + * @return Whether this phone number has been verified (true) or not (false). + */ + @JsonProperty("phone_verified") + public Optional getPhoneVerified() { + return phoneVerified; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData other) { + return email.equals(other.email) + && emailVerified.equals(other.emailVerified) + && name.equals(other.name) + && username.equals(other.username) + && givenName.equals(other.givenName) + && familyName.equals(other.familyName) + && phoneNumber.equals(other.phoneNumber) + && phoneVerified.equals(other.phoneVerified); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.email, + this.emailVerified, + this.name, + this.username, + this.givenName, + this.familyName, + this.phoneNumber, + this.phoneVerified); + } + + @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 email = Optional.empty(); + + private Optional emailVerified = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional username = Optional.empty(); + + private Optional givenName = Optional.empty(); + + private Optional familyName = Optional.empty(); + + private Optional phoneNumber = Optional.empty(); + + private Optional phoneVerified = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData other) { + email(other.getEmail()); + emailVerified(other.getEmailVerified()); + name(other.getName()); + username(other.getUsername()); + givenName(other.getGivenName()); + familyName(other.getFamilyName()); + phoneNumber(other.getPhoneNumber()); + phoneVerified(other.getPhoneVerified()); + 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; + } + + /** + *

Whether this email address is verified (true) or unverified (false).

+ */ + @JsonSetter(value = "email_verified", nulls = Nulls.SKIP) + public Builder emailVerified(Optional emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + public Builder emailVerified(Boolean emailVerified) { + this.emailVerified = Optional.ofNullable(emailVerified); + 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; + } + + /** + *

Username of this user.

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

Given name/first name/forename of this user.

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

Family name/last name/surname of this user.

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

Phone number of this user.

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

Whether this phone number has been verified (true) or not (false).

+ */ + @JsonSetter(value = "phone_verified", nulls = Nulls.SKIP) + public Builder phoneVerified(Optional phoneVerified) { + this.phoneVerified = phoneVerified; + return this; + } + + public Builder phoneVerified(Boolean phoneVerified) { + this.phoneVerified = Optional.ofNullable(phoneVerified); + return this; + } + + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData build() { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData( + email, + emailVerified, + name, + username, + givenName, + familyName, + phoneNumber, + phoneVerified, + 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/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum.java new file mode 100644 index 000000000..5d6897873 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum.java @@ -0,0 +1,519 @@ +/** + * 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum { + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum BAIDU = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BAIDU, "baidu"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum DWOLLA = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.DWOLLA, "dwolla"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum AUTH0OIDC = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.AUTH0OIDC, "auth0-oidc"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum PLANNINGCENTER = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.PLANNINGCENTER, "planningcenter"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum BITLY = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BITLY, "bitly"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum PAYPAL_SANDBOX = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.PAYPAL_SANDBOX, "paypal-sandbox"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum DROPBOX = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.DROPBOX, "dropbox"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum GOOGLE_OAUTH2 = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.GOOGLE_OAUTH2, "google-oauth2"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum VKONTAKTE = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.VKONTAKTE, "vkontakte"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum WORDPRESS = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.WORDPRESS, "wordpress"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum EXACT = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.EXACT, "exact"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum INSTAGRAM = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.INSTAGRAM, "instagram"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum FITBIT = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.FITBIT, "fitbit"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum + THIRTYSEVENSIGNALS = new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.THIRTYSEVENSIGNALS, "thirtysevensignals"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum EVERNOTE = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.EVERNOTE, "evernote"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum SHOPIFY = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SHOPIFY, "shopify"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum + SALESFORCE_SANDBOX = new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum + SALESFORCE_COMMUNITY = new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE_COMMUNITY, "salesforce-community"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum FACEBOOK = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.FACEBOOK, "facebook"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum DACCOUNT = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.DACCOUNT, "daccount"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum SOUNDCLOUD = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SOUNDCLOUD, "soundcloud"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum APPLE = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.APPLE, "apple"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum + EVERNOTE_SANDBOX = new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.EVERNOTE_SANDBOX, "evernote-sandbox"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum OAUTH2 = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.OAUTH2, "oauth2"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum OAUTH1 = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.OAUTH1, "oauth1"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum AMAZON = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.AMAZON, "amazon"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum LINE = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.LINE, "line"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum BOX = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.BOX, "box"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum UNTAPPED = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.UNTAPPED, "untapped"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum GITHUB = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.GITHUB, "github"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum SALESFORCE = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.SALESFORCE, "salesforce"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum BITBUCKET = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.BITBUCKET, "bitbucket"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum YAHOO = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.YAHOO, "yahoo"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum WEIBO = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.WEIBO, "weibo"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum PAYPAL = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.PAYPAL, "paypal"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum LINKEDIN = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.LINKEDIN, "linkedin"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum WINDOWSLIVE = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.WINDOWSLIVE, "windowslive"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum YANDEX = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(Value.YANDEX, "yandex"); + + public static final EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum TWITTER = + new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.TWITTER, "twitter"); + + private final Value value; + + private final String string; + + EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum(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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum + && this.string.equals( + ((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BAIDU: + return visitor.visitBaidu(); + case DWOLLA: + return visitor.visitDwolla(); + case AUTH0OIDC: + return visitor.visitAuth0Oidc(); + case PLANNINGCENTER: + return visitor.visitPlanningcenter(); + case BITLY: + return visitor.visitBitly(); + case PAYPAL_SANDBOX: + return visitor.visitPaypalSandbox(); + case DROPBOX: + return visitor.visitDropbox(); + case GOOGLE_OAUTH2: + return visitor.visitGoogleOauth2(); + case VKONTAKTE: + return visitor.visitVkontakte(); + case WORDPRESS: + return visitor.visitWordpress(); + case EXACT: + return visitor.visitExact(); + case INSTAGRAM: + return visitor.visitInstagram(); + case FITBIT: + return visitor.visitFitbit(); + case THIRTYSEVENSIGNALS: + return visitor.visitThirtysevensignals(); + case EVERNOTE: + return visitor.visitEvernote(); + case SHOPIFY: + return visitor.visitShopify(); + case SALESFORCE_SANDBOX: + return visitor.visitSalesforceSandbox(); + case SALESFORCE_COMMUNITY: + return visitor.visitSalesforceCommunity(); + case FACEBOOK: + return visitor.visitFacebook(); + case DACCOUNT: + return visitor.visitDaccount(); + case SOUNDCLOUD: + return visitor.visitSoundcloud(); + case APPLE: + return visitor.visitApple(); + case EVERNOTE_SANDBOX: + return visitor.visitEvernoteSandbox(); + case OAUTH2: + return visitor.visitOauth2(); + case OAUTH1: + return visitor.visitOauth1(); + case AMAZON: + return visitor.visitAmazon(); + case LINE: + return visitor.visitLine(); + case BOX: + return visitor.visitBox(); + case UNTAPPED: + return visitor.visitUntapped(); + case GITHUB: + return visitor.visitGithub(); + case SALESFORCE: + return visitor.visitSalesforce(); + case BITBUCKET: + return visitor.visitBitbucket(); + case YAHOO: + return visitor.visitYahoo(); + case WEIBO: + return visitor.visitWeibo(); + case PAYPAL: + return visitor.visitPaypal(); + case LINKEDIN: + return visitor.visitLinkedin(); + case WINDOWSLIVE: + return visitor.visitWindowslive(); + case YANDEX: + return visitor.visitYandex(); + case TWITTER: + return visitor.visitTwitter(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum valueOf(String value) { + switch (value) { + case "baidu": + return BAIDU; + case "dwolla": + return DWOLLA; + case "auth0-oidc": + return AUTH0OIDC; + case "planningcenter": + return PLANNINGCENTER; + case "bitly": + return BITLY; + case "paypal-sandbox": + return PAYPAL_SANDBOX; + case "dropbox": + return DROPBOX; + case "google-oauth2": + return GOOGLE_OAUTH2; + case "vkontakte": + return VKONTAKTE; + case "wordpress": + return WORDPRESS; + case "exact": + return EXACT; + case "instagram": + return INSTAGRAM; + case "fitbit": + return FITBIT; + case "thirtysevensignals": + return THIRTYSEVENSIGNALS; + case "evernote": + return EVERNOTE; + case "shopify": + return SHOPIFY; + case "salesforce-sandbox": + return SALESFORCE_SANDBOX; + case "salesforce-community": + return SALESFORCE_COMMUNITY; + case "facebook": + return FACEBOOK; + case "daccount": + return DACCOUNT; + case "soundcloud": + return SOUNDCLOUD; + case "apple": + return APPLE; + case "evernote-sandbox": + return EVERNOTE_SANDBOX; + case "oauth2": + return OAUTH2; + case "oauth1": + return OAUTH1; + case "amazon": + return AMAZON; + case "line": + return LINE; + case "box": + return BOX; + case "untapped": + return UNTAPPED; + case "github": + return GITHUB; + case "salesforce": + return SALESFORCE; + case "bitbucket": + return BITBUCKET; + case "yahoo": + return YAHOO; + case "weibo": + return WEIBO; + case "paypal": + return PAYPAL; + case "linkedin": + return LINKEDIN; + case "windowslive": + return WINDOWSLIVE; + case "yandex": + return YANDEX; + case "twitter": + return TWITTER; + default: + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AMAZON, + + APPLE, + + DROPBOX, + + BITBUCKET, + + AUTH0OIDC, + + BAIDU, + + BITLY, + + BOX, + + DACCOUNT, + + DWOLLA, + + EVERNOTE_SANDBOX, + + EVERNOTE, + + EXACT, + + FACEBOOK, + + FITBIT, + + GITHUB, + + GOOGLE_OAUTH2, + + INSTAGRAM, + + LINE, + + LINKEDIN, + + OAUTH1, + + OAUTH2, + + PAYPAL, + + PAYPAL_SANDBOX, + + PLANNINGCENTER, + + SALESFORCE_COMMUNITY, + + SALESFORCE_SANDBOX, + + SALESFORCE, + + SHOPIFY, + + SOUNDCLOUD, + + THIRTYSEVENSIGNALS, + + TWITTER, + + UNTAPPED, + + VKONTAKTE, + + WEIBO, + + WINDOWSLIVE, + + WORDPRESS, + + YAHOO, + + YANDEX, + + UNKNOWN + } + + public interface Visitor { + T visitAmazon(); + + T visitApple(); + + T visitDropbox(); + + T visitBitbucket(); + + T visitAuth0Oidc(); + + T visitBaidu(); + + T visitBitly(); + + T visitBox(); + + T visitDaccount(); + + T visitDwolla(); + + T visitEvernoteSandbox(); + + T visitEvernote(); + + T visitExact(); + + T visitFacebook(); + + T visitFitbit(); + + T visitGithub(); + + T visitGoogleOauth2(); + + T visitInstagram(); + + T visitLine(); + + T visitLinkedin(); + + T visitOauth1(); + + T visitOauth2(); + + T visitPaypal(); + + T visitPaypalSandbox(); + + T visitPlanningcenter(); + + T visitSalesforceCommunity(); + + T visitSalesforceSandbox(); + + T visitSalesforce(); + + T visitShopify(); + + T visitSoundcloud(); + + T visitThirtysevensignals(); + + T visitTwitter(); + + T visitUntapped(); + + T visitVkontakte(); + + T visitWeibo(); + + T visitWindowslive(); + + T visitWordpress(); + + T visitYahoo(); + + T visitYandex(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId.java new file mode 100644 index 000000000..bc5569699 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId.java @@ -0,0 +1,97 @@ +/** + * 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.Objects; + +@JsonDeserialize(using = EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId.Deserializer.class) +public final class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId { + private final Object value; + + private final int type; + + private EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId(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((String) this.value); + } else if (this.type == 1) { + return visitor.visit((int) 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId + && equalTo((EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId) other); + } + + private boolean equalTo(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId 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 EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId of(String value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId(value, 0); + } + + public static EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId of(int value) { + return new EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(int value); + } + + static final class Deserializer + extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId.class); + } + + @java.lang.Override + public EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Integer) { + return of((Integer) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java index 09209aefb..e1b3fd331 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java @@ -10,10 +10,12 @@ 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) @@ -21,10 +23,14 @@ public final class FormWidgetGMapsAddressConfig { private final String apiKey; + private final Optional serverKey; + private final Map additionalProperties; - private FormWidgetGMapsAddressConfig(String apiKey, Map additionalProperties) { + private FormWidgetGMapsAddressConfig( + String apiKey, Optional serverKey, Map additionalProperties) { this.apiKey = apiKey; + this.serverKey = serverKey; this.additionalProperties = additionalProperties; } @@ -33,6 +39,11 @@ public String getApiKey() { return apiKey; } + @JsonProperty("server_key") + public Optional getServerKey() { + return serverKey; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -45,12 +56,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(FormWidgetGMapsAddressConfig other) { - return apiKey.equals(other.apiKey); + return apiKey.equals(other.apiKey) && serverKey.equals(other.serverKey); } @java.lang.Override public int hashCode() { - return Objects.hash(this.apiKey); + return Objects.hash(this.apiKey, this.serverKey); } @java.lang.Override @@ -74,12 +85,18 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage serverKey(Optional serverKey); + + _FinalStage serverKey(String serverKey); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements ApiKeyStage, _FinalStage { private String apiKey; + private Optional serverKey = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -88,6 +105,7 @@ private Builder() {} @java.lang.Override public Builder from(FormWidgetGMapsAddressConfig other) { apiKey(other.getApiKey()); + serverKey(other.getServerKey()); return this; } @@ -98,9 +116,22 @@ public _FinalStage apiKey(@NotNull String apiKey) { return this; } + @java.lang.Override + public _FinalStage serverKey(String serverKey) { + this.serverKey = Optional.ofNullable(serverKey); + return this; + } + + @java.lang.Override + @JsonSetter(value = "server_key", nulls = Nulls.SKIP) + public _FinalStage serverKey(Optional serverKey) { + this.serverKey = serverKey; + return this; + } + @java.lang.Override public FormWidgetGMapsAddressConfig build() { - return new FormWidgetGMapsAddressConfig(apiKey, additionalProperties); + return new FormWidgetGMapsAddressConfig(apiKey, serverKey, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java index 2393fa70a..365db0681 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java @@ -132,6 +132,8 @@ public final class GetClientResponseContent { private final Optional expressConfiguration; + private final Optional b2BIntegrationConfiguration; + private final Optional myOrganizationConfiguration; private final Optional identityAssertionAuthorizationGrant; @@ -209,6 +211,7 @@ private GetClientResponseContent( OptionalNullable parRequestExpiry, Optional tokenQuota, Optional expressConfiguration, + Optional b2BIntegrationConfiguration, Optional myOrganizationConfiguration, Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, @@ -274,6 +277,7 @@ private GetClientResponseContent( this.parRequestExpiry = parRequestExpiry; this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -684,6 +688,11 @@ public Optional getExpressConfiguration() { return expressConfiguration; } + @JsonProperty("b2b_integration_configuration") + public Optional getB2BIntegrationConfiguration() { + return b2BIntegrationConfiguration; + } + @JsonProperty("my_organization_configuration") public Optional getMyOrganizationConfiguration() { return myOrganizationConfiguration; @@ -858,6 +867,7 @@ private boolean equalTo(GetClientResponseContent other) { && parRequestExpiry.equals(other.parRequestExpiry) && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) + && b2BIntegrationConfiguration.equals(other.b2BIntegrationConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) @@ -927,6 +937,7 @@ public int hashCode() { this.parRequestExpiry, this.tokenQuota, this.expressConfiguration, + this.b2BIntegrationConfiguration, this.myOrganizationConfiguration, this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, @@ -1059,6 +1070,8 @@ public static final class Builder { private Optional expressConfiguration = Optional.empty(); + private Optional b2BIntegrationConfiguration = Optional.empty(); + private Optional myOrganizationConfiguration = Optional.empty(); private Optional identityAssertionAuthorizationGrant = Optional.empty(); @@ -1140,6 +1153,7 @@ public Builder from(GetClientResponseContent other) { parRequestExpiry(other.getParRequestExpiry()); tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); + b2BIntegrationConfiguration(other.getB2BIntegrationConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); @@ -2014,6 +2028,17 @@ public Builder expressConfiguration(ExpressConfiguration expressConfiguration) { return this; } + @JsonSetter(value = "b2b_integration_configuration", nulls = Nulls.SKIP) + public Builder b2BIntegrationConfiguration(Optional b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; + return this; + } + + public Builder b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = Optional.ofNullable(b2BIntegrationConfiguration); + return this; + } + @JsonSetter(value = "my_organization_configuration", nulls = Nulls.SKIP) public Builder myOrganizationConfiguration( Optional myOrganizationConfiguration) { @@ -2196,6 +2221,7 @@ public GetClientResponseContent build() { parRequestExpiry, tokenQuota, expressConfiguration, + b2BIntegrationConfiguration, myOrganizationConfiguration, identityAssertionAuthorizationGrant, thirdPartySecurityMode, diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java index 1ddc51d21..46ecb84e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java @@ -35,6 +35,8 @@ public final class GetConnectionProfileResponseContent { private final Optional strategyOverrides; + private final Optional provisioning; + private final Optional crossAppAccessResourceApp; private final Map additionalProperties; @@ -47,6 +49,7 @@ private GetConnectionProfileResponseContent( Optional> enabledFeatures, Optional connectionConfig, Optional strategyOverrides, + Optional provisioning, Optional crossAppAccessResourceApp, Map additionalProperties) { this.id = id; @@ -56,6 +59,7 @@ private GetConnectionProfileResponseContent( this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; this.strategyOverrides = strategyOverrides; + this.provisioning = provisioning; this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -95,6 +99,11 @@ public Optional getStrategyOverrides() { return strategyOverrides; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @JsonProperty("cross_app_access_resource_app") public Optional getCrossAppAccessResourceApp() { return crossAppAccessResourceApp; @@ -120,6 +129,7 @@ private boolean equalTo(GetConnectionProfileResponseContent other) { && enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig) && strategyOverrides.equals(other.strategyOverrides) + && provisioning.equals(other.provisioning) && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @@ -133,6 +143,7 @@ public int hashCode() { this.enabledFeatures, this.connectionConfig, this.strategyOverrides, + this.provisioning, this.crossAppAccessResourceApp); } @@ -161,6 +172,8 @@ public static final class Builder { private Optional strategyOverrides = Optional.empty(); + private Optional provisioning = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); @JsonAnySetter @@ -176,6 +189,7 @@ public Builder from(GetConnectionProfileResponseContent other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); strategyOverrides(other.getStrategyOverrides()); + provisioning(other.getProvisioning()); crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -257,6 +271,17 @@ public Builder strategyOverrides(ConnectionProfileStrategyOverrides strategyOver return this; } + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public Builder provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + + public Builder provisioning(ConnectionProfileProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) public Builder crossAppAccessResourceApp( Optional crossAppAccessResourceApp) { @@ -278,6 +303,7 @@ public GetConnectionProfileResponseContent build() { enabledFeatures, connectionConfig, strategyOverrides, + provisioning, crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java index 5e3ad5158..59e77accd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java @@ -21,6 +21,8 @@ public interface IConnectionOptionsCommonOidc { Optional getDpopSigningAlg(); + Optional getEnablePushedAuthorizationRequests(); + Optional getIconUrl(); Optional getIdTokenSessionExpirySupported(); @@ -33,6 +35,8 @@ public interface IConnectionOptionsCommonOidc { Optional getOidcMetadata(); + Optional getPushedAuthorizationRequestEndpoint(); + Optional getScope(); Optional getSendBackChannelNonce(); diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationTemplatesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationTemplatesPaginatedResponseContent.java new file mode 100644 index 000000000..1b7ea9d98 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationTemplatesPaginatedResponseContent.java @@ -0,0 +1,139 @@ +/** + * 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 = ListOrganizationTemplatesPaginatedResponseContent.Builder.class) +public final class ListOrganizationTemplatesPaginatedResponseContent { + private final Optional next; + + private final Optional> organizationTemplates; + + private final Map additionalProperties; + + private ListOrganizationTemplatesPaginatedResponseContent( + Optional next, + Optional> organizationTemplates, + Map additionalProperties) { + this.next = next; + this.organizationTemplates = organizationTemplates; + this.additionalProperties = additionalProperties; + } + + /** + * @return A cursor to be used as the "from" query parameter for the next page of results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @JsonProperty("organization_templates") + public Optional> getOrganizationTemplates() { + return organizationTemplates; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListOrganizationTemplatesPaginatedResponseContent + && equalTo((ListOrganizationTemplatesPaginatedResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListOrganizationTemplatesPaginatedResponseContent other) { + return next.equals(other.next) && organizationTemplates.equals(other.organizationTemplates); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.next, this.organizationTemplates); + } + + @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 next = Optional.empty(); + + private Optional> organizationTemplates = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListOrganizationTemplatesPaginatedResponseContent other) { + next(other.getNext()); + organizationTemplates(other.getOrganizationTemplates()); + return this; + } + + /** + *

A cursor to be used as the "from" query parameter for the next page of 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; + } + + @JsonSetter(value = "organization_templates", nulls = Nulls.SKIP) + public Builder organizationTemplates(Optional> organizationTemplates) { + this.organizationTemplates = organizationTemplates; + return this; + } + + public Builder organizationTemplates(List organizationTemplates) { + this.organizationTemplates = Optional.ofNullable(organizationTemplates); + return this; + } + + public ListOrganizationTemplatesPaginatedResponseContent build() { + return new ListOrganizationTemplatesPaginatedResponseContent( + next, organizationTemplates, 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/ListOrganizationTemplatesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationTemplatesRequestParameters.java new file mode 100644 index 000000000..44c3bf070 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationTemplatesRequestParameters.java @@ -0,0 +1,204 @@ +/** + * 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.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListOrganizationTemplatesRequestParameters.Builder.class) +public final class ListOrganizationTemplatesRequestParameters { + private final OptionalNullable from; + + private final OptionalNullable take; + + private final Map additionalProperties; + + private ListOrganizationTemplatesRequestParameters( + OptionalNullable from, OptionalNullable take, Map additionalProperties) { + this.from = from; + this.take = take; + this.additionalProperties = additionalProperties; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 5. Values greater than 10 are capped at 10. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + public OptionalNullable getTake() { + if (take == null) { + return OptionalNullable.absent(); + } + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListOrganizationTemplatesRequestParameters + && equalTo((ListOrganizationTemplatesRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListOrganizationTemplatesRequestParameters other) { + return from.equals(other.from) && take.equals(other.take); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.from, this.take); + } + + @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(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListOrganizationTemplatesRequestParameters other) { + from(other.getFrom()); + take(other.getTake()); + 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 5. Values greater than 10 are capped at 10.

+ */ + @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; + } + + public ListOrganizationTemplatesRequestParameters build() { + return new ListOrganizationTemplatesRequestParameters(from, take, 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/ListTemplateOrganizationsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListTemplateOrganizationsPaginatedResponseContent.java new file mode 100644 index 000000000..dc5373db1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListTemplateOrganizationsPaginatedResponseContent.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.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 = ListTemplateOrganizationsPaginatedResponseContent.Builder.class) +public final class ListTemplateOrganizationsPaginatedResponseContent { + private final Optional next; + + private final List organizations; + + private final Map additionalProperties; + + private ListTemplateOrganizationsPaginatedResponseContent( + Optional next, + List organizations, + Map additionalProperties) { + this.next = next; + this.organizations = organizations; + this.additionalProperties = additionalProperties; + } + + /** + * @return A cursor to be used as the "from" query parameter for the next page of results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + /** + * @return The list of organizations assigned to this template. + */ + @JsonProperty("organizations") + public List getOrganizations() { + return organizations; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListTemplateOrganizationsPaginatedResponseContent + && equalTo((ListTemplateOrganizationsPaginatedResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListTemplateOrganizationsPaginatedResponseContent other) { + return next.equals(other.next) && organizations.equals(other.organizations); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.next, this.organizations); + } + + @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 next = Optional.empty(); + + private List organizations = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListTemplateOrganizationsPaginatedResponseContent other) { + next(other.getNext()); + organizations(other.getOrganizations()); + return this; + } + + /** + *

A cursor to be used as the "from" query parameter for the next page of 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; + } + + /** + *

The list of organizations assigned to this template.

+ */ + @JsonSetter(value = "organizations", nulls = Nulls.SKIP) + public Builder organizations(List organizations) { + this.organizations.clear(); + if (organizations != null) { + this.organizations.addAll(organizations); + } + return this; + } + + public Builder addOrganizations(OrganizationTemplateAssignedOrganization organizations) { + this.organizations.add(organizations); + return this; + } + + public Builder addAllOrganizations(List organizations) { + if (organizations != null) { + this.organizations.addAll(organizations); + } + return this; + } + + public ListTemplateOrganizationsPaginatedResponseContent build() { + return new ListTemplateOrganizationsPaginatedResponseContent(next, organizations, 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/ListTemplateOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListTemplateOrganizationsRequestParameters.java new file mode 100644 index 000000000..348ed51d5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListTemplateOrganizationsRequestParameters.java @@ -0,0 +1,204 @@ +/** + * 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.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListTemplateOrganizationsRequestParameters.Builder.class) +public final class ListTemplateOrganizationsRequestParameters { + private final OptionalNullable from; + + private final OptionalNullable take; + + private final Map additionalProperties; + + private ListTemplateOrganizationsRequestParameters( + OptionalNullable from, OptionalNullable take, Map additionalProperties) { + this.from = from; + this.take = take; + this.additionalProperties = additionalProperties; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 5. Values greater than 10 are capped at 10. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + public OptionalNullable getTake() { + if (take == null) { + return OptionalNullable.absent(); + } + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListTemplateOrganizationsRequestParameters + && equalTo((ListTemplateOrganizationsRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListTemplateOrganizationsRequestParameters other) { + return from.equals(other.from) && take.equals(other.take); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.from, this.take); + } + + @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(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListTemplateOrganizationsRequestParameters other) { + from(other.getFrom()); + take(other.getTake()); + 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 5. Values greater than 10 are capped at 10.

+ */ + @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; + } + + public ListTemplateOrganizationsRequestParameters build() { + return new ListTemplateOrganizationsRequestParameters(from, take, 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/NetworkAclHttpMessageSignature.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclHttpMessageSignature.java new file mode 100644 index 000000000..5eade5c5e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclHttpMessageSignature.java @@ -0,0 +1,117 @@ +/** + * 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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = NetworkAclHttpMessageSignature.Builder.class) +public final class NetworkAclHttpMessageSignature { + private final List keys; + + private final Map additionalProperties; + + private NetworkAclHttpMessageSignature( + List keys, Map additionalProperties) { + this.keys = keys; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("keys") + public List getKeys() { + return keys; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof NetworkAclHttpMessageSignature && equalTo((NetworkAclHttpMessageSignature) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(NetworkAclHttpMessageSignature other) { + return keys.equals(other.keys); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.keys); + } + + @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 keys = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(NetworkAclHttpMessageSignature other) { + keys(other.getKeys()); + return this; + } + + @JsonSetter(value = "keys", nulls = Nulls.SKIP) + public Builder keys(List keys) { + this.keys.clear(); + if (keys != null) { + this.keys.addAll(keys); + } + return this; + } + + public Builder addKeys(NetworkAclHttpMessageSignatureKey keys) { + this.keys.add(keys); + return this; + } + + public Builder addAllKeys(List keys) { + if (keys != null) { + this.keys.addAll(keys); + } + return this; + } + + public NetworkAclHttpMessageSignature build() { + return new NetworkAclHttpMessageSignature(keys, 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/NetworkAclHttpMessageSignatureKey.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclHttpMessageSignatureKey.java new file mode 100644 index 000000000..55474b945 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclHttpMessageSignatureKey.java @@ -0,0 +1,128 @@ +/** + * 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 = NetworkAclHttpMessageSignatureKey.Builder.class) +public final class NetworkAclHttpMessageSignatureKey { + private final String id; + + private final Map additionalProperties; + + private NetworkAclHttpMessageSignatureKey(String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return Auth0-generated identifier for the key, as returned by POST /api/v2/keys/network-acls. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof NetworkAclHttpMessageSignatureKey && equalTo((NetworkAclHttpMessageSignatureKey) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(NetworkAclHttpMessageSignatureKey other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

Auth0-generated identifier for the key, as returned by POST /api/v2/keys/network-acls.

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

Auth0-generated identifier for the key, as returned by POST /api/v2/keys/network-acls.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public NetworkAclHttpMessageSignatureKey build() { + return new NetworkAclHttpMessageSignatureKey(id, 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/NetworkAclMatch.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java index 381be950c..517b92e26 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java @@ -45,6 +45,8 @@ public final class NetworkAclMatch { private final Optional> connectingIpv6Cidrs; + private final Optional httpMessageSignature; + private final Map additionalProperties; private NetworkAclMatch( @@ -60,6 +62,7 @@ private NetworkAclMatch( Optional> hostnames, Optional> connectingIpv4Cidrs, Optional> connectingIpv6Cidrs, + Optional httpMessageSignature, Map additionalProperties) { this.asns = asns; this.auth0Managed = auth0Managed; @@ -73,6 +76,7 @@ private NetworkAclMatch( this.hostnames = hostnames; this.connectingIpv4Cidrs = connectingIpv4Cidrs; this.connectingIpv6Cidrs = connectingIpv6Cidrs; + this.httpMessageSignature = httpMessageSignature; this.additionalProperties = additionalProperties; } @@ -136,6 +140,11 @@ public Optional> getConnectingIpv6Cidrs() { return connectingIpv6Cidrs; } + @JsonProperty("http_message_signature") + public Optional getHttpMessageSignature() { + return httpMessageSignature; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -159,7 +168,8 @@ private boolean equalTo(NetworkAclMatch other) { && userAgents.equals(other.userAgents) && hostnames.equals(other.hostnames) && connectingIpv4Cidrs.equals(other.connectingIpv4Cidrs) - && connectingIpv6Cidrs.equals(other.connectingIpv6Cidrs); + && connectingIpv6Cidrs.equals(other.connectingIpv6Cidrs) + && httpMessageSignature.equals(other.httpMessageSignature); } @java.lang.Override @@ -176,7 +186,8 @@ public int hashCode() { this.userAgents, this.hostnames, this.connectingIpv4Cidrs, - this.connectingIpv6Cidrs); + this.connectingIpv6Cidrs, + this.httpMessageSignature); } @java.lang.Override @@ -214,6 +225,8 @@ public static final class Builder { private Optional> connectingIpv6Cidrs = Optional.empty(); + private Optional httpMessageSignature = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,6 +245,7 @@ public Builder from(NetworkAclMatch other) { hostnames(other.getHostnames()); connectingIpv4Cidrs(other.getConnectingIpv4Cidrs()); connectingIpv6Cidrs(other.getConnectingIpv6Cidrs()); + httpMessageSignature(other.getHttpMessageSignature()); return this; } @@ -367,6 +381,17 @@ public Builder connectingIpv6Cidrs(List connectingIpv6Cidrs) { return this; } + @JsonSetter(value = "http_message_signature", nulls = Nulls.SKIP) + public Builder httpMessageSignature(Optional httpMessageSignature) { + this.httpMessageSignature = httpMessageSignature; + return this; + } + + public Builder httpMessageSignature(NetworkAclHttpMessageSignature httpMessageSignature) { + this.httpMessageSignature = Optional.ofNullable(httpMessageSignature); + return this; + } + public NetworkAclMatch build() { return new NetworkAclMatch( asns, @@ -381,6 +406,7 @@ public NetworkAclMatch build() { hostnames, connectingIpv4Cidrs, connectingIpv6Cidrs, + httpMessageSignature, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java index 8f3c4bf3f..d38271b67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java @@ -50,6 +50,9 @@ public final class OauthScope { public static final OauthScope DELETE_ORGANIZATIONS = new OauthScope(Value.DELETE_ORGANIZATIONS, "delete:organizations"); + public static final OauthScope DELETE_NETWORK_ACL_KEYS = + new OauthScope(Value.DELETE_NETWORK_ACL_KEYS, "delete:network_acl_keys"); + public static final OauthScope READ_USER_EFFECTIVE_ROLES = new OauthScope(Value.READ_USER_EFFECTIVE_ROLES, "read:user_effective_roles"); @@ -363,6 +366,9 @@ public final class OauthScope { public static final OauthScope DELETE_EMAIL_PROVIDER = new OauthScope(Value.DELETE_EMAIL_PROVIDER, "delete:email_provider"); + public static final OauthScope UPDATE_ORGANIZATION_TEMPLATES = + new OauthScope(Value.UPDATE_ORGANIZATION_TEMPLATES, "update:organization_templates"); + public static final OauthScope DELETE_CUSTOM_DOMAINS = new OauthScope(Value.DELETE_CUSTOM_DOMAINS, "delete:custom_domains"); @@ -445,6 +451,9 @@ public final class OauthScope { public static final OauthScope DELETE_RULES_CONFIGS = new OauthScope(Value.DELETE_RULES_CONFIGS, "delete:rules_configs"); + public static final OauthScope READ_ORGANIZATION_TEMPLATES = + new OauthScope(Value.READ_ORGANIZATION_TEMPLATES, "read:organization_templates"); + public static final OauthScope READ_USER_ATTRIBUTE_PROFILES = new OauthScope(Value.READ_USER_ATTRIBUTE_PROFILES, "read:user_attribute_profiles"); @@ -577,6 +586,9 @@ public final class OauthScope { public static final OauthScope READ_PROMPTS = new OauthScope(Value.READ_PROMPTS, "read:prompts"); + public static final OauthScope CREATE_ORGANIZATION_TEMPLATES = + new OauthScope(Value.CREATE_ORGANIZATION_TEMPLATES, "create:organization_templates"); + public static final OauthScope UPDATE_USERS_APP_METADATA = new OauthScope(Value.UPDATE_USERS_APP_METADATA, "update:users_app_metadata"); @@ -728,6 +740,8 @@ public T visit(Visitor visitor) { return visitor.visitDeleteOrganizationGroupRoles(); case DELETE_ORGANIZATIONS: return visitor.visitDeleteOrganizations(); + case DELETE_NETWORK_ACL_KEYS: + return visitor.visitDeleteNetworkAclKeys(); case READ_USER_EFFECTIVE_ROLES: return visitor.visitReadUserEffectiveRoles(); case CREATE_ORGANIZATION_MEMBER_ROLES: @@ -962,6 +976,8 @@ public T visit(Visitor visitor) { return visitor.visitCreateGuardianEnrollmentTickets(); case DELETE_EMAIL_PROVIDER: return visitor.visitDeleteEmailProvider(); + case UPDATE_ORGANIZATION_TEMPLATES: + return visitor.visitUpdateOrganizationTemplates(); case DELETE_CUSTOM_DOMAINS: return visitor.visitDeleteCustomDomains(); case CREATE_NETWORK_ACLS: @@ -1026,6 +1042,8 @@ public T visit(Visitor visitor) { return visitor.visitCreateOrganizationConnections(); case DELETE_RULES_CONFIGS: return visitor.visitDeleteRulesConfigs(); + case READ_ORGANIZATION_TEMPLATES: + return visitor.visitReadOrganizationTemplates(); case READ_USER_ATTRIBUTE_PROFILES: return visitor.visitReadUserAttributeProfiles(); case READ_EMAIL_PROVIDER: @@ -1124,6 +1142,8 @@ public T visit(Visitor visitor) { return visitor.visitUpdateConnectionProfiles(); case READ_PROMPTS: return visitor.visitReadPrompts(); + case CREATE_ORGANIZATION_TEMPLATES: + return visitor.visitCreateOrganizationTemplates(); case UPDATE_USERS_APP_METADATA: return visitor.visitUpdateUsersAppMetadata(); case DELETE_NETWORK_ACLS: @@ -1229,6 +1249,8 @@ public static OauthScope valueOf(String value) { return DELETE_ORGANIZATION_GROUP_ROLES; case "delete:organizations": return DELETE_ORGANIZATIONS; + case "delete:network_acl_keys": + return DELETE_NETWORK_ACL_KEYS; case "read:user_effective_roles": return READ_USER_EFFECTIVE_ROLES; case "create:organization_member_roles": @@ -1463,6 +1485,8 @@ public static OauthScope valueOf(String value) { return CREATE_GUARDIAN_ENROLLMENT_TICKETS; case "delete:email_provider": return DELETE_EMAIL_PROVIDER; + case "update:organization_templates": + return UPDATE_ORGANIZATION_TEMPLATES; case "delete:custom_domains": return DELETE_CUSTOM_DOMAINS; case "create:network_acls": @@ -1527,6 +1551,8 @@ public static OauthScope valueOf(String value) { return CREATE_ORGANIZATION_CONNECTIONS; case "delete:rules_configs": return DELETE_RULES_CONFIGS; + case "read:organization_templates": + return READ_ORGANIZATION_TEMPLATES; case "read:user_attribute_profiles": return READ_USER_ATTRIBUTE_PROFILES; case "read:email_provider": @@ -1625,6 +1651,8 @@ public static OauthScope valueOf(String value) { return UPDATE_CONNECTION_PROFILES; case "read:prompts": return READ_PROMPTS; + case "create:organization_templates": + return CREATE_ORGANIZATION_TEMPLATES; case "update:users_app_metadata": return UPDATE_USERS_APP_METADATA; case "delete:network_acls": @@ -2181,10 +2209,18 @@ public enum Value { DELETE_ORGANIZATION_CLIENTS, + CREATE_ORGANIZATION_TEMPLATES, + + READ_ORGANIZATION_TEMPLATES, + + UPDATE_ORGANIZATION_TEMPLATES, + CREATE_NETWORK_ACL_KEYS, READ_NETWORK_ACL_KEYS, + DELETE_NETWORK_ACL_KEYS, + UNKNOWN } @@ -2677,10 +2713,18 @@ public interface Visitor { T visitDeleteOrganizationClients(); + T visitCreateOrganizationTemplates(); + + T visitReadOrganizationTemplates(); + + T visitUpdateOrganizationTemplates(); + T visitCreateNetworkAclKeys(); T visitReadNetworkAclKeys(); + T visitDeleteNetworkAclKeys(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationDeletionBehaviorEnum.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationDeletionBehaviorEnum.java new file mode 100644 index 000000000..f433d6789 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationDeletionBehaviorEnum.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 OrganizationDeletionBehaviorEnum { + public static final OrganizationDeletionBehaviorEnum ALLOW = + new OrganizationDeletionBehaviorEnum(Value.ALLOW, "allow"); + + public static final OrganizationDeletionBehaviorEnum ALLOW_IF_EMPTY = + new OrganizationDeletionBehaviorEnum(Value.ALLOW_IF_EMPTY, "allow_if_empty"); + + private final Value value; + + private final String string; + + OrganizationDeletionBehaviorEnum(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 OrganizationDeletionBehaviorEnum + && this.string.equals(((OrganizationDeletionBehaviorEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ALLOW: + return visitor.visitAllow(); + case ALLOW_IF_EMPTY: + return visitor.visitAllowIfEmpty(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static OrganizationDeletionBehaviorEnum valueOf(String value) { + switch (value) { + case "allow": + return ALLOW; + case "allow_if_empty": + return ALLOW_IF_EMPTY; + default: + return new OrganizationDeletionBehaviorEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ALLOW, + + ALLOW_IF_EMPTY, + + UNKNOWN + } + + public interface Visitor { + T visitAllow(); + + T visitAllowIfEmpty(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplate.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplate.java new file mode 100644 index 000000000..d0463bb15 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplate.java @@ -0,0 +1,648 @@ +/** + * 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.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.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = OrganizationTemplate.Builder.class) +public final class OrganizationTemplate { + private final Optional id; + + private final Optional name; + + private final Optional isDefault; + + private final Optional organizationDeletionBehavior; + + private final Optional connectionDeletionBehavior; + + private final Optional enforcePermissionCeiling; + + private final Optional enforceSelfAssignmentRestriction; + + private final Optional connectionProfileId; + + private final Optional userAttributeProfileId; + + private final Optional> allowedStrategies; + + private final Optional invitationLandingClientId; + + private final Optional> adminRolesAssignment; + + private final OptionalNullable useForOrganizationDiscovery; + + private final OptionalNullable roleVisibilityPolicy; + + private final Optional createdAt; + + private final Optional updatedAt; + + private final Map additionalProperties; + + private OrganizationTemplate( + Optional id, + Optional name, + Optional isDefault, + Optional organizationDeletionBehavior, + Optional connectionDeletionBehavior, + Optional enforcePermissionCeiling, + Optional enforceSelfAssignmentRestriction, + Optional connectionProfileId, + Optional userAttributeProfileId, + Optional> allowedStrategies, + Optional invitationLandingClientId, + Optional> adminRolesAssignment, + OptionalNullable useForOrganizationDiscovery, + OptionalNullable roleVisibilityPolicy, + Optional createdAt, + Optional updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.isDefault = isDefault; + this.organizationDeletionBehavior = organizationDeletionBehavior; + this.connectionDeletionBehavior = connectionDeletionBehavior; + this.enforcePermissionCeiling = enforcePermissionCeiling; + this.enforceSelfAssignmentRestriction = enforceSelfAssignmentRestriction; + this.connectionProfileId = connectionProfileId; + this.userAttributeProfileId = userAttributeProfileId; + this.allowedStrategies = allowedStrategies; + this.invitationLandingClientId = invitationLandingClientId; + this.adminRolesAssignment = adminRolesAssignment; + this.useForOrganizationDiscovery = useForOrganizationDiscovery; + this.roleVisibilityPolicy = roleVisibilityPolicy; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return Organization Template identifier. + */ + @JsonProperty("id") + public Optional getId() { + return id; + } + + /** + * @return The name of the organization template. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Whether this is the default template applied to new organizations. + */ + @JsonProperty("is_default") + public Optional getIsDefault() { + return isDefault; + } + + @JsonProperty("organization_deletion_behavior") + public Optional getOrganizationDeletionBehavior() { + return organizationDeletionBehavior; + } + + @JsonProperty("connection_deletion_behavior") + public Optional getConnectionDeletionBehavior() { + return connectionDeletionBehavior; + } + + /** + * @return Whether to enforce permission ceiling for organizations using this template. + */ + @JsonProperty("enforce_permission_ceiling") + public Optional getEnforcePermissionCeiling() { + return enforcePermissionCeiling; + } + + /** + * @return Whether to enforce self-assignment restrictions for organizations using this template. + */ + @JsonProperty("enforce_self_assignment_restriction") + public Optional getEnforceSelfAssignmentRestriction() { + return enforceSelfAssignmentRestriction; + } + + /** + * @return The connection profile to apply to new connections. + */ + @JsonProperty("connection_profile_id") + public Optional getConnectionProfileId() { + return connectionProfileId; + } + + /** + * @return The user attribute profile to apply to organizations. + */ + @JsonProperty("user_attribute_profile_id") + public Optional getUserAttributeProfileId() { + return userAttributeProfileId; + } + + /** + * @return List of allowed connection strategies for this template. + */ + @JsonProperty("allowed_strategies") + public Optional> getAllowedStrategies() { + return allowedStrategies; + } + + /** + * @return The client ID for the invitation landing page. + */ + @JsonProperty("invitation_landing_client_id") + public Optional getInvitationLandingClientId() { + return invitationLandingClientId; + } + + /** + * @return Default admin roles to assign to organization creators. + */ + @JsonProperty("admin_roles_assignment") + public Optional> getAdminRolesAssignment() { + return adminRolesAssignment; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("use_for_organization_discovery") + public OptionalNullable getUseForOrganizationDiscovery() { + if (useForOrganizationDiscovery == null) { + return OptionalNullable.absent(); + } + return useForOrganizationDiscovery; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("role_visibility_policy") + public OptionalNullable getRoleVisibilityPolicy() { + if (roleVisibilityPolicy == null) { + return OptionalNullable.absent(); + } + return roleVisibilityPolicy; + } + + /** + * @return The ISO 8601 formatted timestamp representing when the template was created. + */ + @JsonProperty("created_at") + public Optional getCreatedAt() { + return createdAt; + } + + /** + * @return The ISO 8601 formatted timestamp representing when the template was last updated. + */ + @JsonProperty("updated_at") + public Optional getUpdatedAt() { + return updatedAt; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("use_for_organization_discovery") + private OptionalNullable _getUseForOrganizationDiscovery() { + return useForOrganizationDiscovery; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("role_visibility_policy") + private OptionalNullable _getRoleVisibilityPolicy() { + return roleVisibilityPolicy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof OrganizationTemplate && equalTo((OrganizationTemplate) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(OrganizationTemplate other) { + return id.equals(other.id) + && name.equals(other.name) + && isDefault.equals(other.isDefault) + && organizationDeletionBehavior.equals(other.organizationDeletionBehavior) + && connectionDeletionBehavior.equals(other.connectionDeletionBehavior) + && enforcePermissionCeiling.equals(other.enforcePermissionCeiling) + && enforceSelfAssignmentRestriction.equals(other.enforceSelfAssignmentRestriction) + && connectionProfileId.equals(other.connectionProfileId) + && userAttributeProfileId.equals(other.userAttributeProfileId) + && allowedStrategies.equals(other.allowedStrategies) + && invitationLandingClientId.equals(other.invitationLandingClientId) + && adminRolesAssignment.equals(other.adminRolesAssignment) + && useForOrganizationDiscovery.equals(other.useForOrganizationDiscovery) + && roleVisibilityPolicy.equals(other.roleVisibilityPolicy) + && createdAt.equals(other.createdAt) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.id, + this.name, + this.isDefault, + this.organizationDeletionBehavior, + this.connectionDeletionBehavior, + this.enforcePermissionCeiling, + this.enforceSelfAssignmentRestriction, + this.connectionProfileId, + this.userAttributeProfileId, + this.allowedStrategies, + this.invitationLandingClientId, + this.adminRolesAssignment, + this.useForOrganizationDiscovery, + this.roleVisibilityPolicy, + this.createdAt, + this.updatedAt); + } + + @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 id = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional isDefault = Optional.empty(); + + private Optional organizationDeletionBehavior = Optional.empty(); + + private Optional connectionDeletionBehavior = Optional.empty(); + + private Optional enforcePermissionCeiling = Optional.empty(); + + private Optional enforceSelfAssignmentRestriction = Optional.empty(); + + private Optional connectionProfileId = Optional.empty(); + + private Optional userAttributeProfileId = Optional.empty(); + + private Optional> allowedStrategies = Optional.empty(); + + private Optional invitationLandingClientId = Optional.empty(); + + private Optional> adminRolesAssignment = Optional.empty(); + + private OptionalNullable useForOrganizationDiscovery = + OptionalNullable.absent(); + + private OptionalNullable roleVisibilityPolicy = + OptionalNullable.absent(); + + private Optional createdAt = Optional.empty(); + + private Optional updatedAt = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(OrganizationTemplate other) { + id(other.getId()); + name(other.getName()); + isDefault(other.getIsDefault()); + organizationDeletionBehavior(other.getOrganizationDeletionBehavior()); + connectionDeletionBehavior(other.getConnectionDeletionBehavior()); + enforcePermissionCeiling(other.getEnforcePermissionCeiling()); + enforceSelfAssignmentRestriction(other.getEnforceSelfAssignmentRestriction()); + connectionProfileId(other.getConnectionProfileId()); + userAttributeProfileId(other.getUserAttributeProfileId()); + allowedStrategies(other.getAllowedStrategies()); + invitationLandingClientId(other.getInvitationLandingClientId()); + adminRolesAssignment(other.getAdminRolesAssignment()); + useForOrganizationDiscovery(other.getUseForOrganizationDiscovery()); + roleVisibilityPolicy(other.getRoleVisibilityPolicy()); + createdAt(other.getCreatedAt()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

Organization Template identifier.

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

The name of the organization template.

+ */ + @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; + } + + /** + *

Whether this is the default template applied to new organizations.

+ */ + @JsonSetter(value = "is_default", nulls = Nulls.SKIP) + public Builder isDefault(Optional isDefault) { + this.isDefault = isDefault; + return this; + } + + public Builder isDefault(Boolean isDefault) { + this.isDefault = Optional.ofNullable(isDefault); + return this; + } + + @JsonSetter(value = "organization_deletion_behavior", nulls = Nulls.SKIP) + public Builder organizationDeletionBehavior( + Optional organizationDeletionBehavior) { + this.organizationDeletionBehavior = organizationDeletionBehavior; + return this; + } + + public Builder organizationDeletionBehavior(OrganizationDeletionBehaviorEnum organizationDeletionBehavior) { + this.organizationDeletionBehavior = Optional.ofNullable(organizationDeletionBehavior); + return this; + } + + @JsonSetter(value = "connection_deletion_behavior", nulls = Nulls.SKIP) + public Builder connectionDeletionBehavior(Optional connectionDeletionBehavior) { + this.connectionDeletionBehavior = connectionDeletionBehavior; + return this; + } + + public Builder connectionDeletionBehavior(ConnectionDeletionBehaviorEnum connectionDeletionBehavior) { + this.connectionDeletionBehavior = Optional.ofNullable(connectionDeletionBehavior); + return this; + } + + /** + *

Whether to enforce permission ceiling for organizations using this template.

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

Whether to enforce self-assignment restrictions for organizations using this template.

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

The connection profile to apply to new connections.

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

The user attribute profile to apply to organizations.

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

List of allowed connection strategies for this template.

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

The client ID for the invitation landing page.

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

Default admin roles to assign to organization creators.

+ */ + @JsonSetter(value = "admin_roles_assignment", nulls = Nulls.SKIP) + public Builder adminRolesAssignment(Optional> adminRolesAssignment) { + this.adminRolesAssignment = adminRolesAssignment; + return this; + } + + public Builder adminRolesAssignment(List adminRolesAssignment) { + this.adminRolesAssignment = Optional.ofNullable(adminRolesAssignment); + return this; + } + + @JsonSetter(value = "use_for_organization_discovery", nulls = Nulls.SKIP) + public Builder useForOrganizationDiscovery( + @Nullable + OptionalNullable useForOrganizationDiscovery) { + this.useForOrganizationDiscovery = useForOrganizationDiscovery; + return this; + } + + public Builder useForOrganizationDiscovery( + OrganizationTemplateUseForOrganizationDiscovery useForOrganizationDiscovery) { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery); + return this; + } + + public Builder useForOrganizationDiscovery( + Optional useForOrganizationDiscovery) { + if (useForOrganizationDiscovery.isPresent()) { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery.get()); + } else { + this.useForOrganizationDiscovery = OptionalNullable.absent(); + } + return this; + } + + public Builder useForOrganizationDiscovery( + com.auth0.client.mgmt.core.Nullable + useForOrganizationDiscovery) { + if (useForOrganizationDiscovery.isNull()) { + this.useForOrganizationDiscovery = OptionalNullable.ofNull(); + } else if (useForOrganizationDiscovery.isEmpty()) { + this.useForOrganizationDiscovery = OptionalNullable.absent(); + } else { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery.get()); + } + return this; + } + + @JsonSetter(value = "role_visibility_policy", nulls = Nulls.SKIP) + public Builder roleVisibilityPolicy( + @Nullable OptionalNullable roleVisibilityPolicy) { + this.roleVisibilityPolicy = roleVisibilityPolicy; + return this; + } + + public Builder roleVisibilityPolicy(OrganizationTemplateRoleVisibilityPolicy roleVisibilityPolicy) { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy); + return this; + } + + public Builder roleVisibilityPolicy(Optional roleVisibilityPolicy) { + if (roleVisibilityPolicy.isPresent()) { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy.get()); + } else { + this.roleVisibilityPolicy = OptionalNullable.absent(); + } + return this; + } + + public Builder roleVisibilityPolicy( + com.auth0.client.mgmt.core.Nullable roleVisibilityPolicy) { + if (roleVisibilityPolicy.isNull()) { + this.roleVisibilityPolicy = OptionalNullable.ofNull(); + } else if (roleVisibilityPolicy.isEmpty()) { + this.roleVisibilityPolicy = OptionalNullable.absent(); + } else { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy.get()); + } + return this; + } + + /** + *

The ISO 8601 formatted timestamp representing when the template was created.

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

The ISO 8601 formatted timestamp representing when the template was last updated.

+ */ + @JsonSetter(value = "updated_at", nulls = Nulls.SKIP) + public Builder updatedAt(Optional updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Builder updatedAt(OffsetDateTime updatedAt) { + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + public OrganizationTemplate build() { + return new OrganizationTemplate( + id, + name, + isDefault, + organizationDeletionBehavior, + connectionDeletionBehavior, + enforcePermissionCeiling, + enforceSelfAssignmentRestriction, + connectionProfileId, + userAttributeProfileId, + allowedStrategies, + invitationLandingClientId, + adminRolesAssignment, + useForOrganizationDiscovery, + roleVisibilityPolicy, + createdAt, + updatedAt, + 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/OrganizationTemplateAllowedStrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateAllowedStrategyEnum.java new file mode 100644 index 000000000..d2ffee493 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateAllowedStrategyEnum.java @@ -0,0 +1,141 @@ +/** + * 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 OrganizationTemplateAllowedStrategyEnum { + public static final OrganizationTemplateAllowedStrategyEnum PINGFEDERATE = + new OrganizationTemplateAllowedStrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + public static final OrganizationTemplateAllowedStrategyEnum OKTA = + new OrganizationTemplateAllowedStrategyEnum(Value.OKTA, "okta"); + + public static final OrganizationTemplateAllowedStrategyEnum SAMLP = + new OrganizationTemplateAllowedStrategyEnum(Value.SAMLP, "samlp"); + + public static final OrganizationTemplateAllowedStrategyEnum WAAD = + new OrganizationTemplateAllowedStrategyEnum(Value.WAAD, "waad"); + + public static final OrganizationTemplateAllowedStrategyEnum ADFS = + new OrganizationTemplateAllowedStrategyEnum(Value.ADFS, "adfs"); + + public static final OrganizationTemplateAllowedStrategyEnum OIDC = + new OrganizationTemplateAllowedStrategyEnum(Value.OIDC, "oidc"); + + public static final OrganizationTemplateAllowedStrategyEnum GOOGLE_APPS = + new OrganizationTemplateAllowedStrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + OrganizationTemplateAllowedStrategyEnum(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 OrganizationTemplateAllowedStrategyEnum + && this.string.equals(((OrganizationTemplateAllowedStrategyEnum) 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 OKTA: + return visitor.visitOkta(); + case SAMLP: + return visitor.visitSamlp(); + case WAAD: + return visitor.visitWaad(); + case ADFS: + return visitor.visitAdfs(); + case OIDC: + return visitor.visitOidc(); + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static OrganizationTemplateAllowedStrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + case "okta": + return OKTA; + case "samlp": + return SAMLP; + case "waad": + return WAAD; + case "adfs": + return ADFS; + case "oidc": + return OIDC; + case "google-apps": + return GOOGLE_APPS; + default: + return new OrganizationTemplateAllowedStrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ADFS, + + GOOGLE_APPS, + + OIDC, + + OKTA, + + PINGFEDERATE, + + SAMLP, + + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitAdfs(); + + T visitGoogleApps(); + + T visitOidc(); + + T visitOkta(); + + T visitPingfederate(); + + T visitSamlp(); + + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateAssignedOrganization.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateAssignedOrganization.java new file mode 100644 index 000000000..7bc0006b0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateAssignedOrganization.java @@ -0,0 +1,129 @@ +/** + * 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 = OrganizationTemplateAssignedOrganization.Builder.class) +public final class OrganizationTemplateAssignedOrganization { + private final String id; + + private final Map additionalProperties; + + private OrganizationTemplateAssignedOrganization(String id, Map additionalProperties) { + this.id = id; + this.additionalProperties = additionalProperties; + } + + /** + * @return Organization identifier. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof OrganizationTemplateAssignedOrganization + && equalTo((OrganizationTemplateAssignedOrganization) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(OrganizationTemplateAssignedOrganization other) { + return id.equals(other.id); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

Organization identifier.

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

Organization identifier.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + public OrganizationTemplateAssignedOrganization build() { + return new OrganizationTemplateAssignedOrganization(id, 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/OrganizationTemplateRoleVisibilityEnum.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateRoleVisibilityEnum.java new file mode 100644 index 000000000..d3a4bf453 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateRoleVisibilityEnum.java @@ -0,0 +1,97 @@ +/** + * 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 OrganizationTemplateRoleVisibilityEnum { + public static final OrganizationTemplateRoleVisibilityEnum HIDDEN = + new OrganizationTemplateRoleVisibilityEnum(Value.HIDDEN, "hidden"); + + public static final OrganizationTemplateRoleVisibilityEnum WRITE = + new OrganizationTemplateRoleVisibilityEnum(Value.WRITE, "write"); + + public static final OrganizationTemplateRoleVisibilityEnum READ_ONLY = + new OrganizationTemplateRoleVisibilityEnum(Value.READ_ONLY, "read_only"); + + private final Value value; + + private final String string; + + OrganizationTemplateRoleVisibilityEnum(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 OrganizationTemplateRoleVisibilityEnum + && this.string.equals(((OrganizationTemplateRoleVisibilityEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case HIDDEN: + return visitor.visitHidden(); + case WRITE: + return visitor.visitWrite(); + case READ_ONLY: + return visitor.visitReadOnly(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static OrganizationTemplateRoleVisibilityEnum valueOf(String value) { + switch (value) { + case "hidden": + return HIDDEN; + case "write": + return WRITE; + case "read_only": + return READ_ONLY; + default: + return new OrganizationTemplateRoleVisibilityEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WRITE, + + READ_ONLY, + + HIDDEN, + + UNKNOWN + } + + public interface Visitor { + T visitWrite(); + + T visitReadOnly(); + + T visitHidden(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateRoleVisibilityOverride.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateRoleVisibilityOverride.java new file mode 100644 index 000000000..ba95d29c9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateRoleVisibilityOverride.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.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 = OrganizationTemplateRoleVisibilityOverride.Builder.class) +public final class OrganizationTemplateRoleVisibilityOverride { + private final String roleId; + + private final OrganizationTemplateRoleVisibilityEnum access; + + private final Map additionalProperties; + + private OrganizationTemplateRoleVisibilityOverride( + String roleId, OrganizationTemplateRoleVisibilityEnum access, Map additionalProperties) { + this.roleId = roleId; + this.access = access; + this.additionalProperties = additionalProperties; + } + + /** + * @return The role identifier. + */ + @JsonProperty("role_id") + public String getRoleId() { + return roleId; + } + + @JsonProperty("access") + public OrganizationTemplateRoleVisibilityEnum getAccess() { + return access; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof OrganizationTemplateRoleVisibilityOverride + && equalTo((OrganizationTemplateRoleVisibilityOverride) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(OrganizationTemplateRoleVisibilityOverride other) { + return roleId.equals(other.roleId) && access.equals(other.access); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.roleId, this.access); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static RoleIdStage builder() { + return new Builder(); + } + + public interface RoleIdStage { + /** + *

The role identifier.

+ */ + AccessStage roleId(@NotNull String roleId); + + Builder from(OrganizationTemplateRoleVisibilityOverride other); + } + + public interface AccessStage { + _FinalStage access(@NotNull OrganizationTemplateRoleVisibilityEnum access); + } + + public interface _FinalStage { + OrganizationTemplateRoleVisibilityOverride build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements RoleIdStage, AccessStage, _FinalStage { + private String roleId; + + private OrganizationTemplateRoleVisibilityEnum access; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(OrganizationTemplateRoleVisibilityOverride other) { + roleId(other.getRoleId()); + access(other.getAccess()); + return this; + } + + /** + *

The role identifier.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("role_id") + public AccessStage roleId(@NotNull String roleId) { + this.roleId = Objects.requireNonNull(roleId, "roleId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("access") + public _FinalStage access(@NotNull OrganizationTemplateRoleVisibilityEnum access) { + this.access = Objects.requireNonNull(access, "access must not be null"); + return this; + } + + @java.lang.Override + public OrganizationTemplateRoleVisibilityOverride build() { + return new OrganizationTemplateRoleVisibilityOverride(roleId, access, 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/OrganizationTemplateRoleVisibilityPolicy.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateRoleVisibilityPolicy.java new file mode 100644 index 000000000..959553224 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateRoleVisibilityPolicy.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.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 = OrganizationTemplateRoleVisibilityPolicy.Builder.class) +public final class OrganizationTemplateRoleVisibilityPolicy { + private final OrganizationTemplateRoleVisibilityEnum defaultValue; + + private final Optional> overrides; + + private final Map additionalProperties; + + private OrganizationTemplateRoleVisibilityPolicy( + OrganizationTemplateRoleVisibilityEnum defaultValue, + Optional> overrides, + Map additionalProperties) { + this.defaultValue = defaultValue; + this.overrides = overrides; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("default_value") + public OrganizationTemplateRoleVisibilityEnum getDefaultValue() { + return defaultValue; + } + + /** + * @return Role-specific visibility overrides. + */ + @JsonProperty("overrides") + public Optional> getOverrides() { + return overrides; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof OrganizationTemplateRoleVisibilityPolicy + && equalTo((OrganizationTemplateRoleVisibilityPolicy) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(OrganizationTemplateRoleVisibilityPolicy other) { + return defaultValue.equals(other.defaultValue) && overrides.equals(other.overrides); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.defaultValue, this.overrides); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static DefaultValueStage builder() { + return new Builder(); + } + + public interface DefaultValueStage { + _FinalStage defaultValue(@NotNull OrganizationTemplateRoleVisibilityEnum defaultValue); + + Builder from(OrganizationTemplateRoleVisibilityPolicy other); + } + + public interface _FinalStage { + OrganizationTemplateRoleVisibilityPolicy build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Role-specific visibility overrides.

+ */ + _FinalStage overrides(Optional> overrides); + + _FinalStage overrides(List overrides); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements DefaultValueStage, _FinalStage { + private OrganizationTemplateRoleVisibilityEnum defaultValue; + + private Optional> overrides = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(OrganizationTemplateRoleVisibilityPolicy other) { + defaultValue(other.getDefaultValue()); + overrides(other.getOverrides()); + return this; + } + + @java.lang.Override + @JsonSetter("default_value") + public _FinalStage defaultValue(@NotNull OrganizationTemplateRoleVisibilityEnum defaultValue) { + this.defaultValue = Objects.requireNonNull(defaultValue, "defaultValue must not be null"); + return this; + } + + /** + *

Role-specific visibility overrides.

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

Role-specific visibility overrides.

+ */ + @java.lang.Override + @JsonSetter(value = "overrides", nulls = Nulls.SKIP) + public _FinalStage overrides(Optional> overrides) { + this.overrides = overrides; + return this; + } + + @java.lang.Override + public OrganizationTemplateRoleVisibilityPolicy build() { + return new OrganizationTemplateRoleVisibilityPolicy(defaultValue, overrides, 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/OrganizationTemplateUseForOrganizationDiscovery.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateUseForOrganizationDiscovery.java new file mode 100644 index 000000000..62db65e99 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationTemplateUseForOrganizationDiscovery.java @@ -0,0 +1,174 @@ +/** + * 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 = OrganizationTemplateUseForOrganizationDiscovery.Builder.class) +public final class OrganizationTemplateUseForOrganizationDiscovery { + private final boolean defaultValue; + + private final Optional> allowedValues; + + private final Map additionalProperties; + + private OrganizationTemplateUseForOrganizationDiscovery( + boolean defaultValue, Optional> allowedValues, Map additionalProperties) { + this.defaultValue = defaultValue; + this.allowedValues = allowedValues; + this.additionalProperties = additionalProperties; + } + + /** + * @return The default value for organization discovery. + */ + @JsonProperty("default_value") + public boolean getDefaultValue() { + return defaultValue; + } + + /** + * @return The allowed values for organization discovery. + */ + @JsonProperty("allowed_values") + public Optional> getAllowedValues() { + return allowedValues; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof OrganizationTemplateUseForOrganizationDiscovery + && equalTo((OrganizationTemplateUseForOrganizationDiscovery) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(OrganizationTemplateUseForOrganizationDiscovery other) { + return defaultValue == other.defaultValue && allowedValues.equals(other.allowedValues); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.defaultValue, this.allowedValues); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static DefaultValueStage builder() { + return new Builder(); + } + + public interface DefaultValueStage { + /** + *

The default value for organization discovery.

+ */ + _FinalStage defaultValue(boolean defaultValue); + + Builder from(OrganizationTemplateUseForOrganizationDiscovery other); + } + + public interface _FinalStage { + OrganizationTemplateUseForOrganizationDiscovery build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

The allowed values for organization discovery.

+ */ + _FinalStage allowedValues(Optional> allowedValues); + + _FinalStage allowedValues(List allowedValues); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements DefaultValueStage, _FinalStage { + private boolean defaultValue; + + private Optional> allowedValues = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(OrganizationTemplateUseForOrganizationDiscovery other) { + defaultValue(other.getDefaultValue()); + allowedValues(other.getAllowedValues()); + return this; + } + + /** + *

The default value for organization discovery.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("default_value") + public _FinalStage defaultValue(boolean defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + *

The allowed values for organization discovery.

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

The allowed values for organization discovery.

+ */ + @java.lang.Override + @JsonSetter(value = "allowed_values", nulls = Nulls.SKIP) + public _FinalStage allowedValues(Optional> allowedValues) { + this.allowedValues = allowedValues; + return this; + } + + @java.lang.Override + public OrganizationTemplateUseForOrganizationDiscovery build() { + return new OrganizationTemplateUseForOrganizationDiscovery( + defaultValue, allowedValues, 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/RotateClientSecretResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java index dfa7d2420..f6c2c7bcb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java @@ -132,6 +132,8 @@ public final class RotateClientSecretResponseContent { private final Optional expressConfiguration; + private final Optional b2BIntegrationConfiguration; + private final Optional myOrganizationConfiguration; private final Optional identityAssertionAuthorizationGrant; @@ -209,6 +211,7 @@ private RotateClientSecretResponseContent( OptionalNullable parRequestExpiry, Optional tokenQuota, Optional expressConfiguration, + Optional b2BIntegrationConfiguration, Optional myOrganizationConfiguration, Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, @@ -274,6 +277,7 @@ private RotateClientSecretResponseContent( this.parRequestExpiry = parRequestExpiry; this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -684,6 +688,11 @@ public Optional getExpressConfiguration() { return expressConfiguration; } + @JsonProperty("b2b_integration_configuration") + public Optional getB2BIntegrationConfiguration() { + return b2BIntegrationConfiguration; + } + @JsonProperty("my_organization_configuration") public Optional getMyOrganizationConfiguration() { return myOrganizationConfiguration; @@ -858,6 +867,7 @@ private boolean equalTo(RotateClientSecretResponseContent other) { && parRequestExpiry.equals(other.parRequestExpiry) && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) + && b2BIntegrationConfiguration.equals(other.b2BIntegrationConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) @@ -927,6 +937,7 @@ public int hashCode() { this.parRequestExpiry, this.tokenQuota, this.expressConfiguration, + this.b2BIntegrationConfiguration, this.myOrganizationConfiguration, this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, @@ -1059,6 +1070,8 @@ public static final class Builder { private Optional expressConfiguration = Optional.empty(); + private Optional b2BIntegrationConfiguration = Optional.empty(); + private Optional myOrganizationConfiguration = Optional.empty(); private Optional identityAssertionAuthorizationGrant = Optional.empty(); @@ -1140,6 +1153,7 @@ public Builder from(RotateClientSecretResponseContent other) { parRequestExpiry(other.getParRequestExpiry()); tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); + b2BIntegrationConfiguration(other.getB2BIntegrationConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); @@ -2014,6 +2028,17 @@ public Builder expressConfiguration(ExpressConfiguration expressConfiguration) { return this; } + @JsonSetter(value = "b2b_integration_configuration", nulls = Nulls.SKIP) + public Builder b2BIntegrationConfiguration(Optional b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; + return this; + } + + public Builder b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = Optional.ofNullable(b2BIntegrationConfiguration); + return this; + } + @JsonSetter(value = "my_organization_configuration", nulls = Nulls.SKIP) public Builder myOrganizationConfiguration( Optional myOrganizationConfiguration) { @@ -2196,6 +2221,7 @@ public RotateClientSecretResponseContent build() { parRequestExpiry, tokenQuota, expressConfiguration, + b2BIntegrationConfiguration, myOrganizationConfiguration, identityAssertionAuthorizationGrant, thirdPartySecurityMode, diff --git a/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java b/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java index a8b6941cc..8946e9b51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java @@ -132,6 +132,9 @@ public final class ScreenGroupNameEnum { public static final ScreenGroupNameEnum PASSKEY_ENROLLMENT = new ScreenGroupNameEnum(Value.PASSKEY_ENROLLMENT, "passkey-enrollment"); + public static final ScreenGroupNameEnum CONSENT_TENANT_SCOPES = + new ScreenGroupNameEnum(Value.CONSENT_TENANT_SCOPES, "consent-tenant-scopes"); + public static final ScreenGroupNameEnum ORGANIZATION_PICKER = new ScreenGroupNameEnum(Value.ORGANIZATION_PICKER, "organization-picker"); @@ -387,6 +390,8 @@ public T visit(Visitor visitor) { return visitor.visitMfaBeginEnrollOptions(); case PASSKEY_ENROLLMENT: return visitor.visitPasskeyEnrollment(); + case CONSENT_TENANT_SCOPES: + return visitor.visitConsentTenantScopes(); case ORGANIZATION_PICKER: return visitor.visitOrganizationPicker(); case PHONE_IDENTIFIER_CHALLENGE: @@ -576,6 +581,8 @@ public static ScreenGroupNameEnum valueOf(String value) { return MFA_BEGIN_ENROLL_OPTIONS; case "passkey-enrollment": return PASSKEY_ENROLLMENT; + case "consent-tenant-scopes": + return CONSENT_TENANT_SCOPES; case "organization-picker": return ORGANIZATION_PICKER; case "phone-identifier-challenge": @@ -732,6 +739,8 @@ public enum Value { CONSENT, + CONSENT_TENANT_SCOPES, + CUSTOMIZED_CONSENT, LOGOUT, @@ -916,6 +925,8 @@ public interface Visitor { T visitConsent(); + T visitConsentTenantScopes(); + T visitCustomizedConsent(); T visitLogout(); diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java index 8f91d41ad..b21af73f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java @@ -70,6 +70,8 @@ public final class TenantSettingsFlags { private final Optional genaiTrial; + private final Optional localResourceDiscovery; + private final Optional enableDynamicClientRegistration; private final Optional disableManagementApiSmsObfuscation; @@ -106,6 +108,7 @@ private TenantSettingsFlags( Optional removeAlgFromJwks, Optional improvedSignupBotDetectionInClassic, Optional genaiTrial, + Optional localResourceDiscovery, Optional enableDynamicClientRegistration, Optional disableManagementApiSmsObfuscation, Optional trustAzureAdfsEmailVerifiedConnectionProperty, @@ -136,6 +139,7 @@ private TenantSettingsFlags( this.removeAlgFromJwks = removeAlgFromJwks; this.improvedSignupBotDetectionInClassic = improvedSignupBotDetectionInClassic; this.genaiTrial = genaiTrial; + this.localResourceDiscovery = localResourceDiscovery; this.enableDynamicClientRegistration = enableDynamicClientRegistration; this.disableManagementApiSmsObfuscation = disableManagementApiSmsObfuscation; this.trustAzureAdfsEmailVerifiedConnectionProperty = trustAzureAdfsEmailVerifiedConnectionProperty; @@ -343,6 +347,14 @@ public Optional getGenaiTrial() { return genaiTrial; } + /** + * @return Whether the Local Resource Discovery endpoint is enabled (true) or disabled (false). + */ + @JsonProperty("local_resource_discovery") + public Optional getLocalResourceDiscovery() { + return localResourceDiscovery; + } + /** * @return Whether third-party developers can dynamically register applications for your APIs (true) or not (false). This flag enables dynamic client registration. */ @@ -413,6 +425,7 @@ private boolean equalTo(TenantSettingsFlags other) { && removeAlgFromJwks.equals(other.removeAlgFromJwks) && improvedSignupBotDetectionInClassic.equals(other.improvedSignupBotDetectionInClassic) && genaiTrial.equals(other.genaiTrial) + && localResourceDiscovery.equals(other.localResourceDiscovery) && enableDynamicClientRegistration.equals(other.enableDynamicClientRegistration) && disableManagementApiSmsObfuscation.equals(other.disableManagementApiSmsObfuscation) && trustAzureAdfsEmailVerifiedConnectionProperty.equals( @@ -448,6 +461,7 @@ public int hashCode() { this.removeAlgFromJwks, this.improvedSignupBotDetectionInClassic, this.genaiTrial, + this.localResourceDiscovery, this.enableDynamicClientRegistration, this.disableManagementApiSmsObfuscation, this.trustAzureAdfsEmailVerifiedConnectionProperty, @@ -515,6 +529,8 @@ public static final class Builder { private Optional genaiTrial = Optional.empty(); + private Optional localResourceDiscovery = Optional.empty(); + private Optional enableDynamicClientRegistration = Optional.empty(); private Optional disableManagementApiSmsObfuscation = Optional.empty(); @@ -554,6 +570,7 @@ public Builder from(TenantSettingsFlags other) { removeAlgFromJwks(other.getRemoveAlgFromJwks()); improvedSignupBotDetectionInClassic(other.getImprovedSignupBotDetectionInClassic()); genaiTrial(other.getGenaiTrial()); + localResourceDiscovery(other.getLocalResourceDiscovery()); enableDynamicClientRegistration(other.getEnableDynamicClientRegistration()); disableManagementApiSmsObfuscation(other.getDisableManagementApiSmsObfuscation()); trustAzureAdfsEmailVerifiedConnectionProperty(other.getTrustAzureAdfsEmailVerifiedConnectionProperty()); @@ -914,6 +931,20 @@ public Builder genaiTrial(Boolean genaiTrial) { return this; } + /** + *

Whether the Local Resource Discovery endpoint is enabled (true) or disabled (false).

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

Whether third-party developers can dynamically register applications for your APIs (true) or not (false). This flag enables dynamic client registration.

*/ @@ -1000,6 +1031,7 @@ public TenantSettingsFlags build() { removeAlgFromJwks, improvedSignupBotDetectionInClassic, genaiTrial, + localResourceDiscovery, enableDynamicClientRegistration, disableManagementApiSmsObfuscation, trustAzureAdfsEmailVerifiedConnectionProperty, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java index e9e9631ed..1e9016127 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java @@ -128,6 +128,8 @@ public final class UpdateClientRequestContent { private final OptionalNullable expressConfiguration; + private final Optional b2BIntegrationConfiguration; + private final OptionalNullable myOrganizationConfiguration; private final OptionalNullable> asyncApprovalNotificationChannels; @@ -191,6 +193,7 @@ private UpdateClientRequestContent( OptionalNullable tokenExchange, OptionalNullable parRequestExpiry, OptionalNullable expressConfiguration, + Optional b2BIntegrationConfiguration, OptionalNullable myOrganizationConfiguration, OptionalNullable> asyncApprovalNotificationChannels, Optional thirdPartySecurityMode, @@ -248,6 +251,7 @@ private UpdateClientRequestContent( this.tokenExchange = tokenExchange; this.parRequestExpiry = parRequestExpiry; this.expressConfiguration = expressConfiguration; + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -686,6 +690,11 @@ public OptionalNullable getExpressConfiguration() { return expressConfiguration; } + @JsonProperty("b2b_integration_configuration") + public Optional getB2BIntegrationConfiguration() { + return b2BIntegrationConfiguration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("my_organization_configuration") public OptionalNullable getMyOrganizationConfiguration() { @@ -905,6 +914,7 @@ private boolean equalTo(UpdateClientRequestContent other) { && tokenExchange.equals(other.tokenExchange) && parRequestExpiry.equals(other.parRequestExpiry) && expressConfiguration.equals(other.expressConfiguration) + && b2BIntegrationConfiguration.equals(other.b2BIntegrationConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) @@ -966,6 +976,7 @@ public int hashCode() { this.tokenExchange, this.parRequestExpiry, this.expressConfiguration, + this.b2BIntegrationConfiguration, this.myOrganizationConfiguration, this.asyncApprovalNotificationChannels, this.thirdPartySecurityMode, @@ -1092,6 +1103,8 @@ public static final class Builder { private OptionalNullable expressConfiguration = OptionalNullable.absent(); + private Optional b2BIntegrationConfiguration = Optional.empty(); + private OptionalNullable myOrganizationConfiguration = OptionalNullable.absent(); @@ -1160,6 +1173,7 @@ public Builder from(UpdateClientRequestContent other) { tokenExchange(other.getTokenExchange()); parRequestExpiry(other.getParRequestExpiry()); expressConfiguration(other.getExpressConfiguration()); + b2BIntegrationConfiguration(other.getB2BIntegrationConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); asyncApprovalNotificationChannels(other.getAsyncApprovalNotificationChannels()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); @@ -2255,6 +2269,17 @@ public Builder expressConfiguration( return this; } + @JsonSetter(value = "b2b_integration_configuration", nulls = Nulls.SKIP) + public Builder b2BIntegrationConfiguration(Optional b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; + return this; + } + + public Builder b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = Optional.ofNullable(b2BIntegrationConfiguration); + return this; + } + @JsonSetter(value = "my_organization_configuration", nulls = Nulls.SKIP) public Builder myOrganizationConfiguration( @Nullable OptionalNullable myOrganizationConfiguration) { @@ -2404,6 +2429,7 @@ public UpdateClientRequestContent build() { tokenExchange, parRequestExpiry, expressConfiguration, + b2BIntegrationConfiguration, myOrganizationConfiguration, asyncApprovalNotificationChannels, thirdPartySecurityMode, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java index fbe8087f6..7ccfb1964 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java @@ -132,6 +132,8 @@ public final class UpdateClientResponseContent { private final Optional expressConfiguration; + private final Optional b2BIntegrationConfiguration; + private final Optional myOrganizationConfiguration; private final Optional identityAssertionAuthorizationGrant; @@ -209,6 +211,7 @@ private UpdateClientResponseContent( OptionalNullable parRequestExpiry, Optional tokenQuota, Optional expressConfiguration, + Optional b2BIntegrationConfiguration, Optional myOrganizationConfiguration, Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, @@ -274,6 +277,7 @@ private UpdateClientResponseContent( this.parRequestExpiry = parRequestExpiry; this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -684,6 +688,11 @@ public Optional getExpressConfiguration() { return expressConfiguration; } + @JsonProperty("b2b_integration_configuration") + public Optional getB2BIntegrationConfiguration() { + return b2BIntegrationConfiguration; + } + @JsonProperty("my_organization_configuration") public Optional getMyOrganizationConfiguration() { return myOrganizationConfiguration; @@ -858,6 +867,7 @@ private boolean equalTo(UpdateClientResponseContent other) { && parRequestExpiry.equals(other.parRequestExpiry) && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) + && b2BIntegrationConfiguration.equals(other.b2BIntegrationConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) @@ -927,6 +937,7 @@ public int hashCode() { this.parRequestExpiry, this.tokenQuota, this.expressConfiguration, + this.b2BIntegrationConfiguration, this.myOrganizationConfiguration, this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, @@ -1059,6 +1070,8 @@ public static final class Builder { private Optional expressConfiguration = Optional.empty(); + private Optional b2BIntegrationConfiguration = Optional.empty(); + private Optional myOrganizationConfiguration = Optional.empty(); private Optional identityAssertionAuthorizationGrant = Optional.empty(); @@ -1140,6 +1153,7 @@ public Builder from(UpdateClientResponseContent other) { parRequestExpiry(other.getParRequestExpiry()); tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); + b2BIntegrationConfiguration(other.getB2BIntegrationConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); @@ -2014,6 +2028,17 @@ public Builder expressConfiguration(ExpressConfiguration expressConfiguration) { return this; } + @JsonSetter(value = "b2b_integration_configuration", nulls = Nulls.SKIP) + public Builder b2BIntegrationConfiguration(Optional b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = b2BIntegrationConfiguration; + return this; + } + + public Builder b2BIntegrationConfiguration(B2BIntegrationConfiguration b2BIntegrationConfiguration) { + this.b2BIntegrationConfiguration = Optional.ofNullable(b2BIntegrationConfiguration); + return this; + } + @JsonSetter(value = "my_organization_configuration", nulls = Nulls.SKIP) public Builder myOrganizationConfiguration( Optional myOrganizationConfiguration) { @@ -2196,6 +2221,7 @@ public UpdateClientResponseContent build() { parRequestExpiry, tokenQuota, expressConfiguration, + b2BIntegrationConfiguration, myOrganizationConfiguration, identityAssertionAuthorizationGrant, thirdPartySecurityMode, 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 71e5ce259..f62463bba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -91,6 +91,10 @@ public final class UpdateConnectionOptions { private final Optional dpopSigningAlg; + private final Optional enablePushedAuthorizationRequests; + + private final Optional pushedAuthorizationRequestEndpoint; + private final OptionalNullable tokenEndpointAuthMethod; private final OptionalNullable tokenEndpointAuthSigningAlg; @@ -141,6 +145,8 @@ private UpdateConnectionOptions( Optional assertionDecryptionSettings, OptionalNullable> idTokenSignedResponseAlgs, Optional dpopSigningAlg, + Optional enablePushedAuthorizationRequests, + Optional pushedAuthorizationRequestEndpoint, OptionalNullable tokenEndpointAuthMethod, OptionalNullable tokenEndpointAuthSigningAlg, Optional tokenEndpointJwtcaAudFormat, @@ -182,6 +188,8 @@ private UpdateConnectionOptions( this.assertionDecryptionSettings = assertionDecryptionSettings; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.dpopSigningAlg = dpopSigningAlg; + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; @@ -427,6 +435,16 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } + @JsonProperty("enable_pushed_authorization_requests") + public Optional getEnablePushedAuthorizationRequests() { + return enablePushedAuthorizationRequests; + } + + @JsonProperty("pushed_authorization_request_endpoint") + public Optional getPushedAuthorizationRequestEndpoint() { + return pushedAuthorizationRequestEndpoint; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("token_endpoint_auth_method") public OptionalNullable getTokenEndpointAuthMethod() { @@ -626,6 +644,8 @@ private boolean equalTo(UpdateConnectionOptions other) { && assertionDecryptionSettings.equals(other.assertionDecryptionSettings) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && dpopSigningAlg.equals(other.dpopSigningAlg) + && enablePushedAuthorizationRequests.equals(other.enablePushedAuthorizationRequests) + && pushedAuthorizationRequestEndpoint.equals(other.pushedAuthorizationRequestEndpoint) && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) @@ -671,6 +691,8 @@ public int hashCode() { this.assertionDecryptionSettings, this.idTokenSignedResponseAlgs, this.dpopSigningAlg, + this.enablePushedAuthorizationRequests, + this.pushedAuthorizationRequestEndpoint, this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, @@ -761,6 +783,10 @@ public static final class Builder { private Optional dpopSigningAlg = Optional.empty(); + private Optional enablePushedAuthorizationRequests = Optional.empty(); + + private Optional pushedAuthorizationRequestEndpoint = Optional.empty(); + private OptionalNullable tokenEndpointAuthMethod = OptionalNullable.absent(); @@ -816,6 +842,8 @@ public Builder from(UpdateConnectionOptions other) { assertionDecryptionSettings(other.getAssertionDecryptionSettings()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); dpopSigningAlg(other.getDpopSigningAlg()); + enablePushedAuthorizationRequests(other.getEnablePushedAuthorizationRequests()); + pushedAuthorizationRequestEndpoint(other.getPushedAuthorizationRequestEndpoint()); tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); @@ -1496,6 +1524,28 @@ public Builder dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { return this; } + @JsonSetter(value = "enable_pushed_authorization_requests", nulls = Nulls.SKIP) + public Builder enablePushedAuthorizationRequests(Optional enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = enablePushedAuthorizationRequests; + return this; + } + + public Builder enablePushedAuthorizationRequests(Boolean enablePushedAuthorizationRequests) { + this.enablePushedAuthorizationRequests = Optional.ofNullable(enablePushedAuthorizationRequests); + return this; + } + + @JsonSetter(value = "pushed_authorization_request_endpoint", nulls = Nulls.SKIP) + public Builder pushedAuthorizationRequestEndpoint(Optional pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = pushedAuthorizationRequestEndpoint; + return this; + } + + public Builder pushedAuthorizationRequestEndpoint(String pushedAuthorizationRequestEndpoint) { + this.pushedAuthorizationRequestEndpoint = Optional.ofNullable(pushedAuthorizationRequestEndpoint); + return this; + } + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) public Builder tokenEndpointAuthMethod( @Nullable OptionalNullable tokenEndpointAuthMethod) { @@ -1698,6 +1748,8 @@ public UpdateConnectionOptions build() { assertionDecryptionSettings, idTokenSignedResponseAlgs, dpopSigningAlg, + enablePushedAuthorizationRequests, + pushedAuthorizationRequestEndpoint, tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java index 3729c9c96..f826f670d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java @@ -33,6 +33,8 @@ public final class UpdateConnectionProfileRequestContent { private final Optional strategyOverrides; + private final Optional provisioning; + private final Optional crossAppAccessResourceApp; private final Map additionalProperties; @@ -44,6 +46,7 @@ private UpdateConnectionProfileRequestContent( Optional> enabledFeatures, Optional connectionConfig, Optional strategyOverrides, + Optional provisioning, Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; @@ -52,6 +55,7 @@ private UpdateConnectionProfileRequestContent( this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; this.strategyOverrides = strategyOverrides; + this.provisioning = provisioning; this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -86,6 +90,11 @@ public Optional getStrategyOverrides() { return strategyOverrides; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @JsonProperty("cross_app_access_resource_app") public Optional getCrossAppAccessResourceApp() { return crossAppAccessResourceApp; @@ -110,6 +119,7 @@ private boolean equalTo(UpdateConnectionProfileRequestContent other) { && enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig) && strategyOverrides.equals(other.strategyOverrides) + && provisioning.equals(other.provisioning) && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @@ -122,6 +132,7 @@ public int hashCode() { this.enabledFeatures, this.connectionConfig, this.strategyOverrides, + this.provisioning, this.crossAppAccessResourceApp); } @@ -148,6 +159,8 @@ public static final class Builder { private Optional strategyOverrides = Optional.empty(); + private Optional provisioning = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); @JsonAnySetter @@ -162,6 +175,7 @@ public Builder from(UpdateConnectionProfileRequestContent other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); strategyOverrides(other.getStrategyOverrides()); + provisioning(other.getProvisioning()); crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -232,6 +246,17 @@ public Builder strategyOverrides(ConnectionProfileStrategyOverrides strategyOver return this; } + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public Builder provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + + public Builder provisioning(ConnectionProfileProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) public Builder crossAppAccessResourceApp( Optional crossAppAccessResourceApp) { @@ -252,6 +277,7 @@ public UpdateConnectionProfileRequestContent build() { enabledFeatures, connectionConfig, strategyOverrides, + provisioning, crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java index 01fa3c996..b52069f20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java @@ -35,6 +35,8 @@ public final class UpdateConnectionProfileResponseContent { private final Optional strategyOverrides; + private final Optional provisioning; + private final Optional crossAppAccessResourceApp; private final Map additionalProperties; @@ -47,6 +49,7 @@ private UpdateConnectionProfileResponseContent( Optional> enabledFeatures, Optional connectionConfig, Optional strategyOverrides, + Optional provisioning, Optional crossAppAccessResourceApp, Map additionalProperties) { this.id = id; @@ -56,6 +59,7 @@ private UpdateConnectionProfileResponseContent( this.enabledFeatures = enabledFeatures; this.connectionConfig = connectionConfig; this.strategyOverrides = strategyOverrides; + this.provisioning = provisioning; this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -95,6 +99,11 @@ public Optional getStrategyOverrides() { return strategyOverrides; } + @JsonProperty("provisioning") + public Optional getProvisioning() { + return provisioning; + } + @JsonProperty("cross_app_access_resource_app") public Optional getCrossAppAccessResourceApp() { return crossAppAccessResourceApp; @@ -120,6 +129,7 @@ private boolean equalTo(UpdateConnectionProfileResponseContent other) { && enabledFeatures.equals(other.enabledFeatures) && connectionConfig.equals(other.connectionConfig) && strategyOverrides.equals(other.strategyOverrides) + && provisioning.equals(other.provisioning) && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @@ -133,6 +143,7 @@ public int hashCode() { this.enabledFeatures, this.connectionConfig, this.strategyOverrides, + this.provisioning, this.crossAppAccessResourceApp); } @@ -161,6 +172,8 @@ public static final class Builder { private Optional strategyOverrides = Optional.empty(); + private Optional provisioning = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); @JsonAnySetter @@ -176,6 +189,7 @@ public Builder from(UpdateConnectionProfileResponseContent other) { enabledFeatures(other.getEnabledFeatures()); connectionConfig(other.getConnectionConfig()); strategyOverrides(other.getStrategyOverrides()); + provisioning(other.getProvisioning()); crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -257,6 +271,17 @@ public Builder strategyOverrides(ConnectionProfileStrategyOverrides strategyOver return this; } + @JsonSetter(value = "provisioning", nulls = Nulls.SKIP) + public Builder provisioning(Optional provisioning) { + this.provisioning = provisioning; + return this; + } + + public Builder provisioning(ConnectionProfileProvisioning provisioning) { + this.provisioning = Optional.ofNullable(provisioning); + return this; + } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) public Builder crossAppAccessResourceApp( Optional crossAppAccessResourceApp) { @@ -278,6 +303,7 @@ public UpdateConnectionProfileResponseContent build() { enabledFeatures, connectionConfig, strategyOverrides, + provisioning, crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java index df2acf515..8bb1c44fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java @@ -3,6 +3,7 @@ */ 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; @@ -18,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateConnectionRequestContentSaml.Builder.class) @@ -32,6 +34,8 @@ public final class UpdateConnectionRequestContentSaml implements IConnectionComm private final Optional options; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional showAsButton; private final Map additionalProperties; @@ -42,6 +46,7 @@ private UpdateConnectionRequestContentSaml( Optional isDomainConnection, Optional>> metadata, Optional options, + OptionalNullable crossAppAccessResourceApp, Optional showAsButton, Map additionalProperties) { this.displayName = displayName; @@ -49,6 +54,7 @@ private UpdateConnectionRequestContentSaml( this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.options = options; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -82,11 +88,26 @@ public Optional getOptions() { return options; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + public OptionalNullable getCrossAppAccessResourceApp() { + if (crossAppAccessResourceApp == null) { + return OptionalNullable.absent(); + } + return crossAppAccessResourceApp; + } + @JsonProperty("show_as_button") public Optional getShowAsButton() { return showAsButton; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + private OptionalNullable _getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -105,6 +126,7 @@ private boolean equalTo(UpdateConnectionRequestContentSaml other) { && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && options.equals(other.options) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && showAsButton.equals(other.showAsButton); } @@ -116,6 +138,7 @@ public int hashCode() { this.isDomainConnection, this.metadata, this.options, + this.crossAppAccessResourceApp, this.showAsButton); } @@ -140,6 +163,9 @@ public static final class Builder { private Optional options = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional showAsButton = Optional.empty(); @JsonAnySetter @@ -153,6 +179,7 @@ public Builder from(UpdateConnectionRequestContentSaml other) { isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); options(other.getOptions()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); showAsButton(other.getShowAsButton()); return this; } @@ -212,6 +239,40 @@ public Builder options(ConnectionOptionsSaml options) { return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp); + return this; + } + + public Builder crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isPresent()) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } else { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } + return this; + } + + public Builder crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isNull()) { + this.crossAppAccessResourceApp = OptionalNullable.ofNull(); + } else if (crossAppAccessResourceApp.isEmpty()) { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } else { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } + return this; + } + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) public Builder showAsButton(Optional showAsButton) { this.showAsButton = showAsButton; @@ -230,6 +291,7 @@ public UpdateConnectionRequestContentSaml build() { isDomainConnection, metadata, options, + crossAppAccessResourceApp, showAsButton, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationTemplateRequestContent.java new file mode 100644 index 000000000..80acc177f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationTemplateRequestContent.java @@ -0,0 +1,706 @@ +/** + * 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 = UpdateOrganizationTemplateRequestContent.Builder.class) +public final class UpdateOrganizationTemplateRequestContent { + private final Optional name; + + private final Optional isDefault; + + private final Optional organizationDeletionBehavior; + + private final Optional connectionDeletionBehavior; + + private final Optional enforcePermissionCeiling; + + private final Optional enforceSelfAssignmentRestriction; + + private final OptionalNullable connectionProfileId; + + private final OptionalNullable userAttributeProfileId; + + private final OptionalNullable> allowedStrategies; + + private final OptionalNullable invitationLandingClientId; + + private final OptionalNullable> adminRolesAssignment; + + private final OptionalNullable useForOrganizationDiscovery; + + private final OptionalNullable roleVisibilityPolicy; + + private final Map additionalProperties; + + private UpdateOrganizationTemplateRequestContent( + Optional name, + Optional isDefault, + Optional organizationDeletionBehavior, + Optional connectionDeletionBehavior, + Optional enforcePermissionCeiling, + Optional enforceSelfAssignmentRestriction, + OptionalNullable connectionProfileId, + OptionalNullable userAttributeProfileId, + OptionalNullable> allowedStrategies, + OptionalNullable invitationLandingClientId, + OptionalNullable> adminRolesAssignment, + OptionalNullable useForOrganizationDiscovery, + OptionalNullable roleVisibilityPolicy, + Map additionalProperties) { + this.name = name; + this.isDefault = isDefault; + this.organizationDeletionBehavior = organizationDeletionBehavior; + this.connectionDeletionBehavior = connectionDeletionBehavior; + this.enforcePermissionCeiling = enforcePermissionCeiling; + this.enforceSelfAssignmentRestriction = enforceSelfAssignmentRestriction; + this.connectionProfileId = connectionProfileId; + this.userAttributeProfileId = userAttributeProfileId; + this.allowedStrategies = allowedStrategies; + this.invitationLandingClientId = invitationLandingClientId; + this.adminRolesAssignment = adminRolesAssignment; + this.useForOrganizationDiscovery = useForOrganizationDiscovery; + this.roleVisibilityPolicy = roleVisibilityPolicy; + this.additionalProperties = additionalProperties; + } + + /** + * @return The name of the organization template. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Whether this is the default template applied to new organizations. + */ + @JsonProperty("is_default") + public Optional getIsDefault() { + return isDefault; + } + + @JsonProperty("organization_deletion_behavior") + public Optional getOrganizationDeletionBehavior() { + return organizationDeletionBehavior; + } + + @JsonProperty("connection_deletion_behavior") + public Optional getConnectionDeletionBehavior() { + return connectionDeletionBehavior; + } + + /** + * @return Whether to enforce permission ceiling for organizations using this template. + */ + @JsonProperty("enforce_permission_ceiling") + public Optional getEnforcePermissionCeiling() { + return enforcePermissionCeiling; + } + + /** + * @return Whether to enforce self-assignment restrictions for organizations using this template. + */ + @JsonProperty("enforce_self_assignment_restriction") + public Optional getEnforceSelfAssignmentRestriction() { + return enforceSelfAssignmentRestriction; + } + + /** + * @return The connection profile to apply to new connections. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_profile_id") + public OptionalNullable getConnectionProfileId() { + if (connectionProfileId == null) { + return OptionalNullable.absent(); + } + return connectionProfileId; + } + + /** + * @return The user attribute profile to apply to organizations. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_attribute_profile_id") + public OptionalNullable getUserAttributeProfileId() { + if (userAttributeProfileId == null) { + return OptionalNullable.absent(); + } + return userAttributeProfileId; + } + + /** + * @return List of allowed connection strategies for this template. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allowed_strategies") + public OptionalNullable> getAllowedStrategies() { + if (allowedStrategies == null) { + return OptionalNullable.absent(); + } + return allowedStrategies; + } + + /** + * @return The client ID for the invitation landing page. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("invitation_landing_client_id") + public OptionalNullable getInvitationLandingClientId() { + if (invitationLandingClientId == null) { + return OptionalNullable.absent(); + } + return invitationLandingClientId; + } + + /** + * @return Default admin roles to assign to organization creators. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("admin_roles_assignment") + public OptionalNullable> getAdminRolesAssignment() { + if (adminRolesAssignment == null) { + return OptionalNullable.absent(); + } + return adminRolesAssignment; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("use_for_organization_discovery") + public OptionalNullable getUseForOrganizationDiscovery() { + if (useForOrganizationDiscovery == null) { + return OptionalNullable.absent(); + } + return useForOrganizationDiscovery; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("role_visibility_policy") + public OptionalNullable getRoleVisibilityPolicy() { + if (roleVisibilityPolicy == null) { + return OptionalNullable.absent(); + } + return roleVisibilityPolicy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_profile_id") + private OptionalNullable _getConnectionProfileId() { + return connectionProfileId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_attribute_profile_id") + private OptionalNullable _getUserAttributeProfileId() { + return userAttributeProfileId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allowed_strategies") + private OptionalNullable> _getAllowedStrategies() { + return allowedStrategies; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("invitation_landing_client_id") + private OptionalNullable _getInvitationLandingClientId() { + return invitationLandingClientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("admin_roles_assignment") + private OptionalNullable> _getAdminRolesAssignment() { + return adminRolesAssignment; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("use_for_organization_discovery") + private OptionalNullable _getUseForOrganizationDiscovery() { + return useForOrganizationDiscovery; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("role_visibility_policy") + private OptionalNullable _getRoleVisibilityPolicy() { + return roleVisibilityPolicy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateOrganizationTemplateRequestContent + && equalTo((UpdateOrganizationTemplateRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateOrganizationTemplateRequestContent other) { + return name.equals(other.name) + && isDefault.equals(other.isDefault) + && organizationDeletionBehavior.equals(other.organizationDeletionBehavior) + && connectionDeletionBehavior.equals(other.connectionDeletionBehavior) + && enforcePermissionCeiling.equals(other.enforcePermissionCeiling) + && enforceSelfAssignmentRestriction.equals(other.enforceSelfAssignmentRestriction) + && connectionProfileId.equals(other.connectionProfileId) + && userAttributeProfileId.equals(other.userAttributeProfileId) + && allowedStrategies.equals(other.allowedStrategies) + && invitationLandingClientId.equals(other.invitationLandingClientId) + && adminRolesAssignment.equals(other.adminRolesAssignment) + && useForOrganizationDiscovery.equals(other.useForOrganizationDiscovery) + && roleVisibilityPolicy.equals(other.roleVisibilityPolicy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.name, + this.isDefault, + this.organizationDeletionBehavior, + this.connectionDeletionBehavior, + this.enforcePermissionCeiling, + this.enforceSelfAssignmentRestriction, + this.connectionProfileId, + this.userAttributeProfileId, + this.allowedStrategies, + this.invitationLandingClientId, + this.adminRolesAssignment, + this.useForOrganizationDiscovery, + this.roleVisibilityPolicy); + } + + @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 name = Optional.empty(); + + private Optional isDefault = Optional.empty(); + + private Optional organizationDeletionBehavior = Optional.empty(); + + private Optional connectionDeletionBehavior = Optional.empty(); + + private Optional enforcePermissionCeiling = Optional.empty(); + + private Optional enforceSelfAssignmentRestriction = Optional.empty(); + + private OptionalNullable connectionProfileId = OptionalNullable.absent(); + + private OptionalNullable userAttributeProfileId = OptionalNullable.absent(); + + private OptionalNullable> allowedStrategies = + OptionalNullable.absent(); + + private OptionalNullable invitationLandingClientId = OptionalNullable.absent(); + + private OptionalNullable> adminRolesAssignment = OptionalNullable.absent(); + + private OptionalNullable useForOrganizationDiscovery = + OptionalNullable.absent(); + + private OptionalNullable roleVisibilityPolicy = + OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateOrganizationTemplateRequestContent other) { + name(other.getName()); + isDefault(other.getIsDefault()); + organizationDeletionBehavior(other.getOrganizationDeletionBehavior()); + connectionDeletionBehavior(other.getConnectionDeletionBehavior()); + enforcePermissionCeiling(other.getEnforcePermissionCeiling()); + enforceSelfAssignmentRestriction(other.getEnforceSelfAssignmentRestriction()); + connectionProfileId(other.getConnectionProfileId()); + userAttributeProfileId(other.getUserAttributeProfileId()); + allowedStrategies(other.getAllowedStrategies()); + invitationLandingClientId(other.getInvitationLandingClientId()); + adminRolesAssignment(other.getAdminRolesAssignment()); + useForOrganizationDiscovery(other.getUseForOrganizationDiscovery()); + roleVisibilityPolicy(other.getRoleVisibilityPolicy()); + return this; + } + + /** + *

The name of the organization template.

+ */ + @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; + } + + /** + *

Whether this is the default template applied to new organizations.

+ */ + @JsonSetter(value = "is_default", nulls = Nulls.SKIP) + public Builder isDefault(Optional isDefault) { + this.isDefault = isDefault; + return this; + } + + public Builder isDefault(Boolean isDefault) { + this.isDefault = Optional.ofNullable(isDefault); + return this; + } + + @JsonSetter(value = "organization_deletion_behavior", nulls = Nulls.SKIP) + public Builder organizationDeletionBehavior( + Optional organizationDeletionBehavior) { + this.organizationDeletionBehavior = organizationDeletionBehavior; + return this; + } + + public Builder organizationDeletionBehavior(OrganizationDeletionBehaviorEnum organizationDeletionBehavior) { + this.organizationDeletionBehavior = Optional.ofNullable(organizationDeletionBehavior); + return this; + } + + @JsonSetter(value = "connection_deletion_behavior", nulls = Nulls.SKIP) + public Builder connectionDeletionBehavior(Optional connectionDeletionBehavior) { + this.connectionDeletionBehavior = connectionDeletionBehavior; + return this; + } + + public Builder connectionDeletionBehavior(ConnectionDeletionBehaviorEnum connectionDeletionBehavior) { + this.connectionDeletionBehavior = Optional.ofNullable(connectionDeletionBehavior); + return this; + } + + /** + *

Whether to enforce permission ceiling for organizations using this template.

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

Whether to enforce self-assignment restrictions for organizations using this template.

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

The connection profile to apply to new connections.

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

The user attribute profile to apply to organizations.

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

List of allowed connection strategies for this template.

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

The client ID for the invitation landing page.

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

Default admin roles to assign to organization creators.

+ */ + @JsonSetter(value = "admin_roles_assignment", nulls = Nulls.SKIP) + public Builder adminRolesAssignment(@Nullable OptionalNullable> adminRolesAssignment) { + this.adminRolesAssignment = adminRolesAssignment; + return this; + } + + public Builder adminRolesAssignment(List adminRolesAssignment) { + this.adminRolesAssignment = OptionalNullable.of(adminRolesAssignment); + return this; + } + + public Builder adminRolesAssignment(Optional> adminRolesAssignment) { + if (adminRolesAssignment.isPresent()) { + this.adminRolesAssignment = OptionalNullable.of(adminRolesAssignment.get()); + } else { + this.adminRolesAssignment = OptionalNullable.absent(); + } + return this; + } + + public Builder adminRolesAssignment(com.auth0.client.mgmt.core.Nullable> adminRolesAssignment) { + if (adminRolesAssignment.isNull()) { + this.adminRolesAssignment = OptionalNullable.ofNull(); + } else if (adminRolesAssignment.isEmpty()) { + this.adminRolesAssignment = OptionalNullable.absent(); + } else { + this.adminRolesAssignment = OptionalNullable.of(adminRolesAssignment.get()); + } + return this; + } + + @JsonSetter(value = "use_for_organization_discovery", nulls = Nulls.SKIP) + public Builder useForOrganizationDiscovery( + @Nullable + OptionalNullable useForOrganizationDiscovery) { + this.useForOrganizationDiscovery = useForOrganizationDiscovery; + return this; + } + + public Builder useForOrganizationDiscovery( + OrganizationTemplateUseForOrganizationDiscovery useForOrganizationDiscovery) { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery); + return this; + } + + public Builder useForOrganizationDiscovery( + Optional useForOrganizationDiscovery) { + if (useForOrganizationDiscovery.isPresent()) { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery.get()); + } else { + this.useForOrganizationDiscovery = OptionalNullable.absent(); + } + return this; + } + + public Builder useForOrganizationDiscovery( + com.auth0.client.mgmt.core.Nullable + useForOrganizationDiscovery) { + if (useForOrganizationDiscovery.isNull()) { + this.useForOrganizationDiscovery = OptionalNullable.ofNull(); + } else if (useForOrganizationDiscovery.isEmpty()) { + this.useForOrganizationDiscovery = OptionalNullable.absent(); + } else { + this.useForOrganizationDiscovery = OptionalNullable.of(useForOrganizationDiscovery.get()); + } + return this; + } + + @JsonSetter(value = "role_visibility_policy", nulls = Nulls.SKIP) + public Builder roleVisibilityPolicy( + @Nullable OptionalNullable roleVisibilityPolicy) { + this.roleVisibilityPolicy = roleVisibilityPolicy; + return this; + } + + public Builder roleVisibilityPolicy(OrganizationTemplateRoleVisibilityPolicy roleVisibilityPolicy) { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy); + return this; + } + + public Builder roleVisibilityPolicy(Optional roleVisibilityPolicy) { + if (roleVisibilityPolicy.isPresent()) { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy.get()); + } else { + this.roleVisibilityPolicy = OptionalNullable.absent(); + } + return this; + } + + public Builder roleVisibilityPolicy( + com.auth0.client.mgmt.core.Nullable roleVisibilityPolicy) { + if (roleVisibilityPolicy.isNull()) { + this.roleVisibilityPolicy = OptionalNullable.ofNull(); + } else if (roleVisibilityPolicy.isEmpty()) { + this.roleVisibilityPolicy = OptionalNullable.absent(); + } else { + this.roleVisibilityPolicy = OptionalNullable.of(roleVisibilityPolicy.get()); + } + return this; + } + + public UpdateOrganizationTemplateRequestContent build() { + return new UpdateOrganizationTemplateRequestContent( + name, + isDefault, + organizationDeletionBehavior, + connectionDeletionBehavior, + enforcePermissionCeiling, + enforceSelfAssignmentRestriction, + connectionProfileId, + userAttributeProfileId, + allowedStrategies, + invitationLandingClientId, + adminRolesAssignment, + useForOrganizationDiscovery, + roleVisibilityPolicy, + 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/users/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java index 5314c570a..4c0daf30b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java @@ -29,6 +29,19 @@ public AsyncRawOrganizationsClient withRawResponse() { /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -36,6 +49,19 @@ public CompletableFuture> list(String id) { /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture> list(String id, RequestOptions requestOptions) { return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); @@ -43,6 +69,19 @@ public CompletableFuture> list(String id, Reque /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture> list( String id, ListUserOrganizationsRequestParameters request) { @@ -51,6 +90,19 @@ public CompletableFuture> list( /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java index 73524c2c6..899c9451d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.RetryInterceptor; 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; @@ -44,6 +45,19 @@ public AsyncRawOrganizationsClient(ClientOptions clientOptions) { /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture>> list(String id) { return list(id, ListUserOrganizationsRequestParameters.builder().build()); @@ -51,6 +65,19 @@ public CompletableFutureAuth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture>> list( String id, RequestOptions requestOptions) { @@ -59,6 +86,19 @@ public CompletableFutureAuth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture>> list( String id, ListUserOrganizationsRequestParameters request) { @@ -67,6 +107,19 @@ public CompletableFutureAuth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture>> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -140,6 +193,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO } 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), diff --git a/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java index f25eeeed1..fee9ea79a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java @@ -28,6 +28,19 @@ public RawOrganizationsClient withRawResponse() { /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -35,6 +48,19 @@ public SyncPagingIterable list(String id) { /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public SyncPagingIterable list(String id, RequestOptions requestOptions) { return this.rawClient.list(id, requestOptions).body(); @@ -42,6 +68,19 @@ public SyncPagingIterable list(String id, RequestOptions requestOp /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public SyncPagingIterable list(String id, ListUserOrganizationsRequestParameters request) { return this.rawClient.list(id, request).body(); @@ -49,6 +88,19 @@ public SyncPagingIterable list(String id, ListUserOrganizationsReq /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public SyncPagingIterable list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java index 4bc76a459..b50573c65 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.RetryInterceptor; 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; @@ -39,6 +40,19 @@ public RawOrganizationsClient(ClientOptions clientOptions) { /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public ManagementApiHttpResponse> list(String id) { return list(id, ListUserOrganizationsRequestParameters.builder().build()); @@ -46,6 +60,19 @@ public ManagementApiHttpResponse> list(String i /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { return list(id, ListUserOrganizationsRequestParameters.builder().build(), requestOptions); @@ -53,6 +80,19 @@ public ManagementApiHttpResponse> list(String i /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public ManagementApiHttpResponse> list( String id, ListUserOrganizationsRequestParameters request) { @@ -61,6 +101,19 @@ public ManagementApiHttpResponse> list( /** * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + *

This endpoint supports two types of pagination:

+ *
    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *
+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *
    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
  • + *
+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public ManagementApiHttpResponse> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -120,6 +173,9 @@ public ManagementApiHttpResponse> list( } 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); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java index b042fc6a7..12721e518 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java @@ -202,7 +202,7 @@ public void testGetTemplate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"display_name\":\"display_name\",\"template\":{\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"]}}")); + "{\"id\":\"id\",\"display_name\":\"display_name\",\"template\":{\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"],\"provisioning\":{\"scim\":{\"tokens\":{\"scopes\":[\"get:users\"]}}}}}")); GetConnectionProfileTemplateResponseContent response = client.connectionProfiles().getTemplate("id"); RecordedRequest request = server.takeRequest(); @@ -225,7 +225,16 @@ public void testGetTemplate() throws Exception { + " \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n" + " \"enabled_features\": [\n" + " \"scim\"\n" - + " ]\n" + + " ],\n" + + " \"provisioning\": {\n" + + " \"scim\": {\n" + + " \"tokens\": {\n" + + " \"scopes\": [\n" + + " \"get:users\"\n" + + " ]\n" + + " }\n" + + " }\n" + + " }\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); diff --git a/src/test/java/com/auth0/client/mgmt/KeysNetworkAclsWireTest.java b/src/test/java/com/auth0/client/mgmt/KeysNetworkAclsWireTest.java index 19575a85f..1289115f9 100644 --- a/src/test/java/com/auth0/client/mgmt/KeysNetworkAclsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/KeysNetworkAclsWireTest.java @@ -246,6 +246,15 @@ else if (actualResponseNode.has("kind")) } } + @Test + public void testDelete() throws Exception { + server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); + client.keys().networkAcls().delete("id"); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("DELETE", request.getMethod()); + } + /** * Compares two JsonNodes with numeric equivalence and null safety. * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. diff --git a/src/test/java/com/auth0/client/mgmt/ManagementApiTelemetryTest.java b/src/test/java/com/auth0/client/mgmt/ManagementApiTelemetryTest.java deleted file mode 100644 index 27b7a0b40..000000000 --- a/src/test/java/com/auth0/client/mgmt/ManagementApiTelemetryTest.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.auth0.client.mgmt; - -import static com.auth0.AssertsUtil.verifyThrows; -import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.*; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.json.ObjectMapperProvider; -import com.auth0.net.Telemetry; -import com.fasterxml.jackson.databind.JsonNode; -import java.util.Base64; -import java.util.Map; -import org.junit.jupiter.api.Test; - -public class ManagementApiTelemetryTest { - - private JsonNode decodeTelemetry(ManagementApi api) throws Exception { - Map headers = api.clientOptions.headers(null); - String value = headers.get("Auth0-Client"); - assertThat(value, is(notNullValue())); - byte[] json = Base64.getUrlDecoder().decode(value); - return ObjectMapperProvider.getMapper().readTree(json); - } - - @Test - public void shouldSendDefaultTelemetryWhenNotConfigured() throws Exception { - ManagementApi api = ManagementApi.builder() - .domain("my-tenant.auth0.com") - .token("test-token") - .build(); - - JsonNode telemetry = decodeTelemetry(api); - assertThat(telemetry.get("name").asText(), is("auth0-java")); - } - - @Test - public void shouldSendCustomTelemetryWhenConfigured() throws Exception { - ManagementApi api = ManagementApi.builder() - .domain("my-tenant.auth0.com") - .token("test-token") - .withTelemetry("my-wrapper-sdk", "1.2.3") - .build(); - - JsonNode telemetry = decodeTelemetry(api); - assertThat(telemetry.get("name").asText(), is("my-wrapper-sdk")); - assertThat(telemetry.get("version").asText(), is("1.2.3")); - } - - @Test - public void shouldNestAuth0JavaInTelemetryEnv() throws Exception { - ClientOptions options = ClientOptions.builder() - .environment(com.auth0.client.mgmt.core.Environment.DEFAULT) - .telemetry(new Telemetry("my-wrapper-sdk", "1.2.3", "auth0-java-9.9.9")) - .build(); - - String value = options.headers(null).get("Auth0-Client"); - assertThat(value, is(notNullValue())); - JsonNode telemetry = - ObjectMapperProvider.getMapper().readTree(Base64.getUrlDecoder().decode(value)); - assertThat(telemetry.get("name").asText(), is("my-wrapper-sdk")); - assertThat(telemetry.get("version").asText(), is("1.2.3")); - assertThat(telemetry.get("env").get("auth0-java").asText(), is("auth0-java-9.9.9")); - } - - @Test - public void shouldPreserveTelemetryAndHeadersWhenCopyingOptions() throws Exception { - ClientOptions original = ClientOptions.builder() - .environment(com.auth0.client.mgmt.core.Environment.DEFAULT) - .telemetry(new Telemetry("my-wrapper-sdk", "1.2.3")) - .addHeader("Authorization", "Bearer test-token") - .addHeader("X-Dynamic", () -> "dynamic-value") - .maxRetries(5) - .build(); - - ClientOptions copy = ClientOptions.Builder.from(original).build(); - - Map headers = copy.headers(null); - JsonNode telemetry = - ObjectMapperProvider.getMapper().readTree(Base64.getUrlDecoder().decode(headers.get("Auth0-Client"))); - assertThat(telemetry.get("name").asText(), is("my-wrapper-sdk")); - assertThat(telemetry.get("version").asText(), is("1.2.3")); - assertThat(headers.get("Authorization"), is("Bearer test-token")); - assertThat(headers.get("X-Dynamic"), is("dynamic-value")); - assertThat(copy.maxRetries(), is(5)); - } - - @Test - public void shouldReturnBuilderFromWithTelemetry() { - ManagementApiBuilder builder = ManagementApi.builder(); - ManagementApiBuilder result = builder.withTelemetry("my-wrapper-sdk", "1.2.3"); - assertThat(result, is(sameInstance(builder))); - } - - @Test - public void shouldThrowWhenTelemetryNameIsNull() { - verifyThrows( - IllegalArgumentException.class, - () -> ManagementApi.builder().withTelemetry(null, "1.2.3"), - "'name' cannot be null!"); - } -} diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationTemplatesWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationTemplatesWireTest.java new file mode 100644 index 000000000..64c0aeb5d --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/OrganizationTemplatesWireTest.java @@ -0,0 +1,434 @@ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.CreateOrganizationTemplateRequestContent; +import com.auth0.client.mgmt.types.ListOrganizationTemplatesRequestParameters; +import com.auth0.client.mgmt.types.ListTemplateOrganizationsRequestParameters; +import com.auth0.client.mgmt.types.OrganizationDeletionBehaviorEnum; +import com.auth0.client.mgmt.types.OrganizationTemplate; +import com.auth0.client.mgmt.types.OrganizationTemplateAssignedOrganization; +import com.auth0.client.mgmt.types.UpdateOrganizationTemplateRequestContent; +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 OrganizationTemplatesWireTest { + 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( + "{\"next\":\"next\",\"organization_templates\":[{\"id\":\"id\",\"name\":\"name\",\"is_default\":true,\"organization_deletion_behavior\":\"allow\",\"connection_deletion_behavior\":\"allow\",\"enforce_permission_ceiling\":true,\"enforce_self_assignment_restriction\":true,\"connection_profile_id\":\"connection_profile_id\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"allowed_strategies\":[\"adfs\"],\"invitation_landing_client_id\":\"invitation_landing_client_id\",\"admin_roles_assignment\":[\"admin_roles_assignment\"],\"use_for_organization_discovery\":{\"default_value\":true},\"role_visibility_policy\":{\"default_value\":\"write\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); + SyncPagingIterable response = client.organizationTemplates() + .list(ListOrganizationTemplatesRequestParameters.builder() + .from("from") + .take(1) + .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 + } + + @Test + public void testCreate() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"id\":\"id\",\"name\":\"name\",\"is_default\":true,\"organization_deletion_behavior\":\"allow\",\"connection_deletion_behavior\":\"allow\",\"enforce_permission_ceiling\":true,\"enforce_self_assignment_restriction\":true,\"connection_profile_id\":\"connection_profile_id\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"allowed_strategies\":[\"adfs\"],\"invitation_landing_client_id\":\"invitation_landing_client_id\",\"admin_roles_assignment\":[\"admin_roles_assignment\"],\"use_for_organization_discovery\":{\"default_value\":true,\"allowed_values\":[true]},\"role_visibility_policy\":{\"default_value\":\"write\",\"overrides\":[{\"role_id\":\"role_id\",\"access\":\"write\"}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); + OrganizationTemplate response = client.organizationTemplates() + .create(CreateOrganizationTemplateRequestContent.builder() + .name("name") + .organizationDeletionBehavior(OrganizationDeletionBehaviorEnum.ALLOW) + .enforcePermissionCeiling(true) + .enforceSelfAssignmentRestriction(true) + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("POST", request.getMethod()); + // Validate request body + String actualRequestBody = request.getBody().readUtf8(); + String expectedRequestBody = "" + + "{\n" + + " \"name\": \"name\",\n" + + " \"organization_deletion_behavior\": \"allow\",\n" + + " \"enforce_permission_ceiling\": true,\n" + + " \"enforce_self_assignment_restriction\": true\n" + + "}"; + JsonNode actualJson = objectMapper.readTree(actualRequestBody); + JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); + Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); + if (actualJson.has("type") || actualJson.has("_type") || actualJson.has("kind")) { + String discriminator = null; + if (actualJson.has("type")) discriminator = actualJson.get("type").asText(); + else if (actualJson.has("_type")) + discriminator = actualJson.get("_type").asText(); + else if (actualJson.has("kind")) + discriminator = actualJson.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualJson.isNull()) { + Assertions.assertTrue( + actualJson.isObject() || actualJson.isArray() || actualJson.isValueNode(), + "request should be a valid JSON value"); + } + + if (actualJson.isArray()) { + Assertions.assertTrue(actualJson.size() >= 0, "Array should have valid size"); + } + if (actualJson.isObject()) { + Assertions.assertTrue(actualJson.size() >= 0, "Object should have valid field count"); + } + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"id\": \"id\",\n" + + " \"name\": \"name\",\n" + + " \"is_default\": true,\n" + + " \"organization_deletion_behavior\": \"allow\",\n" + + " \"connection_deletion_behavior\": \"allow\",\n" + + " \"enforce_permission_ceiling\": true,\n" + + " \"enforce_self_assignment_restriction\": true,\n" + + " \"connection_profile_id\": \"connection_profile_id\",\n" + + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" + + " \"allowed_strategies\": [\n" + + " \"adfs\"\n" + + " ],\n" + + " \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n" + + " \"admin_roles_assignment\": [\n" + + " \"admin_roles_assignment\"\n" + + " ],\n" + + " \"use_for_organization_discovery\": {\n" + + " \"default_value\": true,\n" + + " \"allowed_values\": [\n" + + " true\n" + + " ]\n" + + " },\n" + + " \"role_visibility_policy\": {\n" + + " \"default_value\": \"write\",\n" + + " \"overrides\": [\n" + + " {\n" + + " \"role_id\": \"role_id\",\n" + + " \"access\": \"write\"\n" + + " }\n" + + " ]\n" + + " },\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" + + "}"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + + @Test + public void testGet() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"id\":\"id\",\"name\":\"name\",\"is_default\":true,\"organization_deletion_behavior\":\"allow\",\"connection_deletion_behavior\":\"allow\",\"enforce_permission_ceiling\":true,\"enforce_self_assignment_restriction\":true,\"connection_profile_id\":\"connection_profile_id\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"allowed_strategies\":[\"adfs\"],\"invitation_landing_client_id\":\"invitation_landing_client_id\",\"admin_roles_assignment\":[\"admin_roles_assignment\"],\"use_for_organization_discovery\":{\"default_value\":true,\"allowed_values\":[true]},\"role_visibility_policy\":{\"default_value\":\"write\",\"overrides\":[{\"role_id\":\"role_id\",\"access\":\"write\"}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); + OrganizationTemplate response = client.organizationTemplates().get("id"); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"id\": \"id\",\n" + + " \"name\": \"name\",\n" + + " \"is_default\": true,\n" + + " \"organization_deletion_behavior\": \"allow\",\n" + + " \"connection_deletion_behavior\": \"allow\",\n" + + " \"enforce_permission_ceiling\": true,\n" + + " \"enforce_self_assignment_restriction\": true,\n" + + " \"connection_profile_id\": \"connection_profile_id\",\n" + + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" + + " \"allowed_strategies\": [\n" + + " \"adfs\"\n" + + " ],\n" + + " \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n" + + " \"admin_roles_assignment\": [\n" + + " \"admin_roles_assignment\"\n" + + " ],\n" + + " \"use_for_organization_discovery\": {\n" + + " \"default_value\": true,\n" + + " \"allowed_values\": [\n" + + " true\n" + + " ]\n" + + " },\n" + + " \"role_visibility_policy\": {\n" + + " \"default_value\": \"write\",\n" + + " \"overrides\": [\n" + + " {\n" + + " \"role_id\": \"role_id\",\n" + + " \"access\": \"write\"\n" + + " }\n" + + " ]\n" + + " },\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" + + "}"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + + @Test + public void testUpdate() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"id\":\"id\",\"name\":\"name\",\"is_default\":true,\"organization_deletion_behavior\":\"allow\",\"connection_deletion_behavior\":\"allow\",\"enforce_permission_ceiling\":true,\"enforce_self_assignment_restriction\":true,\"connection_profile_id\":\"connection_profile_id\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"allowed_strategies\":[\"adfs\"],\"invitation_landing_client_id\":\"invitation_landing_client_id\",\"admin_roles_assignment\":[\"admin_roles_assignment\"],\"use_for_organization_discovery\":{\"default_value\":true,\"allowed_values\":[true]},\"role_visibility_policy\":{\"default_value\":\"write\",\"overrides\":[{\"role_id\":\"role_id\",\"access\":\"write\"}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); + OrganizationTemplate response = client.organizationTemplates() + .update("id", UpdateOrganizationTemplateRequestContent.builder().build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("PATCH", request.getMethod()); + // Validate request body + String actualRequestBody = request.getBody().readUtf8(); + String expectedRequestBody = "" + "{}"; + JsonNode actualJson = objectMapper.readTree(actualRequestBody); + JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); + Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); + if (actualJson.has("type") || actualJson.has("_type") || actualJson.has("kind")) { + String discriminator = null; + if (actualJson.has("type")) discriminator = actualJson.get("type").asText(); + else if (actualJson.has("_type")) + discriminator = actualJson.get("_type").asText(); + else if (actualJson.has("kind")) + discriminator = actualJson.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualJson.isNull()) { + Assertions.assertTrue( + actualJson.isObject() || actualJson.isArray() || actualJson.isValueNode(), + "request should be a valid JSON value"); + } + + if (actualJson.isArray()) { + Assertions.assertTrue(actualJson.size() >= 0, "Array should have valid size"); + } + if (actualJson.isObject()) { + Assertions.assertTrue(actualJson.size() >= 0, "Object should have valid field count"); + } + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"id\": \"id\",\n" + + " \"name\": \"name\",\n" + + " \"is_default\": true,\n" + + " \"organization_deletion_behavior\": \"allow\",\n" + + " \"connection_deletion_behavior\": \"allow\",\n" + + " \"enforce_permission_ceiling\": true,\n" + + " \"enforce_self_assignment_restriction\": true,\n" + + " \"connection_profile_id\": \"connection_profile_id\",\n" + + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" + + " \"allowed_strategies\": [\n" + + " \"adfs\"\n" + + " ],\n" + + " \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n" + + " \"admin_roles_assignment\": [\n" + + " \"admin_roles_assignment\"\n" + + " ],\n" + + " \"use_for_organization_discovery\": {\n" + + " \"default_value\": true,\n" + + " \"allowed_values\": [\n" + + " true\n" + + " ]\n" + + " },\n" + + " \"role_visibility_policy\": {\n" + + " \"default_value\": \"write\",\n" + + " \"overrides\": [\n" + + " {\n" + + " \"role_id\": \"role_id\",\n" + + " \"access\": \"write\"\n" + + " }\n" + + " ]\n" + + " },\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" + + "}"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + + @Test + public void testListOrganizations() throws Exception { + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody("{\"next\":\"next\",\"organizations\":[{\"id\":\"id\"}]}")); + SyncPagingIterable response = client.organizationTemplates() + .listOrganizations( + "id", + ListTemplateOrganizationsRequestParameters.builder() + .from("from") + .take(1) + .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/OrganizationsOrganizationTemplateWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsOrganizationTemplateWireTest.java new file mode 100644 index 000000000..d5881459e --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsOrganizationTemplateWireTest.java @@ -0,0 +1,167 @@ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.types.OrganizationTemplate; +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 OrganizationsOrganizationTemplateWireTest { + 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 testGet() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"id\":\"id\",\"name\":\"name\",\"is_default\":true,\"organization_deletion_behavior\":\"allow\",\"connection_deletion_behavior\":\"allow\",\"enforce_permission_ceiling\":true,\"enforce_self_assignment_restriction\":true,\"connection_profile_id\":\"connection_profile_id\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"allowed_strategies\":[\"adfs\"],\"invitation_landing_client_id\":\"invitation_landing_client_id\",\"admin_roles_assignment\":[\"admin_roles_assignment\"],\"use_for_organization_discovery\":{\"default_value\":true,\"allowed_values\":[true]},\"role_visibility_policy\":{\"default_value\":\"write\",\"overrides\":[{\"role_id\":\"role_id\",\"access\":\"write\"}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); + OrganizationTemplate response = + client.organizations().organizationTemplate().get("id"); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"id\": \"id\",\n" + + " \"name\": \"name\",\n" + + " \"is_default\": true,\n" + + " \"organization_deletion_behavior\": \"allow\",\n" + + " \"connection_deletion_behavior\": \"allow\",\n" + + " \"enforce_permission_ceiling\": true,\n" + + " \"enforce_self_assignment_restriction\": true,\n" + + " \"connection_profile_id\": \"connection_profile_id\",\n" + + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" + + " \"allowed_strategies\": [\n" + + " \"adfs\"\n" + + " ],\n" + + " \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n" + + " \"admin_roles_assignment\": [\n" + + " \"admin_roles_assignment\"\n" + + " ],\n" + + " \"use_for_organization_discovery\": {\n" + + " \"default_value\": true,\n" + + " \"allowed_values\": [\n" + + " true\n" + + " ]\n" + + " },\n" + + " \"role_visibility_policy\": {\n" + + " \"default_value\": \"write\",\n" + + " \"overrides\": [\n" + + " {\n" + + " \"role_id\": \"role_id\",\n" + + " \"access\": \"write\"\n" + + " }\n" + + " ]\n" + + " },\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" + + "}"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + + @Test + public void testAssignOrganizationTemplate() throws Exception { + server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); + client.organizations().organizationTemplate().assignOrganizationTemplate("id", "template_id"); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("PUT", request.getMethod()); + } + + @Test + public void testUnassignOrganizationTemplate() throws Exception { + server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); + client.organizations().organizationTemplate().unassignOrganizationTemplate("id", "template_id"); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("DELETE", request.getMethod()); + } + + /** + * 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/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json index 7945c231a..2474555ab 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -380,6 +380,12 @@ "admin_login_domain": "admin_login_domain", "oin_submission_id": "oin_submission_id" }, + "b2b_integration_configuration": { + "sso_profiles": [ + "sso_profiles" + ], + "integration_type": "custom_auth_server" + }, "my_organization_configuration": { "connection_profile_id": "connection_profile_id", "user_attribute_profile_id": "user_attribute_profile_id", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json index 7945c231a..2474555ab 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -380,6 +380,12 @@ "admin_login_domain": "admin_login_domain", "oin_submission_id": "oin_submission_id" }, + "b2b_integration_configuration": { + "sso_profiles": [ + "sso_profiles" + ], + "integration_type": "custom_auth_server" + }, "my_organization_configuration": { "connection_profile_id": "connection_profile_id", "user_attribute_profile_id": "user_attribute_profile_id", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json index 7945c231a..2474555ab 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -380,6 +380,12 @@ "admin_login_domain": "admin_login_domain", "oin_submission_id": "oin_submission_id" }, + "b2b_integration_configuration": { + "sso_profiles": [ + "sso_profiles" + ], + "integration_type": "custom_auth_server" + }, "my_organization_configuration": { "connection_profile_id": "connection_profile_id", "user_attribute_profile_id": "user_attribute_profile_id", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json index 7945c231a..2474555ab 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -380,6 +380,12 @@ "admin_login_domain": "admin_login_domain", "oin_submission_id": "oin_submission_id" }, + "b2b_integration_configuration": { + "sso_profiles": [ + "sso_profiles" + ], + "integration_type": "custom_auth_server" + }, "my_organization_configuration": { "connection_profile_id": "connection_profile_id", "user_attribute_profile_id": "user_attribute_profile_id", diff --git a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json index a1f02a97c..6a4116f89 100644 --- a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testCreate_response.json @@ -51,6 +51,15 @@ ] } }, + "provisioning": { + "scim": { + "tokens": { + "scopes": [ + "get:users" + ] + } + } + }, "cross_app_access_resource_app": { "status": { "default_value": "enabled", diff --git a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json index a1f02a97c..6a4116f89 100644 --- a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testGet_response.json @@ -51,6 +51,15 @@ ] } }, + "provisioning": { + "scim": { + "tokens": { + "scopes": [ + "get:users" + ] + } + } + }, "cross_app_access_resource_app": { "status": { "default_value": "enabled", diff --git a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json index a1f02a97c..6a4116f89 100644 --- a/src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json @@ -51,6 +51,15 @@ ] } }, + "provisioning": { + "scim": { + "tokens": { + "scopes": [ + "get:users" + ] + } + } + }, "cross_app_access_resource_app": { "status": { "default_value": "enabled", diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json index 4b0030f5f..179fe3d55 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json @@ -47,7 +47,14 @@ ], "connecting_ipv6_cidrs": [ "connecting_ipv6_cidrs" - ] + ], + "http_message_signature": { + "keys": [ + { + "id": "id" + } + ] + } }, "not_match": { "asns": [ @@ -85,7 +92,14 @@ ], "connecting_ipv6_cidrs": [ "connecting_ipv6_cidrs" - ] + ], + "http_message_signature": { + "keys": [ + { + "id": "id" + } + ] + } }, "match_all": true, "scope": "management" diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json index 4b0030f5f..179fe3d55 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json @@ -47,7 +47,14 @@ ], "connecting_ipv6_cidrs": [ "connecting_ipv6_cidrs" - ] + ], + "http_message_signature": { + "keys": [ + { + "id": "id" + } + ] + } }, "not_match": { "asns": [ @@ -85,7 +92,14 @@ ], "connecting_ipv6_cidrs": [ "connecting_ipv6_cidrs" - ] + ], + "http_message_signature": { + "keys": [ + { + "id": "id" + } + ] + } }, "match_all": true, "scope": "management" diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json index 4b0030f5f..179fe3d55 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json @@ -47,7 +47,14 @@ ], "connecting_ipv6_cidrs": [ "connecting_ipv6_cidrs" - ] + ], + "http_message_signature": { + "keys": [ + { + "id": "id" + } + ] + } }, "not_match": { "asns": [ @@ -85,7 +92,14 @@ ], "connecting_ipv6_cidrs": [ "connecting_ipv6_cidrs" - ] + ], + "http_message_signature": { + "keys": [ + { + "id": "id" + } + ] + } }, "match_all": true, "scope": "management" diff --git a/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json b/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json index 8c3864005..d11d4f7b3 100644 --- a/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json @@ -52,6 +52,7 @@ "remove_alg_from_jwks": true, "improved_signup_bot_detection_in_classic": true, "genai_trial": true, + "local_resource_discovery": true, "enable_dynamic_client_registration": true, "disable_management_api_sms_obfuscation": true, "trust_azure_adfs_email_verified_connection_property": true, diff --git a/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json index 8c3864005..d11d4f7b3 100644 --- a/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json @@ -52,6 +52,7 @@ "remove_alg_from_jwks": true, "improved_signup_bot_detection_in_classic": true, "genai_trial": true, + "local_resource_discovery": true, "enable_dynamic_client_registration": true, "disable_management_api_sms_obfuscation": true, "trust_azure_adfs_email_verified_connection_property": true,