diff --git a/.fern/replay.lock b/.fern/replay.lock index faf84d4b3..0593e246a 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,5 +18,396 @@ generations: cli_version: unknown generator_versions: fernapi/fern-java-sdk: 4.11.1 -current_generation: 653c66ddba4f88ad24d1bab64c0d820b57ec9c0d -patches: [] + - commit_sha: 6123049f4ae684b09b5bfb8da5ed607adc6f871d + tree_hash: 4d63c7b38b38d404803cfd5d9859d9711e9c03fa + timestamp: 2026-07-21T07:15:47.465Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.11.1 +current_generation: 6123049f4ae684b09b5bfb8da5ed607adc6f871d +patches: + - id: patch-ec28244b + content_hash: sha256:138547c31047858fa903f656bd52246c357d3c34bd650b5648c0ed7f0f37ee0f + original_commit: ec28244b9fc3bce518088b96a5402cbb8ad1dcc6 + original_message: "feat: add MIGRATION_GUIDE (#900)" + original_author: Tanya Sinha + base_generation: 6123049f4ae684b09b5bfb8da5ed607adc6f871d + files: + - v3_MIGRATION_GUIDE.md + patch_content: | + diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md + deleted file mode 100644 + index 9d98602c..00000000 + --- a/MIGRATION_GUIDE.md + +++ /dev/null + @@ -1,369 +0,0 @@ + -# V3 Migration Guide + - + -A guide to migrating the Auth0 Java SDK from `v2` to `v3`. + - + -- [Overall changes](#overall-changes) + - - [Java versions](#java-versions) + - - [Authentication API](#authentication-api) + - - [Management API](#management-api) + -- [Specific changes to the Management API](#specific-changes-to-the-management-api) + - - [Client initialization](#client-initialization) + - - [Sub-client organization](#sub-client-organization) + - - [Request and response patterns](#request-and-response-patterns) + - - [Pagination](#pagination) + - - [Exception handling](#exception-handling) + - - [Accessing raw HTTP responses](#accessing-raw-http-responses) + - - [Request-level configuration](#request-level-configuration) + - - [Type changes](#type-changes) + - + -## Overall changes + - + -### Java versions + - + -Both v2 and v3 require Java 8 or above. + - + -### Authentication API + - + -This major version change does not affect the Authentication API. The `AuthAPI` class has been ported directly from v2 to v3. Any code written for the Authentication API in the v2 version should work in the v3 version. + - + -```java + -// Works in both v2 and v3 + -AuthAPI auth = AuthAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_CLIENT_ID}", "{YOUR_CLIENT_SECRET}").build(); + -``` + - + -### Management API + - + -V3 introduces significant improvements to the Management API SDK by migrating to [Fern](https://github.com/fern-api/fern) as the code generation tool. This provides: + - + -- Better resource grouping with sub-client organization + -- Type-safe request and response objects using builder patterns + -- Automatic pagination with `SyncPagingIterable` + -- Simplified access to HTTP response metadata via `withRawResponse()` + -- Consistent method naming (`list`, `create`, `get`, `update`, `delete`) + - + -## Specific changes to the Management API + - + -### Client initialization + - + -The Management API client initialization has changed from `ManagementAPI` to `ManagementApi`, and uses a different builder pattern. + - + -**v2:** + -```java + -import com.auth0.client.mgmt.ManagementAPI; + - + -// Using domain and token + -ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}").build(); + - + -// Using TokenProvider + -TokenProvider tokenProvider = SimpleTokenProvider.create("{YOUR_API_TOKEN}"); + -ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", tokenProvider).build(); + -``` + - + -**v3:** + -1st Approach : Standard Token-Based + -```java + -import com.auth0.client.mgmt.ManagementApi; + - + -ManagementApi client = ManagementApi + - .builder() + - .url("https://{YOUR_DOMAIN}/api/v2") + - .token("{YOUR_API_TOKEN}") + - .build(); + -``` + - + -or + - + -2nd Approach : OAuth client credentials flow + - + -```java + -OAuthTokenSupplier tokenSupplier = new OAuthTokenSupplier( + -"{CLIENT_ID}", + -"{CLIENT_SECRET}", + -"https://{YOUR_DOMAIN}", + -"{YOUR_AUDIENCE}" + -); + - + -ClientOptions clientOptions = ClientOptions.builder() + -.environment(Environment.custom("https://{YOUR_AUDIENCE}")) + -.addHeader("Authorization", () -> "Bearer " + tokenSupplier.get()) + -.build(); + - + -ManagementApi client = new ManagementApi(clientOptions); + - + -``` + - + -#### Builder options comparison + - + -| Option | v2 | v3 | + -|--------|----|----| + -| Domain/URL | `newBuilder(domain, token)` | `.url("https://domain/api/v2")` | + -| Token | Constructor parameter | `.token(token)` | + -| Timeout | Via `HttpOptions` | `.timeout(seconds)` | + -| Max retries | Via `HttpOptions` | `.maxRetries(count)` | + -| Custom HTTP client | `.withHttpClient(Auth0HttpClient)` | `.httpClient(OkHttpClient)` | + -| Custom headers | Not directly supported | `.addHeader(name, value)` | + - + -### Sub-client organization + - + -V3 introduces a hierarchical sub-client structure. Operations on related resources are now accessed through nested clients instead of methods on a flat entity class. + - + -**v2:** + -```java + -// All user operations on UsersEntity + -Request userRequest = mgmt.users().get("user_id", new UserFilter()); + -Request> permissionsRequest = mgmt.users().getPermissions("user_id", new PermissionsFilter()); + -Request> rolesRequest = mgmt.users().getRoles("user_id", new RolesFilter()); + -Request logsRequest = mgmt.users().getLogEvents("user_id", new LogEventFilter()); + -``` + - + -**v3:** + -```java + -// Operations organized into sub-clients + -GetUserResponseContent user = client.users().get("user_id"); + -SyncPagingIterable permissions = client.users().permissions().list("user_id"); + -SyncPagingIterable roles = client.users().roles().list("user_id"); + -SyncPagingIterable logs = client.users().logs().list("user_id"); + -``` + - + -#### Common sub-client mappings + - + -| v2 Method | v3 Sub-client | + -|-----------|---------------| + -| `mgmt.users().getPermissions()` | `client.users().permissions().list()` | + -| `mgmt.users().getRoles()` | `client.users().roles().list()` | + -| `mgmt.users().getLogEvents()` | `client.users().logs().list()` | + -| `mgmt.users().getOrganizations()` | `client.users().organizations().list()` | + -| `mgmt.users().link()` | `client.users().identities().link()` | + -| `mgmt.users().unlink()` | `client.users().identities().delete()` | + -| `mgmt.users().deleteMultifactorProvider()` | `client.users().multifactor().deleteProvider()` | + -| `mgmt.organizations().getMembers()` | `client.organizations().members().list()` | + -| `mgmt.organizations().getInvitations()` | `client.organizations().invitations().list()` | + -| `mgmt.organizations().getEnabledConnections()` | `client.organizations().enabledConnections().list()` | + -| `mgmt.actions().getVersions()` | `client.actions().versions().list()` | + -| `mgmt.actions().getTriggerBindings()` | `client.actions().triggers().bindings().list()` | + -| `mgmt.guardian().getFactors()` | `client.guardian().factors().list()` | + -| `mgmt.branding().getUniversalLoginTemplate()` | `client.branding().templates().getUniversalLogin()` | + -| `mgmt.connections().getScimConfiguration()` | `client.connections().scimConfiguration().get()` | + - + -### Request and response patterns + - + -V3 uses type-safe request content objects with builders instead of domain objects or filter parameters. + - + -**v2:** + -```java + -import com.auth0.json.mgmt.users.User; + -import com.auth0.net.Request; + - + -// Creating a user + -User user = new User("Username-Password-Authentication"); + -user.setEmail("test@example.com"); + -user.setPassword("password123".toCharArray()); + - + -Request request = mgmt.users().create(user); + -User createdUser = request.execute().getBody(); + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.types.CreateUserRequestContent; + -import com.auth0.client.mgmt.types.CreateUserResponseContent; + - + -// Creating a user + -CreateUserResponseContent user = client.users().create( + - CreateUserRequestContent + - .builder() + - .connection("Username-Password-Authentication") + - .email("test@example.com") + - .password("password123") + - .build() + -); + -``` + - + -#### Key differences + - + -| Aspect | v2 | v3 | + -|--------|----|----| + -| Request building | Domain objects with setters | Builder pattern with `*RequestContent` types | + -| Response type | `Request` requiring `.execute().getBody()` | Direct return of response object | + -| Filtering | Filter classes (e.g., `UserFilter`) | `*RequestParameters` builder classes | + -| Execution | Explicit `.execute()` call | Implicit execution on method call | + - + -### Pagination + - + -V3 introduces `SyncPagingIterable` for automatic pagination, replacing the manual `Request` pattern. + - + -**v2:** + -```java + -import com.auth0.json.mgmt.users.UsersPage; + -import com.auth0.client.mgmt.filter.UserFilter; + - + -Request request = mgmt.users().list(new UserFilter().withPage(0, 50)); + -UsersPage page = request.execute().getBody(); + - + -for (User user : page.getItems()) { + - System.out.println(user.getEmail()); + -} + - + -// Manual pagination + -while (page.getNext() != null) { + - request = mgmt.users().list(new UserFilter().withPage(page.getNext(), 50)); + - page = request.execute().getBody(); + - for (User user : page.getItems()) { + - System.out.println(user.getEmail()); + - } + -} + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.SyncPagingIterable; + -import com.auth0.client.mgmt.types.UserResponseSchema; + -import com.auth0.client.mgmt.types.ListUsersRequestParameters; + - + -// Automatic iteration through all pages + -SyncPagingIterable users = client.users().list( + - ListUsersRequestParameters + - .builder() + - .perPage(50) + - .build() + -); + - + -for (UserResponseSchema user : users) { + - System.out.println(user.getEmail()); + -} + - + -// Or manual page control + -List pageItems = users.getItems(); + -while (users.hasNext()) { + - pageItems = users.nextPage().getItems(); + - // process page + -} + -``` + - + -### Exception handling + - + -V3 uses a unified `ManagementApiException` class instead of the v2 exception hierarchy. + - + -**v2:** + -```java + -import com.auth0.exception.Auth0Exception; + -import com.auth0.exception.APIException; + -import com.auth0.exception.RateLimitException; + - + -try { + - User user = mgmt.users().get("user_id", null).execute().getBody(); + -} catch (RateLimitException e) { + - // Rate limited + - long retryAfter = e.getLimit(); + -} catch (APIException e) { + - int statusCode = e.getStatusCode(); + - String error = e.getError(); + - String description = e.getDescription(); + -} catch (Auth0Exception e) { + - // Network or other errors + -} + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.ManagementApiException; + - + -try { + - GetUserResponseContent user = client.users().get("user_id"); + -} catch (ManagementApiException e) { + - int statusCode = e.statusCode(); + - Object body = e.body(); + - Map> headers = e.headers(); + - String message = e.getMessage(); + -} + -``` + - + -### Accessing raw HTTP responses + - + -V3 provides access to full HTTP response metadata via `withRawResponse()`. + - + -**v2:** + -```java + -// Response wrapper provided status code + -Response response = mgmt.users().get("user_id", null).execute(); + -int statusCode = response.getStatusCode(); + -User user = response.getBody(); + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.ManagementApiHttpResponse; + - + -// Use withRawResponse() to access headers and metadata + -ManagementApiHttpResponse response = client.users() + - .withRawResponse() + - .get("user_id"); + - + -GetUserResponseContent user = response.body(); + -Map> headers = response.headers(); + -``` + - + -### Request-level configuration + - + -V3 allows per-request configuration through `RequestOptions`. + - + -**v2:** + -```java + -// Most configuration was at client level only + -// Request-level headers required creating a new request manually + -Request request = mgmt.users().get("user_id", null); + -request.addHeader("X-Custom-Header", "value"); + -User user = request.execute().getBody(); + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.RequestOptions; + - + -GetUserResponseContent user = client.users().get( + - "user_id", + - GetUserRequestParameters.builder().build(), + - RequestOptions.builder() + - .timeout(10) + - .maxRetries(1) + - .addHeader("X-Custom-Header", "value") + - .build() + -); + -``` + - + -### Type changes + - + -V3 uses generated type classes located in `com.auth0.client.mgmt.types` instead of the hand-written POJOs in `com.auth0.json.mgmt`. + - + -**v2:** + -```java + -import com.auth0.json.mgmt.users.User; + -import com.auth0.json.mgmt.roles.Role; + -import com.auth0.json.mgmt.organizations.Organization; + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.types.UserResponseSchema; + -import com.auth0.client.mgmt.types.CreateUserRequestContent; + -import com.auth0.client.mgmt.types.CreateUserResponseContent; + -import com.auth0.client.mgmt.types.Role; + -import com.auth0.client.mgmt.types.Organization; + -``` + - + -Type naming conventions in v3: + -- Request body types: `*RequestContent` (e.g., `CreateUserRequestContent`) + -- Response types: `*ResponseContent` or `*ResponseSchema` (e.g., `GetUserResponseContent`, `UserResponseSchema`) + -- Query parameters: `*RequestParameters` (e.g., `ListUsersRequestParameters`) + - + -All types use immutable builders: + - + -```java + -// v3 type construction + -CreateUserRequestContent request = CreateUserRequestContent + - .builder() + - .connection("Username-Password-Authentication") + - .email("test@example.com") + - .password("secure-password") + - .build(); + -``` + user_owned: true diff --git a/reference.md b/reference.md index 0576977ea..647fa3fc8 100644 --- a/reference.md +++ b/reference.md @@ -1302,7 +1302,7 @@ client.clients().list(
-**externalClientId:** `Optional` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. +**externalClientId:** `Optional` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.
@@ -1786,6 +1786,14 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
+**identityAssertionAuthorizationGrant:** `Optional` + +
+
+ +
+
+ **thirdPartySecurityMode:** `Optional`
@@ -2411,6 +2419,14 @@ client.clients().update(
+**identityAssertionAuthorizationGrant:** `Optional` + +
+
+ +
+
+ **formTemplate:** `Optional` — Form template for WS-Federation protocol
@@ -3424,6 +3440,14 @@ client.connections().create( **crossAppAccessRequestingApp:** `Optional` + +
+ +
+
+ +**crossAppAccessResourceApp:** `Optional` +
@@ -3698,6 +3722,14 @@ client.connections().update( **crossAppAccessRequestingApp:** `Optional` + +
+ +
+
+ +**crossAppAccessResourceApp:** `Optional` +
@@ -16871,6 +16903,14 @@ client.branding().themes().create(
+**identifiers:** `Optional` + +
+
+ +
+
+ **pageBackground:** `BrandingThemePageBackground`
@@ -17228,6 +17268,14 @@ client.branding().themes().update(
+**identifiers:** `Optional` + +
+
+ +
+
+ **pageBackground:** `BrandingThemePageBackground`
@@ -29546,6 +29594,14 @@ client.selfServiceProfiles().ssoTicket().create(
+**thirdPartyClientAccessConfig:** `Optional` + +
+
+ +
+
+ **enabledFeatures:** `Optional`
diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java index 4016a847a..710a805fd 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java @@ -7,6 +7,7 @@ import com.auth0.client.mgmt.types.BrandingThemeBorders; import com.auth0.client.mgmt.types.BrandingThemeColors; import com.auth0.client.mgmt.types.BrandingThemeFonts; +import com.auth0.client.mgmt.types.BrandingThemeIdentifiers; import com.auth0.client.mgmt.types.BrandingThemePageBackground; import com.auth0.client.mgmt.types.BrandingThemeWidget; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -34,6 +35,8 @@ public final class CreateBrandingThemeRequestContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final BrandingThemeWidget widget; @@ -45,6 +48,7 @@ private CreateBrandingThemeRequestContent( BrandingThemeColors colors, Optional displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, BrandingThemeWidget widget, Map additionalProperties) { @@ -52,6 +56,7 @@ private CreateBrandingThemeRequestContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.widget = widget; this.additionalProperties = additionalProperties; @@ -80,6 +85,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -106,13 +116,21 @@ private boolean equalTo(CreateBrandingThemeRequestContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && widget.equals(other.widget); } @java.lang.Override public int hashCode() { - return Objects.hash(this.borders, this.colors, this.displayName, this.fonts, this.pageBackground, this.widget); + return Objects.hash( + this.borders, + this.colors, + this.displayName, + this.fonts, + this.identifiers, + this.pageBackground, + this.widget); } @java.lang.Override @@ -159,6 +177,10 @@ public interface _FinalStage { _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -174,6 +196,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + private Optional displayName = Optional.empty(); @JsonAnySetter @@ -187,6 +211,7 @@ public Builder from(CreateBrandingThemeRequestContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); widget(other.getWidget()); return this; @@ -227,6 +252,19 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + /** *

Display Name

* @return Reference to {@code this} so that method calls can be chained together. @@ -250,7 +288,7 @@ public _FinalStage displayName(Optional displayName) { @java.lang.Override public CreateBrandingThemeRequestContent build() { return new CreateBrandingThemeRequestContent( - borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); + borders, colors, displayName, fonts, identifiers, pageBackground, widget, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java index 803699010..7d70f1fa5 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java @@ -7,6 +7,7 @@ import com.auth0.client.mgmt.types.BrandingThemeBorders; import com.auth0.client.mgmt.types.BrandingThemeColors; import com.auth0.client.mgmt.types.BrandingThemeFonts; +import com.auth0.client.mgmt.types.BrandingThemeIdentifiers; import com.auth0.client.mgmt.types.BrandingThemePageBackground; import com.auth0.client.mgmt.types.BrandingThemeWidget; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -34,6 +35,8 @@ public final class UpdateBrandingThemeRequestContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final BrandingThemeWidget widget; @@ -45,6 +48,7 @@ private UpdateBrandingThemeRequestContent( BrandingThemeColors colors, Optional displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, BrandingThemeWidget widget, Map additionalProperties) { @@ -52,6 +56,7 @@ private UpdateBrandingThemeRequestContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.widget = widget; this.additionalProperties = additionalProperties; @@ -80,6 +85,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -106,13 +116,21 @@ private boolean equalTo(UpdateBrandingThemeRequestContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && widget.equals(other.widget); } @java.lang.Override public int hashCode() { - return Objects.hash(this.borders, this.colors, this.displayName, this.fonts, this.pageBackground, this.widget); + return Objects.hash( + this.borders, + this.colors, + this.displayName, + this.fonts, + this.identifiers, + this.pageBackground, + this.widget); } @java.lang.Override @@ -159,6 +177,10 @@ public interface _FinalStage { _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -174,6 +196,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + private Optional displayName = Optional.empty(); @JsonAnySetter @@ -187,6 +211,7 @@ public Builder from(UpdateBrandingThemeRequestContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); widget(other.getWidget()); return this; @@ -227,6 +252,19 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + /** *

Display Name

* @return Reference to {@code this} so that method calls can be chained together. @@ -250,7 +288,7 @@ public _FinalStage displayName(Optional displayName) { @java.lang.Override public UpdateBrandingThemeRequestContent build() { return new UpdateBrandingThemeRequestContent( - borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); + borders, colors, displayName, fonts, identifiers, pageBackground, widget, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java index 93d33db82..333304caa 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.types.SelfServiceProfileSsoTicketEnabledFeatures; import com.auth0.client.mgmt.types.SelfServiceProfileSsoTicketEnabledOrganization; import com.auth0.client.mgmt.types.SelfServiceProfileSsoTicketProvisioningConfig; +import com.auth0.client.mgmt.types.ThirdPartyClientAccessConfig; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -42,6 +43,8 @@ public final class CreateSelfServiceProfileSsoTicketRequestContent { private final Optional useForOrganizationDiscovery; + private final Optional thirdPartyClientAccessConfig; + private final Optional enabledFeatures; private final Map additionalProperties; @@ -55,6 +58,7 @@ private CreateSelfServiceProfileSsoTicketRequestContent( Optional domainAliasesConfig, Optional provisioningConfig, Optional useForOrganizationDiscovery, + Optional thirdPartyClientAccessConfig, Optional enabledFeatures, Map additionalProperties) { this.connectionId = connectionId; @@ -65,6 +69,7 @@ private CreateSelfServiceProfileSsoTicketRequestContent( this.domainAliasesConfig = domainAliasesConfig; this.provisioningConfig = provisioningConfig; this.useForOrganizationDiscovery = useForOrganizationDiscovery; + this.thirdPartyClientAccessConfig = thirdPartyClientAccessConfig; this.enabledFeatures = enabledFeatures; this.additionalProperties = additionalProperties; } @@ -124,6 +129,11 @@ public Optional getUseForOrganizationDiscovery() { return useForOrganizationDiscovery; } + @JsonProperty("third_party_client_access_config") + public Optional getThirdPartyClientAccessConfig() { + return thirdPartyClientAccessConfig; + } + @JsonProperty("enabled_features") public Optional getEnabledFeatures() { return enabledFeatures; @@ -150,6 +160,7 @@ private boolean equalTo(CreateSelfServiceProfileSsoTicketRequestContent other) { && domainAliasesConfig.equals(other.domainAliasesConfig) && provisioningConfig.equals(other.provisioningConfig) && useForOrganizationDiscovery.equals(other.useForOrganizationDiscovery) + && thirdPartyClientAccessConfig.equals(other.thirdPartyClientAccessConfig) && enabledFeatures.equals(other.enabledFeatures); } @@ -164,6 +175,7 @@ public int hashCode() { this.domainAliasesConfig, this.provisioningConfig, this.useForOrganizationDiscovery, + this.thirdPartyClientAccessConfig, this.enabledFeatures); } @@ -194,6 +206,8 @@ public static final class Builder { private Optional useForOrganizationDiscovery = Optional.empty(); + private Optional thirdPartyClientAccessConfig = Optional.empty(); + private Optional enabledFeatures = Optional.empty(); @JsonAnySetter @@ -210,6 +224,7 @@ public Builder from(CreateSelfServiceProfileSsoTicketRequestContent other) { domainAliasesConfig(other.getDomainAliasesConfig()); provisioningConfig(other.getProvisioningConfig()); useForOrganizationDiscovery(other.getUseForOrganizationDiscovery()); + thirdPartyClientAccessConfig(other.getThirdPartyClientAccessConfig()); enabledFeatures(other.getEnabledFeatures()); return this; } @@ -319,6 +334,18 @@ public Builder useForOrganizationDiscovery(Boolean useForOrganizationDiscovery) return this; } + @JsonSetter(value = "third_party_client_access_config", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccessConfig( + Optional thirdPartyClientAccessConfig) { + this.thirdPartyClientAccessConfig = thirdPartyClientAccessConfig; + return this; + } + + public Builder thirdPartyClientAccessConfig(ThirdPartyClientAccessConfig thirdPartyClientAccessConfig) { + this.thirdPartyClientAccessConfig = Optional.ofNullable(thirdPartyClientAccessConfig); + return this; + } + @JsonSetter(value = "enabled_features", nulls = Nulls.SKIP) public Builder enabledFeatures(Optional enabledFeatures) { this.enabledFeatures = enabledFeatures; @@ -340,6 +367,7 @@ public CreateSelfServiceProfileSsoTicketRequestContent build() { domainAliasesConfig, provisioningConfig, useForOrganizationDiscovery, + thirdPartyClientAccessConfig, enabledFeatures, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiers.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiers.java new file mode 100644 index 000000000..a6520b392 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiers.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.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = BrandingThemeIdentifiers.Builder.class) +public final class BrandingThemeIdentifiers { + private final BrandingThemeIdentifiersLoginDisplayEnum loginDisplay; + + private final boolean otpAutocomplete; + + private final BrandingThemeIdentifiersPhoneDisplay phoneDisplay; + + private final Map additionalProperties; + + private BrandingThemeIdentifiers( + BrandingThemeIdentifiersLoginDisplayEnum loginDisplay, + boolean otpAutocomplete, + BrandingThemeIdentifiersPhoneDisplay phoneDisplay, + Map additionalProperties) { + this.loginDisplay = loginDisplay; + this.otpAutocomplete = otpAutocomplete; + this.phoneDisplay = phoneDisplay; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("login_display") + public BrandingThemeIdentifiersLoginDisplayEnum getLoginDisplay() { + return loginDisplay; + } + + /** + * @return OTP autocomplete + */ + @JsonProperty("otp_autocomplete") + public boolean getOtpAutocomplete() { + return otpAutocomplete; + } + + @JsonProperty("phone_display") + public BrandingThemeIdentifiersPhoneDisplay getPhoneDisplay() { + return phoneDisplay; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BrandingThemeIdentifiers && equalTo((BrandingThemeIdentifiers) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(BrandingThemeIdentifiers other) { + return loginDisplay.equals(other.loginDisplay) + && otpAutocomplete == other.otpAutocomplete + && phoneDisplay.equals(other.phoneDisplay); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.loginDisplay, this.otpAutocomplete, this.phoneDisplay); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static LoginDisplayStage builder() { + return new Builder(); + } + + public interface LoginDisplayStage { + OtpAutocompleteStage loginDisplay(@NotNull BrandingThemeIdentifiersLoginDisplayEnum loginDisplay); + + Builder from(BrandingThemeIdentifiers other); + } + + public interface OtpAutocompleteStage { + /** + *

OTP autocomplete

+ */ + PhoneDisplayStage otpAutocomplete(boolean otpAutocomplete); + } + + public interface PhoneDisplayStage { + _FinalStage phoneDisplay(@NotNull BrandingThemeIdentifiersPhoneDisplay phoneDisplay); + } + + public interface _FinalStage { + BrandingThemeIdentifiers build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements LoginDisplayStage, OtpAutocompleteStage, PhoneDisplayStage, _FinalStage { + private BrandingThemeIdentifiersLoginDisplayEnum loginDisplay; + + private boolean otpAutocomplete; + + private BrandingThemeIdentifiersPhoneDisplay phoneDisplay; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(BrandingThemeIdentifiers other) { + loginDisplay(other.getLoginDisplay()); + otpAutocomplete(other.getOtpAutocomplete()); + phoneDisplay(other.getPhoneDisplay()); + return this; + } + + @java.lang.Override + @JsonSetter("login_display") + public OtpAutocompleteStage loginDisplay(@NotNull BrandingThemeIdentifiersLoginDisplayEnum loginDisplay) { + this.loginDisplay = Objects.requireNonNull(loginDisplay, "loginDisplay must not be null"); + return this; + } + + /** + *

OTP autocomplete

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("otp_autocomplete") + public PhoneDisplayStage otpAutocomplete(boolean otpAutocomplete) { + this.otpAutocomplete = otpAutocomplete; + return this; + } + + @java.lang.Override + @JsonSetter("phone_display") + public _FinalStage phoneDisplay(@NotNull BrandingThemeIdentifiersPhoneDisplay phoneDisplay) { + this.phoneDisplay = Objects.requireNonNull(phoneDisplay, "phoneDisplay must not be null"); + return this; + } + + @java.lang.Override + public BrandingThemeIdentifiers build() { + return new BrandingThemeIdentifiers(loginDisplay, otpAutocomplete, phoneDisplay, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersLoginDisplayEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersLoginDisplayEnum.java new file mode 100644 index 000000000..74d74b514 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersLoginDisplayEnum.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 BrandingThemeIdentifiersLoginDisplayEnum { + public static final BrandingThemeIdentifiersLoginDisplayEnum SEPARATE = + new BrandingThemeIdentifiersLoginDisplayEnum(Value.SEPARATE, "separate"); + + public static final BrandingThemeIdentifiersLoginDisplayEnum UNIFIED = + new BrandingThemeIdentifiersLoginDisplayEnum(Value.UNIFIED, "unified"); + + private final Value value; + + private final String string; + + BrandingThemeIdentifiersLoginDisplayEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof BrandingThemeIdentifiersLoginDisplayEnum + && this.string.equals(((BrandingThemeIdentifiersLoginDisplayEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SEPARATE: + return visitor.visitSeparate(); + case UNIFIED: + return visitor.visitUnified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static BrandingThemeIdentifiersLoginDisplayEnum valueOf(String value) { + switch (value) { + case "separate": + return SEPARATE; + case "unified": + return UNIFIED; + default: + return new BrandingThemeIdentifiersLoginDisplayEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SEPARATE, + + UNIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitSeparate(); + + T visitUnified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplay.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplay.java new file mode 100644 index 000000000..2bc87b1fa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplay.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 = BrandingThemeIdentifiersPhoneDisplay.Builder.class) +public final class BrandingThemeIdentifiersPhoneDisplay { + private final BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting; + + private final BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking; + + private final Map additionalProperties; + + private BrandingThemeIdentifiersPhoneDisplay( + BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting, + BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking, + Map additionalProperties) { + this.formatting = formatting; + this.masking = masking; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("formatting") + public BrandingThemeIdentifiersPhoneDisplayFormattingEnum getFormatting() { + return formatting; + } + + @JsonProperty("masking") + public BrandingThemeIdentifiersPhoneDisplayMaskingEnum getMasking() { + return masking; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BrandingThemeIdentifiersPhoneDisplay + && equalTo((BrandingThemeIdentifiersPhoneDisplay) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(BrandingThemeIdentifiersPhoneDisplay other) { + return formatting.equals(other.formatting) && masking.equals(other.masking); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.formatting, this.masking); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static FormattingStage builder() { + return new Builder(); + } + + public interface FormattingStage { + MaskingStage formatting(@NotNull BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting); + + Builder from(BrandingThemeIdentifiersPhoneDisplay other); + } + + public interface MaskingStage { + _FinalStage masking(@NotNull BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking); + } + + public interface _FinalStage { + BrandingThemeIdentifiersPhoneDisplay build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements FormattingStage, MaskingStage, _FinalStage { + private BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting; + + private BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(BrandingThemeIdentifiersPhoneDisplay other) { + formatting(other.getFormatting()); + masking(other.getMasking()); + return this; + } + + @java.lang.Override + @JsonSetter("formatting") + public MaskingStage formatting(@NotNull BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting) { + this.formatting = Objects.requireNonNull(formatting, "formatting must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("masking") + public _FinalStage masking(@NotNull BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking) { + this.masking = Objects.requireNonNull(masking, "masking must not be null"); + return this; + } + + @java.lang.Override + public BrandingThemeIdentifiersPhoneDisplay build() { + return new BrandingThemeIdentifiersPhoneDisplay(formatting, masking, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayFormattingEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayFormattingEnum.java new file mode 100644 index 000000000..7d69d61dd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayFormattingEnum.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 BrandingThemeIdentifiersPhoneDisplayFormattingEnum { + public static final BrandingThemeIdentifiersPhoneDisplayFormattingEnum REGIONAL = + new BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value.REGIONAL, "regional"); + + public static final BrandingThemeIdentifiersPhoneDisplayFormattingEnum INTERNATIONAL = + new BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value.INTERNATIONAL, "international"); + + private final Value value; + + private final String string; + + BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof BrandingThemeIdentifiersPhoneDisplayFormattingEnum + && this.string.equals(((BrandingThemeIdentifiersPhoneDisplayFormattingEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case REGIONAL: + return visitor.visitRegional(); + case INTERNATIONAL: + return visitor.visitInternational(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static BrandingThemeIdentifiersPhoneDisplayFormattingEnum valueOf(String value) { + switch (value) { + case "regional": + return REGIONAL; + case "international": + return INTERNATIONAL; + default: + return new BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + INTERNATIONAL, + + REGIONAL, + + UNKNOWN + } + + public interface Visitor { + T visitInternational(); + + T visitRegional(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayMaskingEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayMaskingEnum.java new file mode 100644 index 000000000..c3f1a3076 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayMaskingEnum.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 BrandingThemeIdentifiersPhoneDisplayMaskingEnum { + public static final BrandingThemeIdentifiersPhoneDisplayMaskingEnum SHOW_ALL = + new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.SHOW_ALL, "show_all"); + + public static final BrandingThemeIdentifiersPhoneDisplayMaskingEnum MASK_DIGITS = + new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.MASK_DIGITS, "mask_digits"); + + public static final BrandingThemeIdentifiersPhoneDisplayMaskingEnum HIDE_COUNTRY_CODE = + new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.HIDE_COUNTRY_CODE, "hide_country_code"); + + private final Value value; + + private final String string; + + BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof BrandingThemeIdentifiersPhoneDisplayMaskingEnum + && this.string.equals(((BrandingThemeIdentifiersPhoneDisplayMaskingEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHOW_ALL: + return visitor.visitShowAll(); + case MASK_DIGITS: + return visitor.visitMaskDigits(); + case HIDE_COUNTRY_CODE: + return visitor.visitHideCountryCode(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static BrandingThemeIdentifiersPhoneDisplayMaskingEnum valueOf(String value) { + switch (value) { + case "show_all": + return SHOW_ALL; + case "mask_digits": + return MASK_DIGITS; + case "hide_country_code": + return HIDE_COUNTRY_CODE; + default: + return new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + HIDE_COUNTRY_CODE, + + MASK_DIGITS, + + SHOW_ALL, + + UNKNOWN + } + + public interface Visitor { + T visitHideCountryCode(); + + T visitMaskDigits(); + + T visitShowAll(); + + 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 2963c66b0..6ff57f2f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Client.java +++ b/src/main/java/com/auth0/client/mgmt/types/Client.java @@ -134,6 +134,8 @@ public final class Client { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private Client( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private Client( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(Client other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(Client other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public Client build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, 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 0bfdbff4c..9be55678e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java @@ -44,6 +44,9 @@ 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"); @@ -127,6 +130,8 @@ 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: @@ -186,6 +191,8 @@ public static ClientAppTypeEnum valueOf(String value) { return ECHOSIGN; case "rms": return RMS; + case "b2b_integration": + return B2B_INTEGRATION; case "cloudbees": return CLOUDBEES; case "salesforce": @@ -220,6 +227,8 @@ public enum Value { EXPRESS_CONFIGURATION, + B2B_INTEGRATION, + RMS, BOX, @@ -274,6 +283,8 @@ public interface Visitor { T visitExpressConfiguration(); + T visitB2BIntegration(); + T visitRms(); T visitBox(); diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java index 7ea37cc47..0fbc8ad4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java @@ -9,6 +9,9 @@ public final class ClientGrantSubjectTypeEnum { public static final ClientGrantSubjectTypeEnum USER = new ClientGrantSubjectTypeEnum(Value.USER, "user"); + public static final ClientGrantSubjectTypeEnum ANONYMOUS_USER = + new ClientGrantSubjectTypeEnum(Value.ANONYMOUS_USER, "anonymous_user"); + public static final ClientGrantSubjectTypeEnum CLIENT = new ClientGrantSubjectTypeEnum(Value.CLIENT, "client"); private final Value value; @@ -46,6 +49,8 @@ public T visit(Visitor visitor) { switch (value) { case USER: return visitor.visitUser(); + case ANONYMOUS_USER: + return visitor.visitAnonymousUser(); case CLIENT: return visitor.visitClient(); case UNKNOWN: @@ -59,6 +64,8 @@ public static ClientGrantSubjectTypeEnum valueOf(String value) { switch (value) { case "user": return USER; + case "anonymous_user": + return ANONYMOUS_USER; case "client": return CLIENT; default: @@ -71,6 +78,8 @@ public enum Value { USER, + ANONYMOUS_USER, + UNKNOWN } @@ -79,6 +88,8 @@ public interface Visitor { T visitUser(); + T visitAnonymousUser(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceApp.java new file mode 100644 index 000000000..08133903a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceApp.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; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionCrossAppAccessResourceApp.Builder.class) +public final class ConnectionCrossAppAccessResourceApp { + private final ConnectionCrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private ConnectionCrossAppAccessResourceApp( + ConnectionCrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public ConnectionCrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionCrossAppAccessResourceApp + && equalTo((ConnectionCrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionCrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull ConnectionCrossAppAccessResourceAppStatusEnum status); + + Builder from(ConnectionCrossAppAccessResourceApp other); + } + + public interface _FinalStage { + ConnectionCrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private ConnectionCrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ConnectionCrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull ConnectionCrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public ConnectionCrossAppAccessResourceApp build() { + return new ConnectionCrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceAppStatusEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceAppStatusEnum.java new file mode 100644 index 000000000..b7adf3dc6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceAppStatusEnum.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 ConnectionCrossAppAccessResourceAppStatusEnum { + public static final ConnectionCrossAppAccessResourceAppStatusEnum ENABLED = + new ConnectionCrossAppAccessResourceAppStatusEnum(Value.ENABLED, "enabled"); + + public static final ConnectionCrossAppAccessResourceAppStatusEnum DISABLED = + new ConnectionCrossAppAccessResourceAppStatusEnum(Value.DISABLED, "disabled"); + + private final Value value; + + private final String string; + + ConnectionCrossAppAccessResourceAppStatusEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof ConnectionCrossAppAccessResourceAppStatusEnum + && this.string.equals(((ConnectionCrossAppAccessResourceAppStatusEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ENABLED: + return visitor.visitEnabled(); + case DISABLED: + return visitor.visitDisabled(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionCrossAppAccessResourceAppStatusEnum valueOf(String value) { + switch (value) { + case "enabled": + return ENABLED; + case "disabled": + return DISABLED; + default: + return new ConnectionCrossAppAccessResourceAppStatusEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + DISABLED, + + ENABLED, + + UNKNOWN + } + + public interface Visitor { + T visitDisabled(); + + T visitEnabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java index 7879f24a2..667bb23ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java @@ -46,6 +46,8 @@ public final class ConnectionForList { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private ConnectionForList( @@ -61,6 +63,7 @@ private ConnectionForList( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -74,6 +77,7 @@ private ConnectionForList( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -158,6 +162,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -181,7 +190,8 @@ private boolean equalTo(ConnectionForList other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -198,7 +208,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -236,6 +247,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -254,6 +267,7 @@ public Builder from(ConnectionForList other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -410,6 +424,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public ConnectionForList build() { return new ConnectionForList( name, @@ -424,6 +449,7 @@ public ConnectionForList build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java index 040dc79d6..4fe75d338 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.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 = ConnectionResponseContentOidc.Builder.class) @@ -45,6 +47,8 @@ public final class ConnectionResponseContentOidc implements IConnectionResponseC private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional options; private final Optional showAsButton; @@ -63,6 +67,7 @@ private ConnectionResponseContentOidc( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Optional options, Optional showAsButton, Map additionalProperties) { @@ -77,6 +82,7 @@ private ConnectionResponseContentOidc( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.options = options; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; @@ -147,6 +153,15 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @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; @@ -157,6 +172,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; @@ -180,6 +201,7 @@ private boolean equalTo(ConnectionResponseContentOidc other) { && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && options.equals(other.options) && showAsButton.equals(other.showAsButton); } @@ -198,6 +220,7 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp, this.options, this.showAsButton); } @@ -267,6 +290,16 @@ public interface _FinalStage { _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp); + _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(ConnectionOptionsOidc options); @@ -288,6 +321,9 @@ public static final class Builder implements IdStage, NameStage, StrategyStage, private Optional options = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional crossAppAccessRequestingApp = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -322,6 +358,7 @@ public Builder from(ConnectionResponseContentOidc other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); options(other.getOptions()); showAsButton(other.getShowAsButton()); return this; @@ -374,6 +411,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 crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp) { this.crossAppAccessRequestingApp = Optional.ofNullable(crossAppAccessRequestingApp); @@ -500,6 +575,7 @@ public ConnectionResponseContentOidc build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, options, showAsButton, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java index 6b67cf5e5..15a1c4536 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.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) @@ -27,6 +29,8 @@ public final class CreateBrandingThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private CreateBrandingThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private CreateBrandingThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -112,6 +123,7 @@ private boolean equalTo(CreateBrandingThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -124,6 +136,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -180,6 +193,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -206,6 +223,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,6 +236,7 @@ public Builder from(CreateBrandingThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -280,10 +300,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public CreateBrandingThemeResponseContent build() { return new CreateBrandingThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + additionalProperties); } @java.lang.Override 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 98f40f197..ccc847ab9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -125,6 +125,8 @@ public final class CreateClientRequestContent { private final Optional resourceServerIdentifier; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -188,6 +190,7 @@ private CreateClientRequestContent( OptionalNullable parRequestExpiry, Optional tokenQuota, Optional resourceServerIdentifier, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional expressConfiguration, @@ -244,6 +247,7 @@ private CreateClientRequestContent( this.parRequestExpiry = parRequestExpiry; this.tokenQuota = tokenQuota; this.resourceServerIdentifier = resourceServerIdentifier; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.expressConfiguration = expressConfiguration; @@ -615,6 +619,11 @@ public Optional getResourceServerIdentifier() { return resourceServerIdentifier; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -739,6 +748,7 @@ private boolean equalTo(CreateClientRequestContent other) { && parRequestExpiry.equals(other.parRequestExpiry) && tokenQuota.equals(other.tokenQuota) && resourceServerIdentifier.equals(other.resourceServerIdentifier) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && expressConfiguration.equals(other.expressConfiguration) @@ -799,6 +809,7 @@ public int hashCode() { this.parRequestExpiry, this.tokenQuota, this.resourceServerIdentifier, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.expressConfiguration, @@ -1145,6 +1156,12 @@ _FinalStage skipNonVerifiableCallbackUriConfirmationPrompt( _FinalStage resourceServerIdentifier(String resourceServerIdentifier); + _FinalStage identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant); + + _FinalStage identityAssertionAuthorizationGrant( + CreateIdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant); + _FinalStage thirdPartySecurityMode(Optional thirdPartySecurityMode); _FinalStage thirdPartySecurityMode(ClientThirdPartySecurityModeEnum thirdPartySecurityMode); @@ -1184,6 +1201,9 @@ public static final class Builder implements NameStage, _FinalStage { private Optional thirdPartySecurityMode = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = + Optional.empty(); + private Optional resourceServerIdentifier = Optional.empty(); private Optional tokenQuota = Optional.empty(); @@ -1339,6 +1359,7 @@ public Builder from(CreateClientRequestContent other) { parRequestExpiry(other.getParRequestExpiry()); tokenQuota(other.getTokenQuota()); resourceServerIdentifier(other.getResourceServerIdentifier()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); expressConfiguration(other.getExpressConfiguration()); @@ -1427,6 +1448,21 @@ public _FinalStage thirdPartySecurityMode(Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + /** *

The identifier of the resource server that this client is linked to.

* @return Reference to {@code this} so that method calls can be chained together. @@ -2474,6 +2510,7 @@ public CreateClientRequestContent build() { parRequestExpiry, tokenQuota, resourceServerIdentifier, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, expressConfiguration, 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 7f909743e..12e65eb1b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java @@ -134,6 +134,8 @@ public final class CreateClientResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private CreateClientResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private CreateClientResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(CreateClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(CreateClientResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public CreateClientResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java index b841315a3..061777d72 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java @@ -47,6 +47,8 @@ public final class CreateConnectionRequestContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private CreateConnectionRequestContent( @@ -62,6 +64,7 @@ private CreateConnectionRequestContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -75,6 +78,7 @@ private CreateConnectionRequestContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -156,6 +160,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -179,7 +188,8 @@ private boolean equalTo(CreateConnectionRequestContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -196,7 +206,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -282,6 +293,10 @@ public interface _FinalStage { _FinalStage crossAppAccessRequestingApp(Optional crossAppAccessRequestingApp); _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp); + + _FinalStage crossAppAccessResourceApp(Optional crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(CreateCrossAppAccessResourceApp crossAppAccessResourceApp); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -290,6 +305,8 @@ public static final class Builder implements NameStage, StrategyStage, _FinalSta private ConnectionIdentityProviderEnum strategy; + private Optional crossAppAccessResourceApp = Optional.empty(); + private Optional crossAppAccessRequestingApp = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -329,6 +346,7 @@ public Builder from(CreateConnectionRequestContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -350,6 +368,20 @@ public _FinalStage strategy(@NotNull ConnectionIdentityProviderEnum strategy) { return this; } + @java.lang.Override + public _FinalStage crossAppAccessResourceApp(CreateCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public _FinalStage crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + @java.lang.Override public _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp) { this.crossAppAccessRequestingApp = Optional.ofNullable(crossAppAccessRequestingApp); @@ -531,6 +563,7 @@ public CreateConnectionRequestContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java index f9df64c69..e061026af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.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 = CreateConnectionRequestContentOidc.Builder.class) @@ -41,6 +43,8 @@ public final class CreateConnectionRequestContentOidc implements ICreateConnecti private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional options; private final Optional showAsButton; @@ -57,6 +61,7 @@ private CreateConnectionRequestContentOidc( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Optional options, Optional showAsButton, Map additionalProperties) { @@ -69,6 +74,7 @@ private CreateConnectionRequestContentOidc( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.options = options; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; @@ -127,6 +133,15 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @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; @@ -137,6 +152,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; @@ -159,6 +180,7 @@ private boolean equalTo(CreateConnectionRequestContentOidc other) { && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && options.equals(other.options) && showAsButton.equals(other.showAsButton); } @@ -175,6 +197,7 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp, this.options, this.showAsButton); } @@ -236,6 +259,16 @@ public interface _FinalStage { _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp); + _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(ConnectionOptionsOidc options); @@ -255,6 +288,9 @@ public static final class Builder implements NameStage, StrategyStage, _FinalSta private Optional options = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional crossAppAccessRequestingApp = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -285,6 +321,7 @@ public Builder from(CreateConnectionRequestContentOidc other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); options(other.getOptions()); showAsButton(other.getShowAsButton()); return this; @@ -330,6 +367,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 crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp) { this.crossAppAccessRequestingApp = Optional.ofNullable(crossAppAccessRequestingApp); @@ -441,6 +516,7 @@ public CreateConnectionRequestContentOidc build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, options, showAsButton, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java index 93142c143..e92f8f2e6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java @@ -48,6 +48,8 @@ public final class CreateConnectionResponseContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private CreateConnectionResponseContent( @@ -64,6 +66,7 @@ private CreateConnectionResponseContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -78,6 +81,7 @@ private CreateConnectionResponseContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -170,6 +174,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -194,7 +203,8 @@ private boolean equalTo(CreateConnectionResponseContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -212,7 +222,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -252,6 +263,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -271,6 +284,7 @@ public Builder from(CreateConnectionResponseContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -441,6 +455,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public CreateConnectionResponseContent build() { return new CreateConnectionResponseContent( name, @@ -456,6 +481,7 @@ public CreateConnectionResponseContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/CreateCrossAppAccessResourceApp.java new file mode 100644 index 000000000..60cf3acc8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCrossAppAccessResourceApp.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 = CreateCrossAppAccessResourceApp.Builder.class) +public final class CreateCrossAppAccessResourceApp { + private final CrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private CreateCrossAppAccessResourceApp( + CrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public CrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreateCrossAppAccessResourceApp && equalTo((CreateCrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CreateCrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status); + + Builder from(CreateCrossAppAccessResourceApp other); + } + + public interface _FinalStage { + CreateCrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private CrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CreateCrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public CreateCrossAppAccessResourceApp build() { + return new CreateCrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateIdentityAssertionAuthorizationGrant.java b/src/main/java/com/auth0/client/mgmt/types/CreateIdentityAssertionAuthorizationGrant.java new file mode 100644 index 000000000..6d815eef9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CreateIdentityAssertionAuthorizationGrant.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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CreateIdentityAssertionAuthorizationGrant.Builder.class) +public final class CreateIdentityAssertionAuthorizationGrant { + private final boolean active; + + private final Map additionalProperties; + + private CreateIdentityAssertionAuthorizationGrant(boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return If set to true, the client can exchange ID-JAGs for access tokens. + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreateIdentityAssertionAuthorizationGrant + && equalTo((CreateIdentityAssertionAuthorizationGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CreateIdentityAssertionAuthorizationGrant 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 { + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ */ + _FinalStage active(boolean active); + + Builder from(CreateIdentityAssertionAuthorizationGrant other); + } + + public interface _FinalStage { + CreateIdentityAssertionAuthorizationGrant 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(CreateIdentityAssertionAuthorizationGrant other) { + active(other.getActive()); + return this; + } + + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ * @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 CreateIdentityAssertionAuthorizationGrant build() { + return new CreateIdentityAssertionAuthorizationGrant(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/CrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceApp.java new file mode 100644 index 000000000..caa3160c4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceApp.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 = CrossAppAccessResourceApp.Builder.class) +public final class CrossAppAccessResourceApp { + private final CrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private CrossAppAccessResourceApp( + CrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public CrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CrossAppAccessResourceApp && equalTo((CrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status); + + Builder from(CrossAppAccessResourceApp other); + } + + public interface _FinalStage { + CrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private CrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public CrossAppAccessResourceApp build() { + return new CrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceAppStatusEnum.java b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceAppStatusEnum.java new file mode 100644 index 000000000..f7caaf763 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceAppStatusEnum.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 CrossAppAccessResourceAppStatusEnum { + public static final CrossAppAccessResourceAppStatusEnum ENABLED = + new CrossAppAccessResourceAppStatusEnum(Value.ENABLED, "enabled"); + + public static final CrossAppAccessResourceAppStatusEnum DISABLED = + new CrossAppAccessResourceAppStatusEnum(Value.DISABLED, "disabled"); + + private final Value value; + + private final String string; + + CrossAppAccessResourceAppStatusEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof CrossAppAccessResourceAppStatusEnum + && this.string.equals(((CrossAppAccessResourceAppStatusEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ENABLED: + return visitor.visitEnabled(); + case DISABLED: + return visitor.visitDisabled(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static CrossAppAccessResourceAppStatusEnum valueOf(String value) { + switch (value) { + case "enabled": + return ENABLED; + case "disabled": + return DISABLED; + default: + return new CrossAppAccessResourceAppStatusEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ENABLED, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitEnabled(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java index 26ba41683..d9fbae0de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.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) @@ -27,6 +29,8 @@ public final class GetBrandingDefaultThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private GetBrandingDefaultThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private GetBrandingDefaultThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -112,6 +123,7 @@ private boolean equalTo(GetBrandingDefaultThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -124,6 +136,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -180,6 +193,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -206,6 +223,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,6 +236,7 @@ public Builder from(GetBrandingDefaultThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -280,10 +300,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public GetBrandingDefaultThemeResponseContent build() { return new GetBrandingDefaultThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java index 3a5eee56b..7c5086f09 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.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) @@ -27,6 +29,8 @@ public final class GetBrandingThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private GetBrandingThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private GetBrandingThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -111,6 +122,7 @@ private boolean equalTo(GetBrandingThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -123,6 +135,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -179,6 +192,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -205,6 +222,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -216,6 +235,7 @@ public Builder from(GetBrandingThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -279,10 +299,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public GetBrandingThemeResponseContent build() { return new GetBrandingThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + 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 33b4da237..2393fa70a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java @@ -134,6 +134,8 @@ public final class GetClientResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private GetClientResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private GetClientResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(GetClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(GetClientResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public GetClientResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java index b6f356949..de53c1438 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java @@ -48,6 +48,8 @@ public final class GetConnectionResponseContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private GetConnectionResponseContent( @@ -64,6 +66,7 @@ private GetConnectionResponseContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -78,6 +81,7 @@ private GetConnectionResponseContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -170,6 +174,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -194,7 +203,8 @@ private boolean equalTo(GetConnectionResponseContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -212,7 +222,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -252,6 +263,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -271,6 +284,7 @@ public Builder from(GetConnectionResponseContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -441,6 +455,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public GetConnectionResponseContent build() { return new GetConnectionResponseContent( name, @@ -456,6 +481,7 @@ public GetConnectionResponseContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java index 237791f18..8acf25afa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java @@ -50,6 +50,8 @@ public final class GetSessionResponseContent { private final OptionalNullable> sessionMetadata; + private final Optional actor; + private final Map additionalProperties; private GetSessionResponseContent( @@ -66,6 +68,7 @@ private GetSessionResponseContent( Optional authentication, Optional cookie, OptionalNullable> sessionMetadata, + Optional actor, Map additionalProperties) { this.id = id; this.userId = userId; @@ -80,6 +83,7 @@ private GetSessionResponseContent( this.authentication = authentication; this.cookie = cookie; this.sessionMetadata = sessionMetadata; + this.actor = actor; this.additionalProperties = additionalProperties; } @@ -161,6 +165,11 @@ public OptionalNullable> getSessionMetadata() { return sessionMetadata; } + @JsonProperty("actor") + public Optional getActor() { + return actor; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_metadata") private OptionalNullable> _getSessionMetadata() { @@ -191,7 +200,8 @@ private boolean equalTo(GetSessionResponseContent other) { && clients.equals(other.clients) && authentication.equals(other.authentication) && cookie.equals(other.cookie) - && sessionMetadata.equals(other.sessionMetadata); + && sessionMetadata.equals(other.sessionMetadata) + && actor.equals(other.actor); } @java.lang.Override @@ -209,7 +219,8 @@ public int hashCode() { this.clients, this.authentication, this.cookie, - this.sessionMetadata); + this.sessionMetadata, + this.actor); } @java.lang.Override @@ -249,6 +260,8 @@ public static final class Builder { private OptionalNullable> sessionMetadata = OptionalNullable.absent(); + private Optional actor = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -268,6 +281,7 @@ public Builder from(GetSessionResponseContent other) { authentication(other.getAuthentication()); cookie(other.getCookie()); sessionMetadata(other.getSessionMetadata()); + actor(other.getActor()); return this; } @@ -443,6 +457,17 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable actor) { + this.actor = actor; + return this; + } + + public Builder actor(SessionActorMetadata actor) { + this.actor = Optional.ofNullable(actor); + return this; + } + public GetSessionResponseContent build() { return new GetSessionResponseContent( id, @@ -458,6 +483,7 @@ public GetSessionResponseContent build() { authentication, cookie, sessionMetadata, + actor, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/IdentityAssertionAuthorizationGrant.java b/src/main/java/com/auth0/client/mgmt/types/IdentityAssertionAuthorizationGrant.java new file mode 100644 index 000000000..08ab976d7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/IdentityAssertionAuthorizationGrant.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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = IdentityAssertionAuthorizationGrant.Builder.class) +public final class IdentityAssertionAuthorizationGrant { + private final boolean active; + + private final Map additionalProperties; + + private IdentityAssertionAuthorizationGrant(boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return If set to true, the client can exchange ID-JAGs for access tokens. + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof IdentityAssertionAuthorizationGrant + && equalTo((IdentityAssertionAuthorizationGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(IdentityAssertionAuthorizationGrant 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 { + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ */ + _FinalStage active(boolean active); + + Builder from(IdentityAssertionAuthorizationGrant other); + } + + public interface _FinalStage { + IdentityAssertionAuthorizationGrant 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(IdentityAssertionAuthorizationGrant other) { + active(other.getActive()); + return this; + } + + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ * @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 IdentityAssertionAuthorizationGrant build() { + return new IdentityAssertionAuthorizationGrant(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/ListClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java index 044877b88..426bd2d51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java @@ -167,7 +167,7 @@ public OptionalNullable getAppType() { } /** - * @return Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. + * @return Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("external_client_id") @@ -612,7 +612,7 @@ public Builder appType(com.auth0.client.mgmt.core.Nullable appType) { } /** - *

Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.

+ *

Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.

*/ @JsonSetter(value = "external_client_id", nulls = Nulls.SKIP) public Builder externalClientId(@Nullable OptionalNullable externalClientId) { 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 d13d35855..dfa7d2420 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java @@ -134,6 +134,8 @@ public final class RotateClientSecretResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private RotateClientSecretResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private RotateClientSecretResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(RotateClientSecretResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(RotateClientSecretResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public RotateClientSecretResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionActorClaimValue.java b/src/main/java/com/auth0/client/mgmt/types/SessionActorClaimValue.java new file mode 100644 index 000000000..99859a915 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/SessionActorClaimValue.java @@ -0,0 +1,105 @@ +/** + * This file was auto-generated 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 = SessionActorClaimValue.Deserializer.class) +public final class SessionActorClaimValue { + private final Object value; + + private final int type; + + private SessionActorClaimValue(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((boolean) this.value); + } else if (this.type == 2) { + return visitor.visit((double) 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 SessionActorClaimValue && equalTo((SessionActorClaimValue) other); + } + + private boolean equalTo(SessionActorClaimValue 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 SessionActorClaimValue of(String value) { + return new SessionActorClaimValue(value, 0); + } + + public static SessionActorClaimValue of(boolean value) { + return new SessionActorClaimValue(value, 1); + } + + public static SessionActorClaimValue of(double value) { + return new SessionActorClaimValue(value, 2); + } + + public interface Visitor { + T visit(String value); + + T visit(boolean value); + + T visit(double value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(SessionActorClaimValue.class); + } + + @java.lang.Override + public SessionActorClaimValue deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Boolean) { + return of((Boolean) value); + } + if (value instanceof Double) { + return of((Double) 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/SessionActorMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionActorMetadata.java new file mode 100644 index 000000000..dea0963ca --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/SessionActorMetadata.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 = SessionActorMetadata.Builder.class) +public final class SessionActorMetadata { + private final String sub; + + private final Map additionalProperties; + + private SessionActorMetadata(String sub, Map additionalProperties) { + this.sub = sub; + this.additionalProperties = additionalProperties; + } + + /** + * @return Subject identifier of the actor + */ + @JsonProperty("sub") + public String getSub() { + return sub; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof SessionActorMetadata && equalTo((SessionActorMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(SessionActorMetadata other) { + return sub.equals(other.sub); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.sub); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static SubStage builder() { + return new Builder(); + } + + public interface SubStage { + /** + *

Subject identifier of the actor

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

Subject identifier of the actor

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("sub") + public _FinalStage sub(@NotNull String sub) { + this.sub = Objects.requireNonNull(sub, "sub must not be null"); + return this; + } + + @java.lang.Override + public SessionActorMetadata build() { + return new SessionActorMetadata(sub, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java index 49a66ea10..40fdb414a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java @@ -50,6 +50,8 @@ public final class SessionResponseContent { private final OptionalNullable> sessionMetadata; + private final Optional actor; + private final Map additionalProperties; private SessionResponseContent( @@ -66,6 +68,7 @@ private SessionResponseContent( Optional authentication, Optional cookie, OptionalNullable> sessionMetadata, + Optional actor, Map additionalProperties) { this.id = id; this.userId = userId; @@ -80,6 +83,7 @@ private SessionResponseContent( this.authentication = authentication; this.cookie = cookie; this.sessionMetadata = sessionMetadata; + this.actor = actor; this.additionalProperties = additionalProperties; } @@ -161,6 +165,11 @@ public OptionalNullable> getSessionMetadata() { return sessionMetadata; } + @JsonProperty("actor") + public Optional getActor() { + return actor; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_metadata") private OptionalNullable> _getSessionMetadata() { @@ -191,7 +200,8 @@ private boolean equalTo(SessionResponseContent other) { && clients.equals(other.clients) && authentication.equals(other.authentication) && cookie.equals(other.cookie) - && sessionMetadata.equals(other.sessionMetadata); + && sessionMetadata.equals(other.sessionMetadata) + && actor.equals(other.actor); } @java.lang.Override @@ -209,7 +219,8 @@ public int hashCode() { this.clients, this.authentication, this.cookie, - this.sessionMetadata); + this.sessionMetadata, + this.actor); } @java.lang.Override @@ -249,6 +260,8 @@ public static final class Builder { private OptionalNullable> sessionMetadata = OptionalNullable.absent(); + private Optional actor = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -268,6 +281,7 @@ public Builder from(SessionResponseContent other) { authentication(other.getAuthentication()); cookie(other.getCookie()); sessionMetadata(other.getSessionMetadata()); + actor(other.getActor()); return this; } @@ -443,6 +457,17 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable actor) { + this.actor = actor; + return this; + } + + public Builder actor(SessionActorMetadata actor) { + this.actor = Optional.ofNullable(actor); + return this; + } + public SessionResponseContent build() { return new SessionResponseContent( id, @@ -458,6 +483,7 @@ public SessionResponseContent build() { authentication, cookie, sessionMetadata, + actor, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreCustomTokenExchangeStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreCustomTokenExchangeStage.java new file mode 100644 index 000000000..e9cd02c8b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreCustomTokenExchangeStage.java @@ -0,0 +1,141 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.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 = SuspiciousIpThrottlingPreCustomTokenExchangeStage.Builder.class) +public final class SuspiciousIpThrottlingPreCustomTokenExchangeStage { + private final Optional maxAttempts; + + private final Optional rate; + + private final Map additionalProperties; + + private SuspiciousIpThrottlingPreCustomTokenExchangeStage( + Optional maxAttempts, Optional rate, Map additionalProperties) { + this.maxAttempts = maxAttempts; + this.rate = rate; + this.additionalProperties = additionalProperties; + } + + /** + * @return Total number of attempts allowed. + */ + @JsonProperty("max_attempts") + public Optional getMaxAttempts() { + return maxAttempts; + } + + /** + * @return Interval of time, given in milliseconds, at which new attempts are granted. + */ + @JsonProperty("rate") + public Optional getRate() { + return rate; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof SuspiciousIpThrottlingPreCustomTokenExchangeStage + && equalTo((SuspiciousIpThrottlingPreCustomTokenExchangeStage) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(SuspiciousIpThrottlingPreCustomTokenExchangeStage other) { + return maxAttempts.equals(other.maxAttempts) && rate.equals(other.rate); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.maxAttempts, this.rate); + } + + @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 maxAttempts = Optional.empty(); + + private Optional rate = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(SuspiciousIpThrottlingPreCustomTokenExchangeStage other) { + maxAttempts(other.getMaxAttempts()); + rate(other.getRate()); + return this; + } + + /** + *

Total number of attempts allowed.

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

Interval of time, given in milliseconds, at which new attempts are granted.

+ */ + @JsonSetter(value = "rate", nulls = Nulls.SKIP) + public Builder rate(Optional rate) { + this.rate = rate; + return this; + } + + public Builder rate(Integer rate) { + this.rate = Optional.ofNullable(rate); + return this; + } + + public SuspiciousIpThrottlingPreCustomTokenExchangeStage build() { + return new SuspiciousIpThrottlingPreCustomTokenExchangeStage(maxAttempts, rate, 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/SuspiciousIpThrottlingStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java index 8a22c9676..0c8ed6195 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java @@ -24,14 +24,18 @@ public final class SuspiciousIpThrottlingStage { private final Optional preUserRegistration; + private final Optional preCustomTokenExchange; + private final Map additionalProperties; private SuspiciousIpThrottlingStage( Optional preLogin, Optional preUserRegistration, + Optional preCustomTokenExchange, Map additionalProperties) { this.preLogin = preLogin; this.preUserRegistration = preUserRegistration; + this.preCustomTokenExchange = preCustomTokenExchange; this.additionalProperties = additionalProperties; } @@ -45,6 +49,11 @@ public Optional getPreUserRegist return preUserRegistration; } + @JsonProperty("pre-custom-token-exchange") + public Optional getPreCustomTokenExchange() { + return preCustomTokenExchange; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -57,12 +66,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(SuspiciousIpThrottlingStage other) { - return preLogin.equals(other.preLogin) && preUserRegistration.equals(other.preUserRegistration); + return preLogin.equals(other.preLogin) + && preUserRegistration.equals(other.preUserRegistration) + && preCustomTokenExchange.equals(other.preCustomTokenExchange); } @java.lang.Override public int hashCode() { - return Objects.hash(this.preLogin, this.preUserRegistration); + return Objects.hash(this.preLogin, this.preUserRegistration, this.preCustomTokenExchange); } @java.lang.Override @@ -80,6 +91,8 @@ public static final class Builder { private Optional preUserRegistration = Optional.empty(); + private Optional preCustomTokenExchange = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -88,6 +101,7 @@ private Builder() {} public Builder from(SuspiciousIpThrottlingStage other) { preLogin(other.getPreLogin()); preUserRegistration(other.getPreUserRegistration()); + preCustomTokenExchange(other.getPreCustomTokenExchange()); return this; } @@ -114,8 +128,22 @@ public Builder preUserRegistration(SuspiciousIpThrottlingPreUserRegistrationStag return this; } + @JsonSetter(value = "pre-custom-token-exchange", nulls = Nulls.SKIP) + public Builder preCustomTokenExchange( + Optional preCustomTokenExchange) { + this.preCustomTokenExchange = preCustomTokenExchange; + return this; + } + + public Builder preCustomTokenExchange( + SuspiciousIpThrottlingPreCustomTokenExchangeStage preCustomTokenExchange) { + this.preCustomTokenExchange = Optional.ofNullable(preCustomTokenExchange); + return this; + } + public SuspiciousIpThrottlingStage build() { - return new SuspiciousIpThrottlingStage(preLogin, preUserRegistration, additionalProperties); + return new SuspiciousIpThrottlingStage( + preLogin, preUserRegistration, preCustomTokenExchange, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ThirdPartyClientAccessConfig.java b/src/main/java/com/auth0/client/mgmt/types/ThirdPartyClientAccessConfig.java new file mode 100644 index 000000000..895d0d70f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ThirdPartyClientAccessConfig.java @@ -0,0 +1,127 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.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 = ThirdPartyClientAccessConfig.Builder.class) +public final class ThirdPartyClientAccessConfig { + private final boolean allowConfiguration; + + private final Map additionalProperties; + + private ThirdPartyClientAccessConfig(boolean allowConfiguration, Map additionalProperties) { + this.allowConfiguration = allowConfiguration; + this.additionalProperties = additionalProperties; + } + + /** + * @return Whether third-party applications can configure the connection as a domain-level connection during the Self-Service Enterprise Configuration flow. + */ + @JsonProperty("allow_configuration") + public boolean getAllowConfiguration() { + return allowConfiguration; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ThirdPartyClientAccessConfig && equalTo((ThirdPartyClientAccessConfig) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ThirdPartyClientAccessConfig other) { + return allowConfiguration == other.allowConfiguration; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.allowConfiguration); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AllowConfigurationStage builder() { + return new Builder(); + } + + public interface AllowConfigurationStage { + /** + *

Whether third-party applications can configure the connection as a domain-level connection during the Self-Service Enterprise Configuration flow.

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

Whether third-party applications can configure the connection as a domain-level connection during the Self-Service Enterprise Configuration flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("allow_configuration") + public _FinalStage allowConfiguration(boolean allowConfiguration) { + this.allowConfiguration = allowConfiguration; + return this; + } + + @java.lang.Override + public ThirdPartyClientAccessConfig build() { + return new ThirdPartyClientAccessConfig(allowConfiguration, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java index 40ef670c5..bddfd226a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.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) @@ -27,6 +29,8 @@ public final class UpdateBrandingThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private UpdateBrandingThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private UpdateBrandingThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -112,6 +123,7 @@ private boolean equalTo(UpdateBrandingThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -124,6 +136,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -180,6 +193,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -206,6 +223,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,6 +236,7 @@ public Builder from(UpdateBrandingThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -280,10 +300,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public UpdateBrandingThemeResponseContent build() { return new UpdateBrandingThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + additionalProperties); } @java.lang.Override 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 e61598385..e9e9631ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java @@ -82,6 +82,8 @@ public final class UpdateClientRequestContent { private final OptionalNullable tokenQuota; + private final OptionalNullable identityAssertionAuthorizationGrant; + private final Optional formTemplate; private final Optional addons; @@ -166,6 +168,7 @@ private UpdateClientRequestContent( Optional customLoginPage, Optional customLoginPagePreview, OptionalNullable tokenQuota, + OptionalNullable identityAssertionAuthorizationGrant, Optional formTemplate, Optional addons, Optional> clientMetadata, @@ -222,6 +225,7 @@ private UpdateClientRequestContent( this.customLoginPage = customLoginPage; this.customLoginPagePreview = customLoginPagePreview; this.tokenQuota = tokenQuota; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.formTemplate = formTemplate; this.addons = addons; this.clientMetadata = clientMetadata; @@ -485,6 +489,15 @@ public OptionalNullable getTokenQuota() { return tokenQuota; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("identity_assertion_authorization_grant") + public OptionalNullable getIdentityAssertionAuthorizationGrant() { + if (identityAssertionAuthorizationGrant == null) { + return OptionalNullable.absent(); + } + return identityAssertionAuthorizationGrant; + } + /** * @return Form template for WS-Federation protocol */ @@ -731,6 +744,12 @@ private OptionalNullable _getTokenQuota() { return tokenQuota; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("identity_assertion_authorization_grant") + private OptionalNullable _getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("native_social_login") private OptionalNullable _getNativeSocialLogin() { @@ -862,6 +881,7 @@ private boolean equalTo(UpdateClientRequestContent other) { && customLoginPage.equals(other.customLoginPage) && customLoginPagePreview.equals(other.customLoginPagePreview) && tokenQuota.equals(other.tokenQuota) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && formTemplate.equals(other.formTemplate) && addons.equals(other.addons) && clientMetadata.equals(other.clientMetadata) @@ -923,6 +943,7 @@ public int hashCode() { this.customLoginPage, this.customLoginPagePreview, this.tokenQuota, + this.identityAssertionAuthorizationGrant, this.formTemplate, this.addons, this.clientMetadata, @@ -1021,6 +1042,9 @@ public static final class Builder { private OptionalNullable tokenQuota = OptionalNullable.absent(); + private OptionalNullable identityAssertionAuthorizationGrant = + OptionalNullable.absent(); + private Optional formTemplate = Optional.empty(); private Optional addons = Optional.empty(); @@ -1113,6 +1137,7 @@ public Builder from(UpdateClientRequestContent other) { customLoginPage(other.getCustomLoginPage()); customLoginPagePreview(other.getCustomLoginPagePreview()); tokenQuota(other.getTokenQuota()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); formTemplate(other.getFormTemplate()); addons(other.getAddons()); clientMetadata(other.getClientMetadata()); @@ -1634,6 +1659,46 @@ public Builder tokenQuota(com.auth0.client.mgmt.core.Nullable return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + @Nullable + OptionalNullable + identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + UpdateIdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = OptionalNullable.of(identityAssertionAuthorizationGrant); + return this; + } + + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + if (identityAssertionAuthorizationGrant.isPresent()) { + this.identityAssertionAuthorizationGrant = + OptionalNullable.of(identityAssertionAuthorizationGrant.get()); + } else { + this.identityAssertionAuthorizationGrant = OptionalNullable.absent(); + } + return this; + } + + public Builder identityAssertionAuthorizationGrant( + com.auth0.client.mgmt.core.Nullable + identityAssertionAuthorizationGrant) { + if (identityAssertionAuthorizationGrant.isNull()) { + this.identityAssertionAuthorizationGrant = OptionalNullable.ofNull(); + } else if (identityAssertionAuthorizationGrant.isEmpty()) { + this.identityAssertionAuthorizationGrant = OptionalNullable.absent(); + } else { + this.identityAssertionAuthorizationGrant = + OptionalNullable.of(identityAssertionAuthorizationGrant.get()); + } + return this; + } + /** *

Form template for WS-Federation protocol

*/ @@ -2316,6 +2381,7 @@ public UpdateClientRequestContent build() { customLoginPage, customLoginPagePreview, tokenQuota, + identityAssertionAuthorizationGrant, formTemplate, addons, clientMetadata, 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 05f995ff6..fbe8087f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java @@ -134,6 +134,8 @@ public final class UpdateClientResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private UpdateClientResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private UpdateClientResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(UpdateClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(UpdateClientResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public UpdateClientResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java index 350b4450e..6853bb493 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java @@ -44,6 +44,8 @@ public final class UpdateConnectionRequestContent { private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Map additionalProperties; private UpdateConnectionRequestContent( @@ -57,6 +59,7 @@ private UpdateConnectionRequestContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Map additionalProperties) { this.displayName = displayName; this.options = options; @@ -68,6 +71,7 @@ private UpdateConnectionRequestContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -144,6 +148,15 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @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; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("options") private OptionalNullable _getOptions() { @@ -156,6 +169,12 @@ private OptionalNullable> _getEnabledClients() { return enabledClients; } + @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; @@ -177,7 +196,8 @@ private boolean equalTo(UpdateConnectionRequestContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -192,7 +212,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -226,6 +247,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = OptionalNullable.absent(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -242,6 +265,7 @@ public Builder from(UpdateConnectionRequestContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -410,6 +434,39 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA 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(UpdateCrossAppAccessResourceApp 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; + } + public UpdateConnectionRequestContent build() { return new UpdateConnectionRequestContent( displayName, @@ -422,6 +479,7 @@ public UpdateConnectionRequestContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java index 05027d0bf..e6551f715 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.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 = UpdateConnectionRequestContentOidc.Builder.class) @@ -38,6 +40,8 @@ public final class UpdateConnectionRequestContentOidc implements IConnectionComm private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional showAsButton; private final Map additionalProperties; @@ -51,6 +55,7 @@ private UpdateConnectionRequestContentOidc( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Optional showAsButton, Map additionalProperties) { this.displayName = displayName; @@ -61,6 +66,7 @@ private UpdateConnectionRequestContentOidc( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -109,11 +115,26 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @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; @@ -135,6 +156,7 @@ private boolean equalTo(UpdateConnectionRequestContentOidc other) { && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && showAsButton.equals(other.showAsButton); } @@ -149,6 +171,7 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp, this.showAsButton); } @@ -179,6 +202,9 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional showAsButton = Optional.empty(); @JsonAnySetter @@ -195,6 +221,7 @@ public Builder from(UpdateConnectionRequestContentOidc other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); showAsButton(other.getShowAsButton()); return this; } @@ -287,6 +314,40 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA 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; @@ -308,6 +369,7 @@ public UpdateConnectionRequestContentOidc build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, showAsButton, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java index bcdd4cdf9..10c1393c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java @@ -48,6 +48,8 @@ public final class UpdateConnectionResponseContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private UpdateConnectionResponseContent( @@ -64,6 +66,7 @@ private UpdateConnectionResponseContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -78,6 +81,7 @@ private UpdateConnectionResponseContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -170,6 +174,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -194,7 +203,8 @@ private boolean equalTo(UpdateConnectionResponseContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -212,7 +222,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -252,6 +263,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -271,6 +284,7 @@ public Builder from(UpdateConnectionResponseContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -441,6 +455,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public UpdateConnectionResponseContent build() { return new UpdateConnectionResponseContent( name, @@ -456,6 +481,7 @@ public UpdateConnectionResponseContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCrossAppAccessResourceApp.java new file mode 100644 index 000000000..21a330786 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCrossAppAccessResourceApp.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 = UpdateCrossAppAccessResourceApp.Builder.class) +public final class UpdateCrossAppAccessResourceApp { + private final CrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private UpdateCrossAppAccessResourceApp( + CrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public CrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateCrossAppAccessResourceApp && equalTo((UpdateCrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateCrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status); + + Builder from(UpdateCrossAppAccessResourceApp other); + } + + public interface _FinalStage { + UpdateCrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private CrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(UpdateCrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public UpdateCrossAppAccessResourceApp build() { + return new UpdateCrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateIdentityAssertionAuthorizationGrant.java b/src/main/java/com/auth0/client/mgmt/types/UpdateIdentityAssertionAuthorizationGrant.java new file mode 100644 index 000000000..254be7f41 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateIdentityAssertionAuthorizationGrant.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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateIdentityAssertionAuthorizationGrant.Builder.class) +public final class UpdateIdentityAssertionAuthorizationGrant { + private final boolean active; + + private final Map additionalProperties; + + private UpdateIdentityAssertionAuthorizationGrant(boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return If set to true, the client can exchange ID-JAGs for access tokens. + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateIdentityAssertionAuthorizationGrant + && equalTo((UpdateIdentityAssertionAuthorizationGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateIdentityAssertionAuthorizationGrant 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 { + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ */ + _FinalStage active(boolean active); + + Builder from(UpdateIdentityAssertionAuthorizationGrant other); + } + + public interface _FinalStage { + UpdateIdentityAssertionAuthorizationGrant 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(UpdateIdentityAssertionAuthorizationGrant other) { + active(other.getActive()); + return this; + } + + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ * @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 UpdateIdentityAssertionAuthorizationGrant build() { + return new UpdateIdentityAssertionAuthorizationGrant(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/UpdateSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java index 2ac2fa6d4..1eb45cdaf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java @@ -50,6 +50,8 @@ public final class UpdateSessionResponseContent { private final OptionalNullable> sessionMetadata; + private final Optional actor; + private final Map additionalProperties; private UpdateSessionResponseContent( @@ -66,6 +68,7 @@ private UpdateSessionResponseContent( Optional authentication, Optional cookie, OptionalNullable> sessionMetadata, + Optional actor, Map additionalProperties) { this.id = id; this.userId = userId; @@ -80,6 +83,7 @@ private UpdateSessionResponseContent( this.authentication = authentication; this.cookie = cookie; this.sessionMetadata = sessionMetadata; + this.actor = actor; this.additionalProperties = additionalProperties; } @@ -161,6 +165,11 @@ public OptionalNullable> getSessionMetadata() { return sessionMetadata; } + @JsonProperty("actor") + public Optional getActor() { + return actor; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_metadata") private OptionalNullable> _getSessionMetadata() { @@ -191,7 +200,8 @@ private boolean equalTo(UpdateSessionResponseContent other) { && clients.equals(other.clients) && authentication.equals(other.authentication) && cookie.equals(other.cookie) - && sessionMetadata.equals(other.sessionMetadata); + && sessionMetadata.equals(other.sessionMetadata) + && actor.equals(other.actor); } @java.lang.Override @@ -209,7 +219,8 @@ public int hashCode() { this.clients, this.authentication, this.cookie, - this.sessionMetadata); + this.sessionMetadata, + this.actor); } @java.lang.Override @@ -249,6 +260,8 @@ public static final class Builder { private OptionalNullable> sessionMetadata = OptionalNullable.absent(); + private Optional actor = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -268,6 +281,7 @@ public Builder from(UpdateSessionResponseContent other) { authentication(other.getAuthentication()); cookie(other.getCookie()); sessionMetadata(other.getSessionMetadata()); + actor(other.getActor()); return this; } @@ -443,6 +457,17 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable actor) { + this.actor = actor; + return this; + } + + public Builder actor(SessionActorMetadata actor) { + this.actor = Optional.ofNullable(actor); + return this; + } + public UpdateSessionResponseContent build() { return new UpdateSessionResponseContent( id, @@ -458,6 +483,7 @@ public UpdateSessionResponseContent build() { authentication, cookie, sessionMetadata, + actor, additionalProperties); } diff --git a/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java b/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java index 7caa8b9a3..5a75a05e3 100644 --- a/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java @@ -40,7 +40,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1}}}")); + "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1},\"pre-custom-token-exchange\":{\"max_attempts\":1,\"rate\":1}}}")); GetSuspiciousIpThrottlingSettingsResponseContent response = client.attackProtection().suspiciousIpThrottling().get(); RecordedRequest request = server.takeRequest(); @@ -67,6 +67,10 @@ public void testGet() throws Exception { + " \"pre-user-registration\": {\n" + " \"max_attempts\": 1,\n" + " \"rate\": 1\n" + + " },\n" + + " \"pre-custom-token-exchange\": {\n" + + " \"max_attempts\": 1,\n" + + " \"rate\": 1\n" + " }\n" + " }\n" + "}"; @@ -107,7 +111,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1}}}")); + "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1},\"pre-custom-token-exchange\":{\"max_attempts\":1,\"rate\":1}}}")); UpdateSuspiciousIpThrottlingSettingsResponseContent response = client.attackProtection() .suspiciousIpThrottling() .update(UpdateSuspiciousIpThrottlingSettingsRequestContent.builder() @@ -165,6 +169,10 @@ else if (actualJson.has("kind")) + " \"pre-user-registration\": {\n" + " \"max_attempts\": 1,\n" + " \"rate\": 1\n" + + " },\n" + + " \"pre-custom-token-exchange\": {\n" + + " \"max_attempts\": 1,\n" + + " \"rate\": 1\n" + " }\n" + " }\n" + "}"; diff --git a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java index 8dcb83090..1c7a502e1 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java @@ -42,7 +42,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true}}],\"next\":\"next\"}")); + "{\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}],\"next\":\"next\"}")); SyncPagingIterable response = client.clients() .connections() .get( diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java index 01a2b4091..95689f6c8 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java @@ -49,7 +49,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"next\":\"next\",\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true}}]}")); + "{\"next\":\"next\",\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}]}")); SyncPagingIterable response = client.connections() .list(ListConnectionsQueryParameters.builder() .from("from") @@ -75,7 +75,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true}}")); + "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}")); CreateConnectionResponseContent response = client.connections() .create(CreateConnectionRequestContent.builder() .name("name") @@ -146,6 +146,9 @@ else if (actualJson.has("kind")) + " },\n" + " \"cross_app_access_requesting_app\": {\n" + " \"active\": true\n" + + " },\n" + + " \"cross_app_access_resource_app\": {\n" + + " \"status\": \"enabled\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); @@ -185,7 +188,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true}}")); + "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}")); GetConnectionResponseContent response = client.connections() .get( "id", @@ -229,6 +232,9 @@ public void testGet() throws Exception { + " },\n" + " \"cross_app_access_requesting_app\": {\n" + " \"active\": true\n" + + " },\n" + + " \"cross_app_access_resource_app\": {\n" + + " \"status\": \"enabled\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); @@ -277,7 +283,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true}}")); + "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}")); UpdateConnectionResponseContent response = client.connections() .update("id", UpdateConnectionRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -345,6 +351,9 @@ else if (actualJson.has("kind")) + " },\n" + " \"cross_app_access_requesting_app\": {\n" + " \"active\": true\n" + + " },\n" + + " \"cross_app_access_resource_app\": {\n" + + " \"status\": \"enabled\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); diff --git a/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java b/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java index d44419d22..0ff883434 100644 --- a/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java @@ -40,7 +40,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"}}")); + "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"},\"actor\":{\"sub\":\"sub\"}}")); GetSessionResponseContent response = client.sessions().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -82,6 +82,9 @@ public void testGet() throws Exception { + " },\n" + " \"session_metadata\": {\n" + " \"key\": \"value\"\n" + + " },\n" + + " \"actor\": {\n" + + " \"sub\": \"sub\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); @@ -130,7 +133,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"}}")); + "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"},\"actor\":{\"sub\":\"sub\"}}")); UpdateSessionResponseContent response = client.sessions() .update("id", UpdateSessionRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -202,6 +205,9 @@ else if (actualJson.has("kind")) + " },\n" + " \"session_metadata\": {\n" + " \"key\": \"value\"\n" + + " },\n" + + " \"actor\": {\n" + + " \"sub\": \"sub\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); diff --git a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java index 97409e065..90ed1bc7f 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java @@ -40,7 +40,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"sessions\":[{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"clients\":[{}],\"session_metadata\":{\"key\":\"value\"}}],\"next\":\"next\"}")); + "{\"sessions\":[{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"clients\":[{}],\"session_metadata\":{\"key\":\"value\"},\"actor\":{\"sub\":\"sub\"}}],\"next\":\"next\"}")); SyncPagingIterable response = client.users() .sessions() .list( diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json index c42b4ed9d..684d7ff8e 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json index c42b4ed9d..684d7ff8e 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json index c42b4ed9d..684d7ff8e 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json index c42b4ed9d..684d7ff8e 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json index c02c30632..69e76cf56 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json index c02c30632..69e76cf56 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testList_response.json b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json index e1320f403..101ff9565 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testList_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json @@ -97,6 +97,9 @@ ], "connection_deletion_behavior": "allow" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json index c02c30632..69e76cf56 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json index c02c30632..69e76cf56 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier",