diff --git a/reference.md b/reference.md index c30035a4..ee872ab1 100644 --- a/reference.md +++ b/reference.md @@ -714,14 +714,6 @@ client.branding().update(
-**identifiers:** `Optional` - -
-
- -
-
- **font:** `Optional`
@@ -1956,16 +1948,14 @@ client.clients().previewCimdMetadata( Idempotent registration for Client ID Metadata Document (CIMD) clients. Uses external_client_id as the unique identifier for upsert operations. -Create: Returns 201 when a new client is created (requires create:clients scope). -Update: Returns 200 when an existing client is updated (requires update:clients scope). +**Create:** Returns 201 when a new client is created (requires `create:clients` scope). +**Update:** Returns 200 when an existing client is updated (requires `update:clients` scope). This endpoint automatically: - +- Fetches and validates the metadata document +- Maps CIMD fields to Auth0 client configuration +- Creates/rotates credentials from the JWKS +- Enforces CIMD security policies (HTTPS-only, no shared secrets)
@@ -9793,7 +9783,7 @@ client.refreshTokens().list(
-Revoke refresh tokens in bulk by ID list, user, user+client, or client. +Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience.
@@ -9843,7 +9833,7 @@ client.refreshTokens().revoke(
-**clientId:** `Optional` — Revoke all refresh tokens for this client. +**clientId:** `Optional` — Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`.
@@ -17428,7 +17418,7 @@ client.branding().themes().update(
-Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. +Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified.
@@ -17489,8 +17479,8 @@ client.branding().phone().providers().list(
-Create a phone provider. -The credentials object requires different properties depending on the phone provider (which is specified using the name property). +Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). +The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property).
@@ -17581,7 +17571,7 @@ client.branding().phone().providers().create(
-Retrieve phone provider details. A list of fields to include or exclude may also be specified. +Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified.
@@ -17689,8 +17679,8 @@ client.branding().phone().providers().delete("id");
-Update a phone provider. -The credentials object requires different properties depending on the phone provider (which is specified using the name property). +Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). +The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property).
@@ -20379,7 +20369,7 @@ client.connections().scimConfiguration().tokens().delete("id", "tokenId");
-Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. +Retrieve details of the [email provider configuration](https://auth0.com/docs/customize/email/smtp-email-providers) in your tenant. A list of fields to include or exclude may also be specified.
@@ -20451,48 +20441,31 @@ client.emails().provider().get(
-Create an email provider. The credentials object -requires different properties depending on the email provider (which is specified using the name property): - -Depending on the type of provider it is possible to specify settings object with different configuration +Create an [email provider](https://auth0.com/docs/email/providers). The `credentials` object +requires different properties depending on the email provider (which is specified using the `name` property): + +- `mandrill` requires `api_key` +- `sendgrid` requires `api_key` +- `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use + the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in + North America. `eu` or `null` are the only valid values for `region`. +- `mailgun` requires `api_key` and `domain`. Optionally, set `region` to + `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or + `null` are the only valid values for `region`. +- `ses` requires `accessKeyId`, `secretAccessKey`, and `region` +- `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and + `smtp_pass` + +Depending on the type of provider it is possible to specify `settings` object with different configuration options, which will be used when sending an email: - + +- `smtp` provider, `settings` may contain `headers` object. + - When using AWS SES SMTP host, you may provide a name of configuration set in + `X-SES-Configuration-Set` header. Value must be a string. + - When using Sparkpost host, you may provide value for + `X-MSYS_API` header. Value must be an object. +- For `ses` provider, `settings` may contain `message` object, where you can provide + a name of configuration set in `configuration_set_name` property. Value must be a string.
@@ -20630,46 +20603,32 @@ client.emails().provider().delete();
-Update an email provider. The credentials object -requires different properties depending on the email provider (which is specified using the name property): - -Depending on the type of provider it is possible to specify settings object with different configuration +Update an [email provider](https://auth0.com/docs/email/providers). The `credentials` object +requires different properties depending on the email provider (which is specified using the `name` property): + +- `mandrill` requires `api_key` +- `sendgrid` requires `api_key` +- `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use + the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in + North America. `eu` or `null` are the only valid values for `region`. +- `mailgun` requires `api_key` and `domain`. Optionally, set `region` to + `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or + `null` are the only valid values for `region`. +- `ses` requires `accessKeyId`, `secretAccessKey`, and `region` +- `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and + `smtp_pass` + +Depending on the type of provider it is possible to specify `settings` object with different configuration options, which will be used when sending an email: - + +- `smtp` provider, `settings` may contain `headers` object. + - When using AWS SES SMTP host, you may provide a name of configuration set in + `X-SES-Configuration-Set` header. Value must be a string. + - When using Sparkpost host, you may provide value for + `X-MSYS_API` header. Value must be an object. + + For `ses` provider, `settings` may contain `message` object, where you can provide + a name of configuration set in `configuration_set_name` property. Value must be a string.
@@ -21600,7 +21559,7 @@ client.groups().members().get(
-Lists the roles assigned to a group. +Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group.
@@ -21681,7 +21640,7 @@ client.groups().roles().list(
-Assign one or more roles to a specified group. +Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group.
@@ -21751,7 +21710,7 @@ client.groups().roles().create(
-Unassign one or more roles from a specified group. +Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group.
@@ -30104,6 +30063,14 @@ client.tenants().settings().update(
+**sessionLifetimeInMinutes:** `Optional` — Number of minutes a session will stay valid. Cannot be specified together with `session_lifetime`. + +
+
+ +
+
+ **idleSessionLifetime:** `Optional` — Number of hours for which a session can be inactive before the user must log in again.
@@ -30112,6 +30079,14 @@ client.tenants().settings().update(
+**idleSessionLifetimeInMinutes:** `Optional` — Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with `idle_session_lifetime`. + +
+
+ +
+
+ **ephemeralSessionLifetime:** `Optional` — Number of hours an ephemeral (non-persistent) session will stay valid.
@@ -30128,6 +30103,22 @@ client.tenants().settings().update(
+**ephemeralSessionLifetimeInMinutes:** `Optional` — Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with `ephemeral_session_lifetime`. + +
+
+ +
+
+ +**idleEphemeralSessionLifetimeInMinutes:** `Optional` — Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with `idle_ephemeral_session_lifetime`. + +
+
+ +
+
+ **sandboxVersion:** `Optional` — Selected sandbox version for the extensibility environment
@@ -30160,6 +30151,14 @@ client.tenants().settings().update(
+**securityHeaders:** `Optional` + +
+
+ +
+
+ **sessionCookie:** `Optional`
@@ -30276,6 +30275,14 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
+**includeSessionMetadataInTenantLogs:** `Optional` — Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). + +
+
+ +
+
+ **dynamicClientRegistrationSecurityMode:** `Optional`
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java index b8c8ddae..2a927520 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java @@ -244,12 +244,12 @@ public CompletableFuture previewCimdMetadata *

Create: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public CompletableFuture registerCimdClient( RegisterCimdClientRequestContent request) { @@ -262,12 +262,12 @@ public CompletableFuture registerCimdClient( *

Create: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public CompletableFuture registerCimdClient( RegisterCimdClientRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java index 2fa9d889..9f004ef4 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java @@ -545,12 +545,12 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { *

Create: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public CompletableFuture> registerCimdClient( RegisterCimdClientRequestContent request) { @@ -563,12 +563,12 @@ public CompletableFutureCreate: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public CompletableFuture> registerCimdClient( RegisterCimdClientRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java index ffab1d5a..3d29af88 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java @@ -704,6 +704,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java index 640a4e39..66cbdf8f 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java @@ -603,6 +603,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 409: + future.completeExceptionally(new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java index db491529..c2cef620 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java @@ -178,28 +178,28 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture> revoke() { return revoke(RevokeRefreshTokensRequestContent.builder().build()); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture> revoke(RequestOptions requestOptions) { return revoke(RevokeRefreshTokensRequestContent.builder().build(), requestOptions); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture> revoke(RevokeRefreshTokensRequestContent request) { return revoke(request, null); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture> revoke( RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java index 93d2424d..dadc0c7d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java @@ -572,6 +572,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 409: + future.completeExceptionally(new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java index 85d9082d..df7d6daf 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java @@ -48,28 +48,28 @@ public CompletableFuture> list( } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture revoke() { return this.rawClient.revoke().thenApply(response -> response.body()); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture revoke(RequestOptions requestOptions) { return this.rawClient.revoke(requestOptions).thenApply(response -> response.body()); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture revoke(RevokeRefreshTokensRequestContent request) { return this.rawClient.revoke(request).thenApply(response -> response.body()); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public CompletableFuture revoke(RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) { return this.rawClient.revoke(request, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/ClientsClient.java b/src/main/java/com/auth0/client/mgmt/ClientsClient.java index ece651a6..2e5dc681 100644 --- a/src/main/java/com/auth0/client/mgmt/ClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ClientsClient.java @@ -240,12 +240,12 @@ public PreviewCimdMetadataResponseContent previewCimdMetadata( *

Create: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public RegisterCimdClientResponseContent registerCimdClient(RegisterCimdClientRequestContent request) { return this.rawClient.registerCimdClient(request).body(); @@ -257,12 +257,12 @@ public RegisterCimdClientResponseContent registerCimdClient(RegisterCimdClientRe *

Create: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public RegisterCimdClientResponseContent registerCimdClient( RegisterCimdClientRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java index 4d765088..454a7ee6 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java @@ -461,12 +461,12 @@ public ManagementApiHttpResponse previewCimd *

Create: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public ManagementApiHttpResponse registerCimdClient( RegisterCimdClientRequestContent request) { @@ -479,12 +479,12 @@ public ManagementApiHttpResponse registerCimd *

Create: Returns 201 when a new client is created (requires create:clients scope). * Update: Returns 200 when an existing client is updated (requires update:clients scope).

*

This endpoint automatically:

- *

    - *
  • Fetches and validates the metadata document
  • - *
  • Maps CIMD fields to Auth0 client configuration
  • - *
  • Creates/rotates credentials from the JWKS
  • - *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • - *

+ *
    + *
  • Fetches and validates the metadata document
  • + *
  • Maps CIMD fields to Auth0 client configuration
  • + *
  • Creates/rotates credentials from the JWKS
  • + *
  • Enforces CIMD security policies (HTTPS-only, no shared secrets)
  • + *
*/ public ManagementApiHttpResponse registerCimdClient( RegisterCimdClientRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java index 4f3b2e2e..ccc09694 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java @@ -549,6 +549,9 @@ public ManagementApiHttpResponse update( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java index ba73c878..d2da627b 100644 --- a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java @@ -480,6 +480,9 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 409: + throw new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java index 69028237..d0ce8164 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java @@ -143,28 +143,28 @@ public ManagementApiHttpResponse } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public ManagementApiHttpResponse revoke() { return revoke(RevokeRefreshTokensRequestContent.builder().build()); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public ManagementApiHttpResponse revoke(RequestOptions requestOptions) { return revoke(RevokeRefreshTokensRequestContent.builder().build(), requestOptions); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public ManagementApiHttpResponse revoke(RevokeRefreshTokensRequestContent request) { return revoke(request, null); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public ManagementApiHttpResponse revoke( RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java index cd19cde3..d3cbd646 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java @@ -458,6 +458,9 @@ public ManagementApiHttpResponse update( case 404: throw new NotFoundError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 409: + throw new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java index 933703f0..702dbd0f 100644 --- a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java @@ -46,28 +46,28 @@ public SyncPagingIterable list( } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public void revoke() { this.rawClient.revoke().body(); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public void revoke(RequestOptions requestOptions) { this.rawClient.revoke(requestOptions).body(); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public void revoke(RevokeRefreshTokensRequestContent request) { this.rawClient.revoke(request).body(); } /** - * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. */ public void revoke(RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) { this.rawClient.revoke(request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java index 2e1d44c6..7e3cc9b3 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ListClientGrantOrganizationsPaginatedResponseContent; @@ -133,6 +134,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java index 1647c113..c7a26bd4 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ListClientGrantOrganizationsPaginatedResponseContent; @@ -109,6 +110,9 @@ public ManagementApiHttpResponse> list( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java index df5b672a..3e6a44b9 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.fasterxml.jackson.core.JsonProcessingException; @@ -96,6 +97,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java index 18419dfb..6fb20a74 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.fasterxml.jackson.core.JsonProcessingException; @@ -82,6 +83,9 @@ public ManagementApiHttpResponse deleteByEmail( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java index e4efcf3d..495bccf8 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java @@ -62,46 +62,33 @@ public CompletableFuture get( /** * Create an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public CompletableFuture create(CreateEmailProviderRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); @@ -110,46 +97,33 @@ public CompletableFuture create(CreateEmailP /** * Create an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public CompletableFuture create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -173,44 +147,34 @@ public CompletableFuture delete(RequestOptions requestOptions) { /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); @@ -219,44 +183,34 @@ public CompletableFuture update() { /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public CompletableFuture update(RequestOptions requestOptions) { return this.rawClient.update(requestOptions).thenApply(response -> response.body()); @@ -265,44 +219,34 @@ public CompletableFuture update(RequestOptio /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public CompletableFuture update(UpdateEmailProviderRequestContent request) { return this.rawClient.update(request).thenApply(response -> response.body()); @@ -311,44 +255,34 @@ public CompletableFuture update(UpdateEmailP /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public CompletableFuture update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java index b75b2cea..88c650c8 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java @@ -163,46 +163,33 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Create an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public CompletableFuture> create( CreateEmailProviderRequestContent request) { @@ -212,46 +199,33 @@ public CompletableFutureemail provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public CompletableFuture> create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -433,44 +407,34 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public CompletableFuture> update() { return update(UpdateEmailProviderRequestContent.builder().build()); @@ -479,44 +443,34 @@ public CompletableFutureemail provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public CompletableFuture> update( RequestOptions requestOptions) { @@ -526,44 +480,34 @@ public CompletableFutureemail provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public CompletableFuture> update( UpdateEmailProviderRequestContent request) { @@ -573,44 +517,34 @@ public CompletableFutureemail provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public CompletableFuture> update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/emails/ProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/ProviderClient.java index af043a4e..4b1a5b43 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/ProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/ProviderClient.java @@ -61,46 +61,33 @@ public GetEmailProviderResponseContent get( /** * Create an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public CreateEmailProviderResponseContent create(CreateEmailProviderRequestContent request) { return this.rawClient.create(request).body(); @@ -109,46 +96,33 @@ public CreateEmailProviderResponseContent create(CreateEmailProviderRequestConte /** * Create an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public CreateEmailProviderResponseContent create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -172,44 +146,34 @@ public void delete(RequestOptions requestOptions) { /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public UpdateEmailProviderResponseContent update() { return this.rawClient.update().body(); @@ -218,44 +182,34 @@ public UpdateEmailProviderResponseContent update() { /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public UpdateEmailProviderResponseContent update(RequestOptions requestOptions) { return this.rawClient.update(requestOptions).body(); @@ -264,44 +218,34 @@ public UpdateEmailProviderResponseContent update(RequestOptions requestOptions) /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public UpdateEmailProviderResponseContent update(UpdateEmailProviderRequestContent request) { return this.rawClient.update(request).body(); @@ -310,44 +254,34 @@ public UpdateEmailProviderResponseContent update(UpdateEmailProviderRequestConte /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public UpdateEmailProviderResponseContent update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java index c6154244..bc05ce56 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java @@ -132,46 +132,33 @@ public ManagementApiHttpResponse get( /** * Create an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public ManagementApiHttpResponse create( CreateEmailProviderRequestContent request) { @@ -181,46 +168,33 @@ public ManagementApiHttpResponse create( /** * Create an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • smtp provider, settings may contain headers object. *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - *
      • - *
      • - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + * + *
  • For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.
  • + *
*/ public ManagementApiHttpResponse create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -355,44 +329,34 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public ManagementApiHttpResponse update() { return update(UpdateEmailProviderRequestContent.builder().build()); @@ -401,44 +365,34 @@ public ManagementApiHttpResponse update() { /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public ManagementApiHttpResponse update(RequestOptions requestOptions) { return update(UpdateEmailProviderRequestContent.builder().build(), requestOptions); @@ -447,44 +401,34 @@ public ManagementApiHttpResponse update(Requ /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    + *
      + *
    • + *

      smtp provider, settings may contain headers object.

      *
        - *
      • - * smtp provider, settings may contain headers object. - *
          - *
        • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
        • - *
        • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
        • - *
        - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
      • - *

      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + * + *
*/ public ManagementApiHttpResponse update( UpdateEmailProviderRequestContent request) { @@ -494,44 +438,34 @@ public ManagementApiHttpResponse update( /** * Update an email provider. The credentials object * requires different properties depending on the email provider (which is specified using the name property): - *

    - *
  • mandrill requires api_key
  • - *
  • sendgrid requires api_key
  • - *
  • - * sparkpost requires api_key. Optionally, set region to eu to use - * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in - * North America. eu or null are the only valid values for region. - *
  • - *
  • - * mailgun requires api_key and domain. Optionally, set region to - * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or - * null are the only valid values for region. - *
  • - *
  • ses requires accessKeyId, secretAccessKey, and region
  • - *
  • - * smtp requires smtp_host, smtp_port, smtp_user, and - * smtp_pass - *
  • + *
      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region.
    • + *
    • mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region.
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass
    • *
    - * Depending on the type of provider it is possible to specify settings object with different configuration - * options, which will be used when sending an email: + *

    Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email:

    *
      - *
    • - * smtp provider, settings may contain headers object. - *
        - *
      • - * When using AWS SES SMTP host, you may provide a name of configuration set in - * X-SES-Configuration-Set header. Value must be a string. - *
      • - *
      • - * When using Sparkpost host, you may provide value for - * X-MSYS_API header. Value must be an object. - *
      • - *
      - * for ses provider, settings may contain message object, where you can provide - * a name of configuration set in configuration_set_name property. Value must be a string. - *
    • - *

    + *
  • + *

    smtp provider, settings may contain headers object.

    + *
      + *
    • When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string.
    • + *
    • When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object.
    • + *
    + *

    For ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string.

    + *
  • + *
*/ public ManagementApiHttpResponse update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java index 240ab8f9..7d30c814 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; @@ -149,6 +150,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java index 419e2e32..b5abe311 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java @@ -144,6 +144,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), @@ -337,6 +342,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java index 5c39425f..1473c454 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; @@ -126,6 +127,9 @@ public ManagementApiHttpResponse> get( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java index 382e968a..23185711 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java @@ -122,6 +122,9 @@ public ManagementApiHttpResponse> list( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); @@ -269,6 +272,9 @@ public ManagementApiHttpResponse delete( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java index 0f0b31a1..cd13af1d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.organizations.types.ListOrganizationGroupsRequestParameters; @@ -145,6 +146,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java index bf7f8f11..c53b5247 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.organizations.types.ListOrganizationGroupsRequestParameters; @@ -123,6 +124,9 @@ public ManagementApiHttpResponse> list( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java index b201190d..d701c6cb 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.organizations.groups.types.CreateOrganizationGroupRolesRequestContent; @@ -158,6 +159,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), @@ -257,6 +263,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 409: future.completeExceptionally(new ConflictError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), @@ -361,6 +372,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java index ab505e4c..88e90d2d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.organizations.groups.types.CreateOrganizationGroupRolesRequestContent; @@ -136,6 +137,9 @@ public ManagementApiHttpResponse> list( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); @@ -214,6 +218,9 @@ public ManagementApiHttpResponse create( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 409: throw new ConflictError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); @@ -295,6 +302,9 @@ public ManagementApiHttpResponse delete( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java index 2dc7f34a..d6be7c8b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.organizations.members.types.ListOrganizationMemberEffectiveRolesRequestParameters; @@ -156,6 +157,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java index c945e60f..c76b1fe9 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.organizations.members.types.ListOrganizationMemberEffectiveRolesRequestParameters; @@ -134,6 +135,9 @@ public ManagementApiHttpResponse> list( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java index 3ccfd1fb..e7fc85e1 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java @@ -144,6 +144,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), @@ -337,6 +342,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java index 0cd74dd9..970d20bc 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java @@ -121,6 +121,9 @@ public ManagementApiHttpResponse> get( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); @@ -268,6 +271,9 @@ public ManagementApiHttpResponse delete( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java index 012e5c72..c6c926a6 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java @@ -16,6 +16,7 @@ import com.auth0.client.mgmt.types.TenantSettingsFlags; import com.auth0.client.mgmt.types.TenantSettingsGuardianPage; import com.auth0.client.mgmt.types.TenantSettingsMtls; +import com.auth0.client.mgmt.types.TenantSettingsNullableSecurityHeaders; import com.auth0.client.mgmt.types.TenantSettingsPasswordPage; import com.auth0.client.mgmt.types.TenantSettingsResourceParameterProfile; import com.auth0.client.mgmt.types.TenantSettingsSessions; @@ -66,12 +67,20 @@ public final class UpdateTenantSettingsRequestContent { private final Optional sessionLifetime; + private final Optional sessionLifetimeInMinutes; + private final Optional idleSessionLifetime; + private final Optional idleSessionLifetimeInMinutes; + private final Optional ephemeralSessionLifetime; private final Optional idleEphemeralSessionLifetime; + private final Optional ephemeralSessionLifetimeInMinutes; + + private final Optional idleEphemeralSessionLifetimeInMinutes; + private final Optional sandboxVersion; private final Optional legacySandboxVersion; @@ -80,6 +89,8 @@ public final class UpdateTenantSettingsRequestContent { private final Optional> enabledLocales; + private final OptionalNullable securityHeaders; + private final OptionalNullable sessionCookie; private final OptionalNullable sessions; @@ -108,6 +119,8 @@ public final class UpdateTenantSettingsRequestContent { private final Optional phoneConsolidatedExperience; + private final Optional includeSessionMetadataInTenantLogs; + private final Optional dynamicClientRegistrationSecurityMode; private final OptionalNullable countryCodes; @@ -129,13 +142,18 @@ private UpdateTenantSettingsRequestContent( Optional supportUrl, Optional> allowedLogoutUrls, Optional sessionLifetime, + Optional sessionLifetimeInMinutes, Optional idleSessionLifetime, + Optional idleSessionLifetimeInMinutes, Optional ephemeralSessionLifetime, Optional idleEphemeralSessionLifetime, + Optional ephemeralSessionLifetimeInMinutes, + Optional idleEphemeralSessionLifetimeInMinutes, Optional sandboxVersion, Optional legacySandboxVersion, Optional defaultRedirectionUri, Optional> enabledLocales, + OptionalNullable securityHeaders, OptionalNullable sessionCookie, OptionalNullable sessions, Optional oidcLogout, @@ -150,6 +168,7 @@ private UpdateTenantSettingsRequestContent( Optional clientIdMetadataDocumentSupported, Optional enableAiGuide, Optional phoneConsolidatedExperience, + Optional includeSessionMetadataInTenantLogs, Optional dynamicClientRegistrationSecurityMode, OptionalNullable countryCodes, Map additionalProperties) { @@ -167,13 +186,18 @@ private UpdateTenantSettingsRequestContent( this.supportUrl = supportUrl; this.allowedLogoutUrls = allowedLogoutUrls; this.sessionLifetime = sessionLifetime; + this.sessionLifetimeInMinutes = sessionLifetimeInMinutes; this.idleSessionLifetime = idleSessionLifetime; + this.idleSessionLifetimeInMinutes = idleSessionLifetimeInMinutes; this.ephemeralSessionLifetime = ephemeralSessionLifetime; this.idleEphemeralSessionLifetime = idleEphemeralSessionLifetime; + this.ephemeralSessionLifetimeInMinutes = ephemeralSessionLifetimeInMinutes; + this.idleEphemeralSessionLifetimeInMinutes = idleEphemeralSessionLifetimeInMinutes; this.sandboxVersion = sandboxVersion; this.legacySandboxVersion = legacySandboxVersion; this.defaultRedirectionUri = defaultRedirectionUri; this.enabledLocales = enabledLocales; + this.securityHeaders = securityHeaders; this.sessionCookie = sessionCookie; this.sessions = sessions; this.oidcLogout = oidcLogout; @@ -188,6 +212,7 @@ private UpdateTenantSettingsRequestContent( this.clientIdMetadataDocumentSupported = clientIdMetadataDocumentSupported; this.enableAiGuide = enableAiGuide; this.phoneConsolidatedExperience = phoneConsolidatedExperience; + this.includeSessionMetadataInTenantLogs = includeSessionMetadataInTenantLogs; this.dynamicClientRegistrationSecurityMode = dynamicClientRegistrationSecurityMode; this.countryCodes = countryCodes; this.additionalProperties = additionalProperties; @@ -310,6 +335,14 @@ public Optional getSessionLifetime() { return sessionLifetime; } + /** + * @return Number of minutes a session will stay valid. Cannot be specified together with session_lifetime. + */ + @JsonProperty("session_lifetime_in_minutes") + public Optional getSessionLifetimeInMinutes() { + return sessionLifetimeInMinutes; + } + /** * @return Number of hours for which a session can be inactive before the user must log in again. */ @@ -318,6 +351,14 @@ public Optional getIdleSessionLifetime() { return idleSessionLifetime; } + /** + * @return Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with idle_session_lifetime. + */ + @JsonProperty("idle_session_lifetime_in_minutes") + public Optional getIdleSessionLifetimeInMinutes() { + return idleSessionLifetimeInMinutes; + } + /** * @return Number of hours an ephemeral (non-persistent) session will stay valid. */ @@ -334,6 +375,22 @@ public Optional getIdleEphemeralSessionLifetime() { return idleEphemeralSessionLifetime; } + /** + * @return Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with ephemeral_session_lifetime. + */ + @JsonProperty("ephemeral_session_lifetime_in_minutes") + public Optional getEphemeralSessionLifetimeInMinutes() { + return ephemeralSessionLifetimeInMinutes; + } + + /** + * @return Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with idle_ephemeral_session_lifetime. + */ + @JsonProperty("idle_ephemeral_session_lifetime_in_minutes") + public Optional getIdleEphemeralSessionLifetimeInMinutes() { + return idleEphemeralSessionLifetimeInMinutes; + } + /** * @return Selected sandbox version for the extensibility environment */ @@ -366,6 +423,15 @@ public Optional> getEnabledLocales() { return enabledLocales; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("security_headers") + public OptionalNullable getSecurityHeaders() { + if (securityHeaders == null) { + return OptionalNullable.absent(); + } + return securityHeaders; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_cookie") public OptionalNullable getSessionCookie() { @@ -501,6 +567,14 @@ public Optional getPhoneConsolidatedExperience() { return phoneConsolidatedExperience; } + /** + * @return Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). + */ + @JsonProperty("include_session_metadata_in_tenant_logs") + public Optional getIncludeSessionMetadataInTenantLogs() { + return includeSessionMetadataInTenantLogs; + } + @JsonProperty("dynamic_client_registration_security_mode") public Optional getDynamicClientRegistrationSecurityMode() { return dynamicClientRegistrationSecurityMode; @@ -545,6 +619,12 @@ private OptionalNullable _getDefaultTokenQuota() { return defaultTokenQuota; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("security_headers") + private OptionalNullable _getSecurityHeaders() { + return securityHeaders; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_cookie") private OptionalNullable _getSessionCookie() { @@ -632,13 +712,18 @@ private boolean equalTo(UpdateTenantSettingsRequestContent other) { && supportUrl.equals(other.supportUrl) && allowedLogoutUrls.equals(other.allowedLogoutUrls) && sessionLifetime.equals(other.sessionLifetime) + && sessionLifetimeInMinutes.equals(other.sessionLifetimeInMinutes) && idleSessionLifetime.equals(other.idleSessionLifetime) + && idleSessionLifetimeInMinutes.equals(other.idleSessionLifetimeInMinutes) && ephemeralSessionLifetime.equals(other.ephemeralSessionLifetime) && idleEphemeralSessionLifetime.equals(other.idleEphemeralSessionLifetime) + && ephemeralSessionLifetimeInMinutes.equals(other.ephemeralSessionLifetimeInMinutes) + && idleEphemeralSessionLifetimeInMinutes.equals(other.idleEphemeralSessionLifetimeInMinutes) && sandboxVersion.equals(other.sandboxVersion) && legacySandboxVersion.equals(other.legacySandboxVersion) && defaultRedirectionUri.equals(other.defaultRedirectionUri) && enabledLocales.equals(other.enabledLocales) + && securityHeaders.equals(other.securityHeaders) && sessionCookie.equals(other.sessionCookie) && sessions.equals(other.sessions) && oidcLogout.equals(other.oidcLogout) @@ -654,6 +739,7 @@ private boolean equalTo(UpdateTenantSettingsRequestContent other) { && clientIdMetadataDocumentSupported.equals(other.clientIdMetadataDocumentSupported) && enableAiGuide.equals(other.enableAiGuide) && phoneConsolidatedExperience.equals(other.phoneConsolidatedExperience) + && includeSessionMetadataInTenantLogs.equals(other.includeSessionMetadataInTenantLogs) && dynamicClientRegistrationSecurityMode.equals(other.dynamicClientRegistrationSecurityMode) && countryCodes.equals(other.countryCodes); } @@ -675,13 +761,18 @@ public int hashCode() { this.supportUrl, this.allowedLogoutUrls, this.sessionLifetime, + this.sessionLifetimeInMinutes, this.idleSessionLifetime, + this.idleSessionLifetimeInMinutes, this.ephemeralSessionLifetime, this.idleEphemeralSessionLifetime, + this.ephemeralSessionLifetimeInMinutes, + this.idleEphemeralSessionLifetimeInMinutes, this.sandboxVersion, this.legacySandboxVersion, this.defaultRedirectionUri, this.enabledLocales, + this.securityHeaders, this.sessionCookie, this.sessions, this.oidcLogout, @@ -696,6 +787,7 @@ public int hashCode() { this.clientIdMetadataDocumentSupported, this.enableAiGuide, this.phoneConsolidatedExperience, + this.includeSessionMetadataInTenantLogs, this.dynamicClientRegistrationSecurityMode, this.countryCodes); } @@ -739,12 +831,20 @@ public static final class Builder { private Optional sessionLifetime = Optional.empty(); + private Optional sessionLifetimeInMinutes = Optional.empty(); + private Optional idleSessionLifetime = Optional.empty(); + private Optional idleSessionLifetimeInMinutes = Optional.empty(); + private Optional ephemeralSessionLifetime = Optional.empty(); private Optional idleEphemeralSessionLifetime = Optional.empty(); + private Optional ephemeralSessionLifetimeInMinutes = Optional.empty(); + + private Optional idleEphemeralSessionLifetimeInMinutes = Optional.empty(); + private Optional sandboxVersion = Optional.empty(); private Optional legacySandboxVersion = Optional.empty(); @@ -753,6 +853,8 @@ public static final class Builder { private Optional> enabledLocales = Optional.empty(); + private OptionalNullable securityHeaders = OptionalNullable.absent(); + private OptionalNullable sessionCookie = OptionalNullable.absent(); private OptionalNullable sessions = OptionalNullable.absent(); @@ -781,6 +883,8 @@ public static final class Builder { private Optional phoneConsolidatedExperience = Optional.empty(); + private Optional includeSessionMetadataInTenantLogs = Optional.empty(); + private Optional dynamicClientRegistrationSecurityMode = Optional.empty(); @@ -806,13 +910,18 @@ public Builder from(UpdateTenantSettingsRequestContent other) { supportUrl(other.getSupportUrl()); allowedLogoutUrls(other.getAllowedLogoutUrls()); sessionLifetime(other.getSessionLifetime()); + sessionLifetimeInMinutes(other.getSessionLifetimeInMinutes()); idleSessionLifetime(other.getIdleSessionLifetime()); + idleSessionLifetimeInMinutes(other.getIdleSessionLifetimeInMinutes()); ephemeralSessionLifetime(other.getEphemeralSessionLifetime()); idleEphemeralSessionLifetime(other.getIdleEphemeralSessionLifetime()); + ephemeralSessionLifetimeInMinutes(other.getEphemeralSessionLifetimeInMinutes()); + idleEphemeralSessionLifetimeInMinutes(other.getIdleEphemeralSessionLifetimeInMinutes()); sandboxVersion(other.getSandboxVersion()); legacySandboxVersion(other.getLegacySandboxVersion()); defaultRedirectionUri(other.getDefaultRedirectionUri()); enabledLocales(other.getEnabledLocales()); + securityHeaders(other.getSecurityHeaders()); sessionCookie(other.getSessionCookie()); sessions(other.getSessions()); oidcLogout(other.getOidcLogout()); @@ -827,6 +936,7 @@ public Builder from(UpdateTenantSettingsRequestContent other) { clientIdMetadataDocumentSupported(other.getClientIdMetadataDocumentSupported()); enableAiGuide(other.getEnableAiGuide()); phoneConsolidatedExperience(other.getPhoneConsolidatedExperience()); + includeSessionMetadataInTenantLogs(other.getIncludeSessionMetadataInTenantLogs()); dynamicClientRegistrationSecurityMode(other.getDynamicClientRegistrationSecurityMode()); countryCodes(other.getCountryCodes()); return this; @@ -1114,6 +1224,20 @@ public Builder sessionLifetime(Integer sessionLifetime) { return this; } + /** + *

Number of minutes a session will stay valid. Cannot be specified together with session_lifetime.

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

Number of hours for which a session can be inactive before the user must log in again.

*/ @@ -1128,6 +1252,20 @@ public Builder idleSessionLifetime(Integer idleSessionLifetime) { return this; } + /** + *

Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with idle_session_lifetime.

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

Number of hours an ephemeral (non-persistent) session will stay valid.

*/ @@ -1156,6 +1294,34 @@ public Builder idleEphemeralSessionLifetime(Integer idleEphemeralSessionLifetime return this; } + /** + *

Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with ephemeral_session_lifetime.

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

Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with idle_ephemeral_session_lifetime.

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

Selected sandbox version for the extensibility environment

*/ @@ -1212,6 +1378,39 @@ public Builder enabledLocales(List enabledLo return this; } + @JsonSetter(value = "security_headers", nulls = Nulls.SKIP) + public Builder securityHeaders( + @Nullable OptionalNullable securityHeaders) { + this.securityHeaders = securityHeaders; + return this; + } + + public Builder securityHeaders(TenantSettingsNullableSecurityHeaders securityHeaders) { + this.securityHeaders = OptionalNullable.of(securityHeaders); + return this; + } + + public Builder securityHeaders(Optional securityHeaders) { + if (securityHeaders.isPresent()) { + this.securityHeaders = OptionalNullable.of(securityHeaders.get()); + } else { + this.securityHeaders = OptionalNullable.absent(); + } + return this; + } + + public Builder securityHeaders( + com.auth0.client.mgmt.core.Nullable securityHeaders) { + if (securityHeaders.isNull()) { + this.securityHeaders = OptionalNullable.ofNull(); + } else if (securityHeaders.isEmpty()) { + this.securityHeaders = OptionalNullable.absent(); + } else { + this.securityHeaders = OptionalNullable.of(securityHeaders.get()); + } + return this; + } + @JsonSetter(value = "session_cookie", nulls = Nulls.SKIP) public Builder sessionCookie(@Nullable OptionalNullable sessionCookie) { this.sessionCookie = sessionCookie; @@ -1601,6 +1800,20 @@ public Builder phoneConsolidatedExperience(Boolean phoneConsolidatedExperience) return this; } + /** + *

Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded).

+ */ + @JsonSetter(value = "include_session_metadata_in_tenant_logs", nulls = Nulls.SKIP) + public Builder includeSessionMetadataInTenantLogs(Optional includeSessionMetadataInTenantLogs) { + this.includeSessionMetadataInTenantLogs = includeSessionMetadataInTenantLogs; + return this; + } + + public Builder includeSessionMetadataInTenantLogs(Boolean includeSessionMetadataInTenantLogs) { + this.includeSessionMetadataInTenantLogs = Optional.ofNullable(includeSessionMetadataInTenantLogs); + return this; + } + @JsonSetter(value = "dynamic_client_registration_security_mode", nulls = Nulls.SKIP) public Builder dynamicClientRegistrationSecurityMode( Optional dynamicClientRegistrationSecurityMode) { @@ -1661,13 +1874,18 @@ public UpdateTenantSettingsRequestContent build() { supportUrl, allowedLogoutUrls, sessionLifetime, + sessionLifetimeInMinutes, idleSessionLifetime, + idleSessionLifetimeInMinutes, ephemeralSessionLifetime, idleEphemeralSessionLifetime, + ephemeralSessionLifetimeInMinutes, + idleEphemeralSessionLifetimeInMinutes, sandboxVersion, legacySandboxVersion, defaultRedirectionUri, enabledLocales, + securityHeaders, sessionCookie, sessions, oidcLogout, @@ -1682,6 +1900,7 @@ public UpdateTenantSettingsRequestContent build() { clientIdMetadataDocumentSupported, enableAiGuide, phoneConsolidatedExperience, + includeSessionMetadataInTenantLogs, dynamicClientRegistrationSecurityMode, countryCodes, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/AculContextEnum.java b/src/main/java/com/auth0/client/mgmt/types/AculContextEnum.java index 3a65dc92..ce1f1484 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculContextEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculContextEnum.java @@ -24,6 +24,8 @@ public final class AculContextEnum { public static final AculContextEnum SCREEN_TEXTS = new AculContextEnum(Value.SCREEN_TEXTS, "screen.texts"); + public static final AculContextEnum EXPERIMENT = new AculContextEnum(Value.EXPERIMENT, "experiment"); + public static final AculContextEnum BRANDING_SETTINGS = new AculContextEnum(Value.BRANDING_SETTINGS, "branding.settings"); @@ -98,6 +100,8 @@ public T visit(Visitor visitor) { return visitor.visitClientDescription(); case SCREEN_TEXTS: return visitor.visitScreenTexts(); + case EXPERIMENT: + return visitor.visitExperiment(); case BRANDING_SETTINGS: return visitor.visitBrandingSettings(); case TRANSACTION_CUSTOM_DOMAIN_DOMAIN: @@ -141,6 +145,8 @@ public static AculContextEnum valueOf(String value) { return CLIENT_DESCRIPTION; case "screen.texts": return SCREEN_TEXTS; + case "experiment": + return EXPERIMENT; case "branding.settings": return BRANDING_SETTINGS; case "transaction.custom_domain.domain": @@ -203,6 +209,8 @@ public enum Value { TRANSACTION_CUSTOM_DOMAIN_DOMAIN, + EXPERIMENT, + UNKNOWN } @@ -241,6 +249,8 @@ public interface Visitor { T visitTransactionCustomDomainDomain(); + T visitExperiment(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingIdentifiers.java b/src/main/java/com/auth0/client/mgmt/types/BrandingIdentifiers.java deleted file mode 100644 index 179700d7..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingIdentifiers.java +++ /dev/null @@ -1,161 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.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 = BrandingIdentifiers.Builder.class) -public final class BrandingIdentifiers { - private final Optional loginDisplay; - - private final Optional otpAutocomplete; - - private final Optional phoneDisplay; - - private final Map additionalProperties; - - private BrandingIdentifiers( - Optional loginDisplay, - Optional otpAutocomplete, - Optional phoneDisplay, - Map additionalProperties) { - this.loginDisplay = loginDisplay; - this.otpAutocomplete = otpAutocomplete; - this.phoneDisplay = phoneDisplay; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("login_display") - public Optional getLoginDisplay() { - return loginDisplay; - } - - /** - * @return Whether OTP autocomplete (autocomplete="one-time-code") is enabled. - */ - @JsonProperty("otp_autocomplete") - public Optional getOtpAutocomplete() { - return otpAutocomplete; - } - - @JsonProperty("phone_display") - public Optional getPhoneDisplay() { - return phoneDisplay; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof BrandingIdentifiers && equalTo((BrandingIdentifiers) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(BrandingIdentifiers other) { - return loginDisplay.equals(other.loginDisplay) - && otpAutocomplete.equals(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 Builder builder() { - return new Builder(); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional loginDisplay = Optional.empty(); - - private Optional otpAutocomplete = Optional.empty(); - - private Optional phoneDisplay = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(BrandingIdentifiers other) { - loginDisplay(other.getLoginDisplay()); - otpAutocomplete(other.getOtpAutocomplete()); - phoneDisplay(other.getPhoneDisplay()); - return this; - } - - @JsonSetter(value = "login_display", nulls = Nulls.SKIP) - public Builder loginDisplay(Optional loginDisplay) { - this.loginDisplay = loginDisplay; - return this; - } - - public Builder loginDisplay(BrandingLoginDisplayEnum loginDisplay) { - this.loginDisplay = Optional.ofNullable(loginDisplay); - return this; - } - - /** - *

Whether OTP autocomplete (autocomplete="one-time-code") is enabled.

- */ - @JsonSetter(value = "otp_autocomplete", nulls = Nulls.SKIP) - public Builder otpAutocomplete(Optional otpAutocomplete) { - this.otpAutocomplete = otpAutocomplete; - return this; - } - - public Builder otpAutocomplete(Boolean otpAutocomplete) { - this.otpAutocomplete = Optional.ofNullable(otpAutocomplete); - return this; - } - - @JsonSetter(value = "phone_display", nulls = Nulls.SKIP) - public Builder phoneDisplay(Optional phoneDisplay) { - this.phoneDisplay = phoneDisplay; - return this; - } - - public Builder phoneDisplay(BrandingPhoneDisplay phoneDisplay) { - this.phoneDisplay = Optional.ofNullable(phoneDisplay); - return this; - } - - public BrandingIdentifiers build() { - return new BrandingIdentifiers(loginDisplay, otpAutocomplete, phoneDisplay, 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/BrandingPhoneDisplay.java b/src/main/java/com/auth0/client/mgmt/types/BrandingPhoneDisplay.java deleted file mode 100644 index 76aa34b1..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingPhoneDisplay.java +++ /dev/null @@ -1,130 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.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 = BrandingPhoneDisplay.Builder.class) -public final class BrandingPhoneDisplay { - private final Optional masking; - - private final Optional formatting; - - private final Map additionalProperties; - - private BrandingPhoneDisplay( - Optional masking, - Optional formatting, - Map additionalProperties) { - this.masking = masking; - this.formatting = formatting; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("masking") - public Optional getMasking() { - return masking; - } - - @JsonProperty("formatting") - public Optional getFormatting() { - return formatting; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof BrandingPhoneDisplay && equalTo((BrandingPhoneDisplay) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(BrandingPhoneDisplay other) { - return masking.equals(other.masking) && formatting.equals(other.formatting); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash(this.masking, this.formatting); - } - - @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 masking = Optional.empty(); - - private Optional formatting = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(BrandingPhoneDisplay other) { - masking(other.getMasking()); - formatting(other.getFormatting()); - return this; - } - - @JsonSetter(value = "masking", nulls = Nulls.SKIP) - public Builder masking(Optional masking) { - this.masking = masking; - return this; - } - - public Builder masking(BrandingPhoneMaskingEnum masking) { - this.masking = Optional.ofNullable(masking); - return this; - } - - @JsonSetter(value = "formatting", nulls = Nulls.SKIP) - public Builder formatting(Optional formatting) { - this.formatting = formatting; - return this; - } - - public Builder formatting(BrandingPhoneFormattingEnum formatting) { - this.formatting = Optional.ofNullable(formatting); - return this; - } - - public BrandingPhoneDisplay build() { - return new BrandingPhoneDisplay(masking, formatting, 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/BrandingPhoneFormattingEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingPhoneFormattingEnum.java deleted file mode 100644 index 3a1071df..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingPhoneFormattingEnum.java +++ /dev/null @@ -1,86 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -public final class BrandingPhoneFormattingEnum { - public static final BrandingPhoneFormattingEnum REGIONAL = - new BrandingPhoneFormattingEnum(Value.REGIONAL, "regional"); - - public static final BrandingPhoneFormattingEnum INTERNATIONAL = - new BrandingPhoneFormattingEnum(Value.INTERNATIONAL, "international"); - - private final Value value; - - private final String string; - - BrandingPhoneFormattingEnum(Value value, String string) { - this.value = value; - this.string = string; - } - - public Value getEnumValue() { - return value; - } - - @java.lang.Override - @JsonValue - public String toString() { - return this.string; - } - - @java.lang.Override - public boolean equals(Object other) { - return (this == other) - || (other instanceof BrandingPhoneFormattingEnum - && this.string.equals(((BrandingPhoneFormattingEnum) 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 BrandingPhoneFormattingEnum valueOf(String value) { - switch (value) { - case "regional": - return REGIONAL; - case "international": - return INTERNATIONAL; - default: - return new BrandingPhoneFormattingEnum(Value.UNKNOWN, value); - } - } - - public enum Value { - REGIONAL, - - INTERNATIONAL, - - UNKNOWN - } - - public interface Visitor { - T visitRegional(); - - T visitInternational(); - - T visitUnknown(String unknownType); - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingPhoneMaskingEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingPhoneMaskingEnum.java deleted file mode 100644 index 68e36a16..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingPhoneMaskingEnum.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -public final class BrandingPhoneMaskingEnum { - public static final BrandingPhoneMaskingEnum SHOW_ALL = new BrandingPhoneMaskingEnum(Value.SHOW_ALL, "show_all"); - - public static final BrandingPhoneMaskingEnum MASK_DIGITS = - new BrandingPhoneMaskingEnum(Value.MASK_DIGITS, "mask_digits"); - - public static final BrandingPhoneMaskingEnum HIDE_COUNTRY_CODE = - new BrandingPhoneMaskingEnum(Value.HIDE_COUNTRY_CODE, "hide_country_code"); - - private final Value value; - - private final String string; - - BrandingPhoneMaskingEnum(Value value, String string) { - this.value = value; - this.string = string; - } - - public Value getEnumValue() { - return value; - } - - @java.lang.Override - @JsonValue - public String toString() { - return this.string; - } - - @java.lang.Override - public boolean equals(Object other) { - return (this == other) - || (other instanceof BrandingPhoneMaskingEnum - && this.string.equals(((BrandingPhoneMaskingEnum) 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 BrandingPhoneMaskingEnum 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 BrandingPhoneMaskingEnum(Value.UNKNOWN, value); - } - } - - public enum Value { - SHOW_ALL, - - HIDE_COUNTRY_CODE, - - MASK_DIGITS, - - UNKNOWN - } - - public interface Visitor { - T visitShowAll(); - - T visitHideCountryCode(); - - T visitMaskDigits(); - - T visitUnknown(String unknownType); - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPatchConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPatchConfiguration.java index 56a5beff..e55af4a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPatchConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPatchConfiguration.java @@ -31,6 +31,8 @@ public final class ClientMyOrganizationPatchConfiguration { private final ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior; + private final Optional invitationLandingClientId; + private final Map additionalProperties; private ClientMyOrganizationPatchConfiguration( @@ -38,11 +40,13 @@ private ClientMyOrganizationPatchConfiguration( Optional userAttributeProfileId, List allowedStrategies, ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior, + Optional invitationLandingClientId, Map additionalProperties) { this.connectionProfileId = connectionProfileId; this.userAttributeProfileId = userAttributeProfileId; this.allowedStrategies = allowedStrategies; this.connectionDeletionBehavior = connectionDeletionBehavior; + this.invitationLandingClientId = invitationLandingClientId; this.additionalProperties = additionalProperties; } @@ -75,6 +79,14 @@ public ClientMyOrganizationDeletionBehaviorEnum getConnectionDeletionBehavior() return connectionDeletionBehavior; } + /** + * @return The client ID this client uses while creating invitations through My Organization API. + */ + @JsonProperty("invitation_landing_client_id") + public Optional getInvitationLandingClientId() { + return invitationLandingClientId; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -91,7 +103,8 @@ private boolean equalTo(ClientMyOrganizationPatchConfiguration other) { return connectionProfileId.equals(other.connectionProfileId) && userAttributeProfileId.equals(other.userAttributeProfileId) && allowedStrategies.equals(other.allowedStrategies) - && connectionDeletionBehavior.equals(other.connectionDeletionBehavior); + && connectionDeletionBehavior.equals(other.connectionDeletionBehavior) + && invitationLandingClientId.equals(other.invitationLandingClientId); } @java.lang.Override @@ -100,7 +113,8 @@ public int hashCode() { this.connectionProfileId, this.userAttributeProfileId, this.allowedStrategies, - this.connectionDeletionBehavior); + this.connectionDeletionBehavior, + this.invitationLandingClientId); } @java.lang.Override @@ -149,12 +163,21 @@ public interface _FinalStage { _FinalStage addAllAllowedStrategies( List allowedStrategies); + + /** + *

The client ID this client uses while creating invitations through My Organization API.

+ */ + _FinalStage invitationLandingClientId(Optional invitationLandingClientId); + + _FinalStage invitationLandingClientId(String invitationLandingClientId); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements ConnectionDeletionBehaviorStage, _FinalStage { private ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior; + private Optional invitationLandingClientId = Optional.empty(); + private List allowedStrategies = new ArrayList<>(); private Optional userAttributeProfileId = Optional.empty(); @@ -172,6 +195,7 @@ public Builder from(ClientMyOrganizationPatchConfiguration other) { userAttributeProfileId(other.getUserAttributeProfileId()); allowedStrategies(other.getAllowedStrategies()); connectionDeletionBehavior(other.getConnectionDeletionBehavior()); + invitationLandingClientId(other.getInvitationLandingClientId()); return this; } @@ -184,6 +208,26 @@ public _FinalStage connectionDeletionBehavior( return this; } + /** + *

The client ID this client uses while creating invitations through My Organization API.

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

The client ID this client uses while creating invitations through My Organization API.

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

The allowed connection strategies for the My Organization Configuration.

* @return Reference to {@code this} so that method calls can be chained together. @@ -269,6 +313,7 @@ public ClientMyOrganizationPatchConfiguration build() { userAttributeProfileId, allowedStrategies, connectionDeletionBehavior, + invitationLandingClientId, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPostConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPostConfiguration.java index a4080a36..893627af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPostConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationPostConfiguration.java @@ -31,6 +31,8 @@ public final class ClientMyOrganizationPostConfiguration { private final ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior; + private final Optional invitationLandingClientId; + private final Map additionalProperties; private ClientMyOrganizationPostConfiguration( @@ -38,11 +40,13 @@ private ClientMyOrganizationPostConfiguration( Optional userAttributeProfileId, List allowedStrategies, ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior, + Optional invitationLandingClientId, Map additionalProperties) { this.connectionProfileId = connectionProfileId; this.userAttributeProfileId = userAttributeProfileId; this.allowedStrategies = allowedStrategies; this.connectionDeletionBehavior = connectionDeletionBehavior; + this.invitationLandingClientId = invitationLandingClientId; this.additionalProperties = additionalProperties; } @@ -75,6 +79,14 @@ public ClientMyOrganizationDeletionBehaviorEnum getConnectionDeletionBehavior() return connectionDeletionBehavior; } + /** + * @return The client ID this client uses while creating invitations through My Organization API. + */ + @JsonProperty("invitation_landing_client_id") + public Optional getInvitationLandingClientId() { + return invitationLandingClientId; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -91,7 +103,8 @@ private boolean equalTo(ClientMyOrganizationPostConfiguration other) { return connectionProfileId.equals(other.connectionProfileId) && userAttributeProfileId.equals(other.userAttributeProfileId) && allowedStrategies.equals(other.allowedStrategies) - && connectionDeletionBehavior.equals(other.connectionDeletionBehavior); + && connectionDeletionBehavior.equals(other.connectionDeletionBehavior) + && invitationLandingClientId.equals(other.invitationLandingClientId); } @java.lang.Override @@ -100,7 +113,8 @@ public int hashCode() { this.connectionProfileId, this.userAttributeProfileId, this.allowedStrategies, - this.connectionDeletionBehavior); + this.connectionDeletionBehavior, + this.invitationLandingClientId); } @java.lang.Override @@ -149,12 +163,21 @@ public interface _FinalStage { _FinalStage addAllAllowedStrategies( List allowedStrategies); + + /** + *

The client ID this client uses while creating invitations through My Organization API.

+ */ + _FinalStage invitationLandingClientId(Optional invitationLandingClientId); + + _FinalStage invitationLandingClientId(String invitationLandingClientId); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements ConnectionDeletionBehaviorStage, _FinalStage { private ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior; + private Optional invitationLandingClientId = Optional.empty(); + private List allowedStrategies = new ArrayList<>(); private Optional userAttributeProfileId = Optional.empty(); @@ -172,6 +195,7 @@ public Builder from(ClientMyOrganizationPostConfiguration other) { userAttributeProfileId(other.getUserAttributeProfileId()); allowedStrategies(other.getAllowedStrategies()); connectionDeletionBehavior(other.getConnectionDeletionBehavior()); + invitationLandingClientId(other.getInvitationLandingClientId()); return this; } @@ -184,6 +208,26 @@ public _FinalStage connectionDeletionBehavior( return this; } + /** + *

The client ID this client uses while creating invitations through My Organization API.

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

The client ID this client uses while creating invitations through My Organization API.

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

The allowed connection strategies for the My Organization Configuration.

* @return Reference to {@code this} so that method calls can be chained together. @@ -269,6 +313,7 @@ public ClientMyOrganizationPostConfiguration build() { userAttributeProfileId, allowedStrategies, connectionDeletionBehavior, + invitationLandingClientId, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationResponseConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationResponseConfiguration.java index 5897b858..f7db3abe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationResponseConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMyOrganizationResponseConfiguration.java @@ -31,6 +31,8 @@ public final class ClientMyOrganizationResponseConfiguration { private final ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior; + private final Optional invitationLandingClientId; + private final Map additionalProperties; private ClientMyOrganizationResponseConfiguration( @@ -38,11 +40,13 @@ private ClientMyOrganizationResponseConfiguration( Optional userAttributeProfileId, List allowedStrategies, ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior, + Optional invitationLandingClientId, Map additionalProperties) { this.connectionProfileId = connectionProfileId; this.userAttributeProfileId = userAttributeProfileId; this.allowedStrategies = allowedStrategies; this.connectionDeletionBehavior = connectionDeletionBehavior; + this.invitationLandingClientId = invitationLandingClientId; this.additionalProperties = additionalProperties; } @@ -75,6 +79,14 @@ public ClientMyOrganizationDeletionBehaviorEnum getConnectionDeletionBehavior() return connectionDeletionBehavior; } + /** + * @return The client ID this client uses while creating invitations through My Organization API. + */ + @JsonProperty("invitation_landing_client_id") + public Optional getInvitationLandingClientId() { + return invitationLandingClientId; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -91,7 +103,8 @@ private boolean equalTo(ClientMyOrganizationResponseConfiguration other) { return connectionProfileId.equals(other.connectionProfileId) && userAttributeProfileId.equals(other.userAttributeProfileId) && allowedStrategies.equals(other.allowedStrategies) - && connectionDeletionBehavior.equals(other.connectionDeletionBehavior); + && connectionDeletionBehavior.equals(other.connectionDeletionBehavior) + && invitationLandingClientId.equals(other.invitationLandingClientId); } @java.lang.Override @@ -100,7 +113,8 @@ public int hashCode() { this.connectionProfileId, this.userAttributeProfileId, this.allowedStrategies, - this.connectionDeletionBehavior); + this.connectionDeletionBehavior, + this.invitationLandingClientId); } @java.lang.Override @@ -149,12 +163,21 @@ public interface _FinalStage { _FinalStage addAllAllowedStrategies( List allowedStrategies); + + /** + *

The client ID this client uses while creating invitations through My Organization API.

+ */ + _FinalStage invitationLandingClientId(Optional invitationLandingClientId); + + _FinalStage invitationLandingClientId(String invitationLandingClientId); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements ConnectionDeletionBehaviorStage, _FinalStage { private ClientMyOrganizationDeletionBehaviorEnum connectionDeletionBehavior; + private Optional invitationLandingClientId = Optional.empty(); + private List allowedStrategies = new ArrayList<>(); private Optional userAttributeProfileId = Optional.empty(); @@ -172,6 +195,7 @@ public Builder from(ClientMyOrganizationResponseConfiguration other) { userAttributeProfileId(other.getUserAttributeProfileId()); allowedStrategies(other.getAllowedStrategies()); connectionDeletionBehavior(other.getConnectionDeletionBehavior()); + invitationLandingClientId(other.getInvitationLandingClientId()); return this; } @@ -184,6 +208,26 @@ public _FinalStage connectionDeletionBehavior( return this; } + /** + *

The client ID this client uses while creating invitations through My Organization API.

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

The client ID this client uses while creating invitations through My Organization API.

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

The allowed connection strategies for the My Organization Configuration.

* @return Reference to {@code this} so that method calls can be chained together. @@ -269,6 +313,7 @@ public ClientMyOrganizationResponseConfiguration build() { userAttributeProfileId, allowedStrategies, connectionDeletionBehavior, + invitationLandingClientId, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java index 98837176..bb79a4a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java @@ -41,6 +41,8 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm private final Optional iconUrl; + private final Optional idTokenSessionExpirySupported; + private final OptionalNullable> idTokenSignedResponseAlgs; private final Optional issuer; @@ -81,6 +83,7 @@ private ConnectionOptionsCommonOidc( Optional dpopSigningAlg, OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, + Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, Optional jwksUri, @@ -104,6 +107,7 @@ private ConnectionOptionsCommonOidc( this.dpopSigningAlg = dpopSigningAlg; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; this.jwksUri = jwksUri; @@ -173,6 +177,12 @@ public Optional getIconUrl() { return iconUrl; } + @JsonProperty("id_token_session_expiry_supported") + @java.lang.Override + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") @java.lang.Override @@ -324,6 +334,7 @@ private boolean equalTo(ConnectionOptionsCommonOidc other) { && dpopSigningAlg.equals(other.dpopSigningAlg) && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) && jwksUri.equals(other.jwksUri) @@ -351,6 +362,7 @@ public int hashCode() { this.dpopSigningAlg, this.federatedConnectionsAccessTokens, this.iconUrl, + this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, this.issuer, this.jwksUri, @@ -427,6 +439,10 @@ _FinalStage federatedConnectionsAccessTokens( _FinalStage iconUrl(String iconUrl); + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + _FinalStage idTokenSignedResponseAlgs( @Nullable OptionalNullable> idTokenSignedResponseAlgs); @@ -556,6 +572,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private OptionalNullable> idTokenSignedResponseAlgs = OptionalNullable.absent(); + private Optional idTokenSessionExpirySupported = Optional.empty(); + private Optional iconUrl = Optional.empty(); private OptionalNullable federatedConnectionsAccessTokens = @@ -586,6 +604,7 @@ public Builder from(ConnectionOptionsCommonOidc other) { dpopSigningAlg(other.getDpopSigningAlg()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); jwksUri(other.getJwksUri()); @@ -903,6 +922,19 @@ public _FinalStage idTokenSignedResponseAlgs( return this; } + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + @java.lang.Override public _FinalStage iconUrl(String iconUrl) { this.iconUrl = Optional.ofNullable(iconUrl); @@ -1033,6 +1065,7 @@ public ConnectionOptionsCommonOidc build() { dpopSigningAlg, federatedConnectionsAccessTokens, iconUrl, + idTokenSessionExpirySupported, idTokenSignedResponseAlgs, issuer, jwksUri, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java index 800325cd..3997e321 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java @@ -41,6 +41,8 @@ public final class ConnectionOptionsOidc implements IConnectionOptionsCommonOidc private final Optional iconUrl; + private final Optional idTokenSessionExpirySupported; + private final OptionalNullable> idTokenSignedResponseAlgs; private final Optional issuer; @@ -89,6 +91,7 @@ private ConnectionOptionsOidc( Optional dpopSigningAlg, OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, + Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, Optional jwksUri, @@ -116,6 +119,7 @@ private ConnectionOptionsOidc( this.dpopSigningAlg = dpopSigningAlg; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; this.jwksUri = jwksUri; @@ -189,6 +193,12 @@ public Optional getIconUrl() { return iconUrl; } + @JsonProperty("id_token_session_expiry_supported") + @java.lang.Override + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") @java.lang.Override @@ -361,6 +371,7 @@ private boolean equalTo(ConnectionOptionsOidc other) { && dpopSigningAlg.equals(other.dpopSigningAlg) && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) && jwksUri.equals(other.jwksUri) @@ -392,6 +403,7 @@ public int hashCode() { this.dpopSigningAlg, this.federatedConnectionsAccessTokens, this.iconUrl, + this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, this.issuer, this.jwksUri, @@ -472,6 +484,10 @@ _FinalStage federatedConnectionsAccessTokens( _FinalStage iconUrl(String iconUrl); + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + _FinalStage idTokenSignedResponseAlgs( @Nullable OptionalNullable> idTokenSignedResponseAlgs); @@ -625,6 +641,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private OptionalNullable> idTokenSignedResponseAlgs = OptionalNullable.absent(); + private Optional idTokenSessionExpirySupported = Optional.empty(); + private Optional iconUrl = Optional.empty(); private OptionalNullable federatedConnectionsAccessTokens = @@ -655,6 +673,7 @@ public Builder from(ConnectionOptionsOidc other) { dpopSigningAlg(other.getDpopSigningAlg()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); jwksUri(other.getJwksUri()); @@ -1028,6 +1047,19 @@ public _FinalStage idTokenSignedResponseAlgs( return this; } + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + @java.lang.Override public _FinalStage iconUrl(String iconUrl) { this.iconUrl = Optional.ofNullable(iconUrl); @@ -1158,6 +1190,7 @@ public ConnectionOptionsOidc build() { dpopSigningAlg, federatedConnectionsAccessTokens, iconUrl, + idTokenSessionExpirySupported, idTokenSignedResponseAlgs, issuer, jwksUri, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java index 6aabee38..41c7dace 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java @@ -43,6 +43,8 @@ public final class ConnectionOptionsOkta implements IConnectionOptionsCommon, IC private final Optional iconUrl; + private final Optional idTokenSessionExpirySupported; + private final OptionalNullable> idTokenSignedResponseAlgs; private final Optional issuer; @@ -90,6 +92,7 @@ private ConnectionOptionsOkta( Optional dpopSigningAlg, OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, + Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, Optional jwksUri, @@ -117,6 +120,7 @@ private ConnectionOptionsOkta( this.dpopSigningAlg = dpopSigningAlg; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; this.jwksUri = jwksUri; @@ -195,6 +199,12 @@ public Optional getIconUrl() { return iconUrl; } + @JsonProperty("id_token_session_expiry_supported") + @java.lang.Override + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") @java.lang.Override @@ -362,6 +372,7 @@ private boolean equalTo(ConnectionOptionsOkta other) { && dpopSigningAlg.equals(other.dpopSigningAlg) && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) && jwksUri.equals(other.jwksUri) @@ -393,6 +404,7 @@ public int hashCode() { this.dpopSigningAlg, this.federatedConnectionsAccessTokens, this.iconUrl, + this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, this.issuer, this.jwksUri, @@ -476,6 +488,10 @@ _FinalStage federatedConnectionsAccessTokens( _FinalStage iconUrl(String iconUrl); + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + _FinalStage idTokenSignedResponseAlgs( @Nullable OptionalNullable> idTokenSignedResponseAlgs); @@ -623,6 +639,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private OptionalNullable> idTokenSignedResponseAlgs = OptionalNullable.absent(); + private Optional idTokenSessionExpirySupported = Optional.empty(); + private Optional iconUrl = Optional.empty(); private OptionalNullable federatedConnectionsAccessTokens = @@ -656,6 +674,7 @@ public Builder from(ConnectionOptionsOkta other) { dpopSigningAlg(other.getDpopSigningAlg()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); jwksUri(other.getJwksUri()); @@ -1015,6 +1034,19 @@ public _FinalStage idTokenSignedResponseAlgs( return this; } + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + @java.lang.Override public _FinalStage iconUrl(String iconUrl) { this.iconUrl = Optional.ofNullable(iconUrl); @@ -1159,6 +1191,7 @@ public ConnectionOptionsOkta build() { dpopSigningAlg, federatedConnectionsAccessTokens, iconUrl, + idTokenSessionExpirySupported, idTokenSignedResponseAlgs, issuer, jwksUri, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java index ddb21697..30dd990f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -99,6 +99,8 @@ public final class ConnectionPropertiesOptions { private final Optional tokenEndpointJwtcaAudFormat; + private final Optional idTokenSessionExpirySupported; + private final Map additionalProperties; private ConnectionPropertiesOptions( @@ -139,6 +141,7 @@ private ConnectionPropertiesOptions( OptionalNullable tokenEndpointAuthMethod, OptionalNullable tokenEndpointAuthSigningAlg, Optional tokenEndpointJwtcaAudFormat, + Optional idTokenSessionExpirySupported, Map additionalProperties) { this.validation = validation; this.nonPersistentAttrs = nonPersistentAttrs; @@ -177,6 +180,7 @@ private ConnectionPropertiesOptions( this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.additionalProperties = additionalProperties; } @@ -447,6 +451,11 @@ public Optional getTokenEndpointJ return tokenEndpointJwtcaAudFormat; } + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("validation") private OptionalNullable _getValidation() { @@ -592,7 +601,8 @@ private boolean equalTo(ConnectionPropertiesOptions other) { && dpopSigningAlg.equals(other.dpopSigningAlg) && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) - && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat); + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported); } @java.lang.Override @@ -634,7 +644,8 @@ public int hashCode() { this.dpopSigningAlg, this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, - this.tokenEndpointJwtcaAudFormat); + this.tokenEndpointJwtcaAudFormat, + this.idTokenSessionExpirySupported); } @java.lang.Override @@ -729,6 +740,8 @@ public static final class Builder { private Optional tokenEndpointJwtcaAudFormat = Optional.empty(); + private Optional idTokenSessionExpirySupported = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -772,6 +785,7 @@ public Builder from(ConnectionPropertiesOptions other) { tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); return this; } @@ -1565,6 +1579,17 @@ public Builder tokenEndpointJwtcaAudFormat( return this; } + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public Builder idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + public Builder idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + public ConnectionPropertiesOptions build() { return new ConnectionPropertiesOptions( validation, @@ -1604,6 +1629,7 @@ public ConnectionPropertiesOptions build() { tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, + idTokenSessionExpirySupported, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ContentSecurityPolicyConfig.java b/src/main/java/com/auth0/client/mgmt/types/ContentSecurityPolicyConfig.java new file mode 100644 index 00000000..34c013ba --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ContentSecurityPolicyConfig.java @@ -0,0 +1,197 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ContentSecurityPolicyConfig.Builder.class) +public final class ContentSecurityPolicyConfig { + private final Optional enabled; + + private final Optional> policies; + + private final OptionalNullable reportingInfrastructure; + + private final Map additionalProperties; + + private ContentSecurityPolicyConfig( + Optional enabled, + Optional> policies, + OptionalNullable reportingInfrastructure, + Map additionalProperties) { + this.enabled = enabled; + this.policies = policies; + this.reportingInfrastructure = reportingInfrastructure; + this.additionalProperties = additionalProperties; + } + + /** + * @return Whether CSP is enabled. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @JsonProperty("policies") + public Optional> getPolicies() { + return policies; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("reporting_infrastructure") + public OptionalNullable getReportingInfrastructure() { + if (reportingInfrastructure == null) { + return OptionalNullable.absent(); + } + return reportingInfrastructure; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("reporting_infrastructure") + private OptionalNullable _getReportingInfrastructure() { + return reportingInfrastructure; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ContentSecurityPolicyConfig && equalTo((ContentSecurityPolicyConfig) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ContentSecurityPolicyConfig other) { + return enabled.equals(other.enabled) + && policies.equals(other.policies) + && reportingInfrastructure.equals(other.reportingInfrastructure); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.enabled, this.policies, this.reportingInfrastructure); + } + + @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 enabled = Optional.empty(); + + private Optional> policies = Optional.empty(); + + private OptionalNullable reportingInfrastructure = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ContentSecurityPolicyConfig other) { + enabled(other.getEnabled()); + policies(other.getPolicies()); + reportingInfrastructure(other.getReportingInfrastructure()); + return this; + } + + /** + *

Whether CSP is enabled.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + @JsonSetter(value = "policies", nulls = Nulls.SKIP) + public Builder policies(Optional> policies) { + this.policies = policies; + return this; + } + + public Builder policies(List policies) { + this.policies = Optional.ofNullable(policies); + return this; + } + + @JsonSetter(value = "reporting_infrastructure", nulls = Nulls.SKIP) + public Builder reportingInfrastructure( + @Nullable OptionalNullable reportingInfrastructure) { + this.reportingInfrastructure = reportingInfrastructure; + return this; + } + + public Builder reportingInfrastructure(CspReportingInfrastructure reportingInfrastructure) { + this.reportingInfrastructure = OptionalNullable.of(reportingInfrastructure); + return this; + } + + public Builder reportingInfrastructure(Optional reportingInfrastructure) { + if (reportingInfrastructure.isPresent()) { + this.reportingInfrastructure = OptionalNullable.of(reportingInfrastructure.get()); + } else { + this.reportingInfrastructure = OptionalNullable.absent(); + } + return this; + } + + public Builder reportingInfrastructure( + com.auth0.client.mgmt.core.Nullable reportingInfrastructure) { + if (reportingInfrastructure.isNull()) { + this.reportingInfrastructure = OptionalNullable.ofNull(); + } else if (reportingInfrastructure.isEmpty()) { + this.reportingInfrastructure = OptionalNullable.absent(); + } else { + this.reportingInfrastructure = OptionalNullable.of(reportingInfrastructure.get()); + } + return this; + } + + public ContentSecurityPolicyConfig build() { + return new ContentSecurityPolicyConfig(enabled, policies, reportingInfrastructure, 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/CreatePhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java index b365e78e..0117814c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java @@ -21,7 +21,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreatePhoneTemplateResponseContent.Builder.class) public final class CreatePhoneTemplateResponseContent { - private final String id; + private final Optional id; private final Optional channel; @@ -38,7 +38,7 @@ public final class CreatePhoneTemplateResponseContent { private final Map additionalProperties; private CreatePhoneTemplateResponseContent( - String id, + Optional id, Optional channel, Optional customizable, Optional tenant, @@ -57,7 +57,7 @@ private CreatePhoneTemplateResponseContent( } @JsonProperty("id") - public String getId() { + public Optional getId() { return id; } @@ -127,18 +127,14 @@ public String toString() { return ObjectMappers.stringify(this); } - public static IdStage builder() { + public static ContentStage builder() { return new Builder(); } - public interface IdStage { - ContentStage id(@NotNull String id); - - Builder from(CreatePhoneTemplateResponseContent other); - } - public interface ContentStage { TypeStage content(@NotNull PhoneTemplateContent content); + + Builder from(CreatePhoneTemplateResponseContent other); } public interface TypeStage { @@ -159,6 +155,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); + + _FinalStage id(String id); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -173,9 +173,7 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements IdStage, ContentStage, TypeStage, DisabledStage, _FinalStage { - private String id; - + public static final class Builder implements ContentStage, TypeStage, DisabledStage, _FinalStage { private PhoneTemplateContent content; private PhoneTemplateNotificationTypeEnum type; @@ -188,6 +186,8 @@ public static final class Builder implements IdStage, ContentStage, TypeStage, D private Optional channel = Optional.empty(); + private Optional id = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -205,13 +205,6 @@ public Builder from(CreatePhoneTemplateResponseContent other) { return this; } - @java.lang.Override - @JsonSetter("id") - public ContentStage id(@NotNull String id) { - this.id = Objects.requireNonNull(id, "id must not be null"); - return this; - } - @java.lang.Override @JsonSetter("content") public TypeStage content(@NotNull PhoneTemplateContent content) { @@ -277,6 +270,19 @@ public _FinalStage channel(Optional channel) { return this; } + @java.lang.Override + public _FinalStage id(String id) { + this.id = Optional.ofNullable(id); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id", nulls = Nulls.SKIP) + public _FinalStage id(Optional id) { + this.id = id; + return this; + } + @java.lang.Override public CreatePhoneTemplateResponseContent build() { return new CreatePhoneTemplateResponseContent( diff --git a/src/main/java/com/auth0/client/mgmt/types/CspFlag.java b/src/main/java/com/auth0/client/mgmt/types/CspFlag.java new file mode 100644 index 00000000..a24b0a34 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CspFlag.java @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class CspFlag { + public static final CspFlag BLOCK_ALL_MIXED_CONTENT = + new CspFlag(Value.BLOCK_ALL_MIXED_CONTENT, "block-all-mixed-content"); + + public static final CspFlag UPGRADE_INSECURE_REQUESTS = + new CspFlag(Value.UPGRADE_INSECURE_REQUESTS, "upgrade-insecure-requests"); + + private final Value value; + + private final String string; + + CspFlag(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) || (other instanceof CspFlag && this.string.equals(((CspFlag) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BLOCK_ALL_MIXED_CONTENT: + return visitor.visitBlockAllMixedContent(); + case UPGRADE_INSECURE_REQUESTS: + return visitor.visitUpgradeInsecureRequests(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static CspFlag valueOf(String value) { + switch (value) { + case "block-all-mixed-content": + return BLOCK_ALL_MIXED_CONTENT; + case "upgrade-insecure-requests": + return UPGRADE_INSECURE_REQUESTS; + default: + return new CspFlag(Value.UNKNOWN, value); + } + } + + public enum Value { + UPGRADE_INSECURE_REQUESTS, + + BLOCK_ALL_MIXED_CONTENT, + + UNKNOWN + } + + public interface Visitor { + T visitUpgradeInsecureRequests(); + + T visitBlockAllMixedContent(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CspPolicy.java b/src/main/java/com/auth0/client/mgmt/types/CspPolicy.java new file mode 100644 index 00000000..686d3e44 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CspPolicy.java @@ -0,0 +1,213 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CspPolicy.Builder.class) +public final class CspPolicy { + private final Optional mode; + + private final Optional>> directives; + + private final Optional> flags; + + private final OptionalNullable reporting; + + private final Map additionalProperties; + + private CspPolicy( + Optional mode, + Optional>> directives, + Optional> flags, + OptionalNullable reporting, + Map additionalProperties) { + this.mode = mode; + this.directives = directives; + this.flags = flags; + this.reporting = reporting; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("mode") + public Optional getMode() { + return mode; + } + + @JsonProperty("directives") + public Optional>> getDirectives() { + return directives; + } + + @JsonProperty("flags") + public Optional> getFlags() { + return flags; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("reporting") + public OptionalNullable getReporting() { + if (reporting == null) { + return OptionalNullable.absent(); + } + return reporting; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("reporting") + private OptionalNullable _getReporting() { + return reporting; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CspPolicy && equalTo((CspPolicy) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CspPolicy other) { + return mode.equals(other.mode) + && directives.equals(other.directives) + && flags.equals(other.flags) + && reporting.equals(other.reporting); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.mode, this.directives, this.flags, this.reporting); + } + + @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 mode = Optional.empty(); + + private Optional>> directives = Optional.empty(); + + private Optional> flags = Optional.empty(); + + private OptionalNullable reporting = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CspPolicy other) { + mode(other.getMode()); + directives(other.getDirectives()); + flags(other.getFlags()); + reporting(other.getReporting()); + return this; + } + + @JsonSetter(value = "mode", nulls = Nulls.SKIP) + public Builder mode(Optional mode) { + this.mode = mode; + return this; + } + + public Builder mode(CspPolicyMode mode) { + this.mode = Optional.ofNullable(mode); + return this; + } + + @JsonSetter(value = "directives", nulls = Nulls.SKIP) + public Builder directives(Optional>> directives) { + this.directives = directives; + return this; + } + + public Builder directives(Map> directives) { + this.directives = Optional.ofNullable(directives); + return this; + } + + @JsonSetter(value = "flags", nulls = Nulls.SKIP) + public Builder flags(Optional> flags) { + this.flags = flags; + return this; + } + + public Builder flags(List flags) { + this.flags = Optional.ofNullable(flags); + return this; + } + + @JsonSetter(value = "reporting", nulls = Nulls.SKIP) + public Builder reporting(@Nullable OptionalNullable reporting) { + this.reporting = reporting; + return this; + } + + public Builder reporting(CspPolicyReporting reporting) { + this.reporting = OptionalNullable.of(reporting); + return this; + } + + public Builder reporting(Optional reporting) { + if (reporting.isPresent()) { + this.reporting = OptionalNullable.of(reporting.get()); + } else { + this.reporting = OptionalNullable.absent(); + } + return this; + } + + public Builder reporting(com.auth0.client.mgmt.core.Nullable reporting) { + if (reporting.isNull()) { + this.reporting = OptionalNullable.ofNull(); + } else if (reporting.isEmpty()) { + this.reporting = OptionalNullable.absent(); + } else { + this.reporting = OptionalNullable.of(reporting.get()); + } + return this; + } + + public CspPolicy build() { + return new CspPolicy(mode, directives, flags, reporting, 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/BrandingLoginDisplayEnum.java b/src/main/java/com/auth0/client/mgmt/types/CspPolicyMode.java similarity index 53% rename from src/main/java/com/auth0/client/mgmt/types/BrandingLoginDisplayEnum.java rename to src/main/java/com/auth0/client/mgmt/types/CspPolicyMode.java index c5146272..8657b15e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingLoginDisplayEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/CspPolicyMode.java @@ -6,16 +6,16 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class BrandingLoginDisplayEnum { - public static final BrandingLoginDisplayEnum SEPARATE = new BrandingLoginDisplayEnum(Value.SEPARATE, "separate"); +public final class CspPolicyMode { + public static final CspPolicyMode ENFORCING = new CspPolicyMode(Value.ENFORCING, "enforcing"); - public static final BrandingLoginDisplayEnum UNIFIED = new BrandingLoginDisplayEnum(Value.UNIFIED, "unified"); + public static final CspPolicyMode REPORTING = new CspPolicyMode(Value.REPORTING, "reporting"); private final Value value; private final String string; - BrandingLoginDisplayEnum(Value value, String string) { + CspPolicyMode(Value value, String string) { this.value = value; this.string = string; } @@ -33,8 +33,7 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof BrandingLoginDisplayEnum - && this.string.equals(((BrandingLoginDisplayEnum) other).string)); + || (other instanceof CspPolicyMode && this.string.equals(((CspPolicyMode) other).string)); } @java.lang.Override @@ -44,10 +43,10 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case SEPARATE: - return visitor.visitSeparate(); - case UNIFIED: - return visitor.visitUnified(); + case ENFORCING: + return visitor.visitEnforcing(); + case REPORTING: + return visitor.visitReporting(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -55,29 +54,29 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static BrandingLoginDisplayEnum valueOf(String value) { + public static CspPolicyMode valueOf(String value) { switch (value) { - case "separate": - return SEPARATE; - case "unified": - return UNIFIED; + case "enforcing": + return ENFORCING; + case "reporting": + return REPORTING; default: - return new BrandingLoginDisplayEnum(Value.UNKNOWN, value); + return new CspPolicyMode(Value.UNKNOWN, value); } } public enum Value { - UNIFIED, + ENFORCING, - SEPARATE, + REPORTING, UNKNOWN } public interface Visitor { - T visitUnified(); + T visitEnforcing(); - T visitSeparate(); + T visitReporting(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CspPolicyReporting.java b/src/main/java/com/auth0/client/mgmt/types/CspPolicyReporting.java new file mode 100644 index 00000000..157587aa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CspPolicyReporting.java @@ -0,0 +1,140 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.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 = CspPolicyReporting.Builder.class) +public final class CspPolicyReporting { + private final Optional reportUri; + + private final Optional reportToGroup; + + private final Map additionalProperties; + + private CspPolicyReporting( + Optional reportUri, Optional reportToGroup, Map additionalProperties) { + this.reportUri = reportUri; + this.reportToGroup = reportToGroup; + this.additionalProperties = additionalProperties; + } + + /** + * @return HTTPS endpoint for CSP violation reports. + */ + @JsonProperty("report_uri") + public Optional getReportUri() { + return reportUri; + } + + /** + * @return Report-To group name for modern reporting. + */ + @JsonProperty("report_to_group") + public Optional getReportToGroup() { + return reportToGroup; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CspPolicyReporting && equalTo((CspPolicyReporting) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CspPolicyReporting other) { + return reportUri.equals(other.reportUri) && reportToGroup.equals(other.reportToGroup); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.reportUri, this.reportToGroup); + } + + @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 reportUri = Optional.empty(); + + private Optional reportToGroup = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CspPolicyReporting other) { + reportUri(other.getReportUri()); + reportToGroup(other.getReportToGroup()); + return this; + } + + /** + *

HTTPS endpoint for CSP violation reports.

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

Report-To group name for modern reporting.

+ */ + @JsonSetter(value = "report_to_group", nulls = Nulls.SKIP) + public Builder reportToGroup(Optional reportToGroup) { + this.reportToGroup = reportToGroup; + return this; + } + + public Builder reportToGroup(String reportToGroup) { + this.reportToGroup = Optional.ofNullable(reportToGroup); + return this; + } + + public CspPolicyReporting build() { + return new CspPolicyReporting(reportUri, reportToGroup, 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/CspReportTo.java b/src/main/java/com/auth0/client/mgmt/types/CspReportTo.java new file mode 100644 index 00000000..1becc410 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CspReportTo.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CspReportTo.Builder.class) +public final class CspReportTo { + private final Optional group; + + private final Optional maxAge; + + private final Optional> endpoints; + + private final Map additionalProperties; + + private CspReportTo( + Optional group, + Optional maxAge, + Optional> endpoints, + Map additionalProperties) { + this.group = group; + this.maxAge = maxAge; + this.endpoints = endpoints; + this.additionalProperties = additionalProperties; + } + + /** + * @return Reporting group identifier. + */ + @JsonProperty("group") + public Optional getGroup() { + return group; + } + + /** + * @return Maximum age in seconds for the Report-To header. + */ + @JsonProperty("max_age") + public Optional getMaxAge() { + return maxAge; + } + + @JsonProperty("endpoints") + public Optional> getEndpoints() { + return endpoints; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CspReportTo && equalTo((CspReportTo) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CspReportTo other) { + return group.equals(other.group) && maxAge.equals(other.maxAge) && endpoints.equals(other.endpoints); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.group, this.maxAge, this.endpoints); + } + + @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 group = Optional.empty(); + + private Optional maxAge = Optional.empty(); + + private Optional> endpoints = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CspReportTo other) { + group(other.getGroup()); + maxAge(other.getMaxAge()); + endpoints(other.getEndpoints()); + return this; + } + + /** + *

Reporting group identifier.

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

Maximum age in seconds for the Report-To header.

+ */ + @JsonSetter(value = "max_age", nulls = Nulls.SKIP) + public Builder maxAge(Optional maxAge) { + this.maxAge = maxAge; + return this; + } + + public Builder maxAge(Integer maxAge) { + this.maxAge = Optional.ofNullable(maxAge); + return this; + } + + @JsonSetter(value = "endpoints", nulls = Nulls.SKIP) + public Builder endpoints(Optional> endpoints) { + this.endpoints = endpoints; + return this; + } + + public Builder endpoints(List endpoints) { + this.endpoints = Optional.ofNullable(endpoints); + return this; + } + + public CspReportTo build() { + return new CspReportTo(group, maxAge, endpoints, 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/CspReportToEndpoint.java b/src/main/java/com/auth0/client/mgmt/types/CspReportToEndpoint.java new file mode 100644 index 00000000..fd6a0762 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CspReportToEndpoint.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CspReportToEndpoint.Builder.class) +public final class CspReportToEndpoint { + private final Optional url; + + private final Map additionalProperties; + + private CspReportToEndpoint(Optional url, Map additionalProperties) { + this.url = url; + this.additionalProperties = additionalProperties; + } + + /** + * @return HTTPS URL for the reporting endpoint. + */ + @JsonProperty("url") + public Optional getUrl() { + return url; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CspReportToEndpoint && equalTo((CspReportToEndpoint) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CspReportToEndpoint other) { + return url.equals(other.url); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.url); + } + + @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 url = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CspReportToEndpoint other) { + url(other.getUrl()); + return this; + } + + /** + *

HTTPS URL for the reporting endpoint.

+ */ + @JsonSetter(value = "url", nulls = Nulls.SKIP) + public Builder url(Optional url) { + this.url = url; + return this; + } + + public Builder url(String url) { + this.url = Optional.ofNullable(url); + return this; + } + + public CspReportToEndpoint build() { + return new CspReportToEndpoint(url, 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/CspReportingInfrastructure.java b/src/main/java/com/auth0/client/mgmt/types/CspReportingInfrastructure.java new file mode 100644 index 00000000..c85c1ba6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CspReportingInfrastructure.java @@ -0,0 +1,163 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CspReportingInfrastructure.Builder.class) +public final class CspReportingInfrastructure { + private final OptionalNullable reportTo; + + private final Optional> reportingEndpoints; + + private final Map additionalProperties; + + private CspReportingInfrastructure( + OptionalNullable reportTo, + Optional> reportingEndpoints, + Map additionalProperties) { + this.reportTo = reportTo; + this.reportingEndpoints = reportingEndpoints; + this.additionalProperties = additionalProperties; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("report_to") + public OptionalNullable getReportTo() { + if (reportTo == null) { + return OptionalNullable.absent(); + } + return reportTo; + } + + @JsonProperty("reporting_endpoints") + public Optional> getReportingEndpoints() { + return reportingEndpoints; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("report_to") + private OptionalNullable _getReportTo() { + return reportTo; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CspReportingInfrastructure && equalTo((CspReportingInfrastructure) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CspReportingInfrastructure other) { + return reportTo.equals(other.reportTo) && reportingEndpoints.equals(other.reportingEndpoints); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.reportTo, this.reportingEndpoints); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private OptionalNullable reportTo = OptionalNullable.absent(); + + private Optional> reportingEndpoints = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CspReportingInfrastructure other) { + reportTo(other.getReportTo()); + reportingEndpoints(other.getReportingEndpoints()); + return this; + } + + @JsonSetter(value = "report_to", nulls = Nulls.SKIP) + public Builder reportTo(@Nullable OptionalNullable reportTo) { + this.reportTo = reportTo; + return this; + } + + public Builder reportTo(CspReportTo reportTo) { + this.reportTo = OptionalNullable.of(reportTo); + return this; + } + + public Builder reportTo(Optional reportTo) { + if (reportTo.isPresent()) { + this.reportTo = OptionalNullable.of(reportTo.get()); + } else { + this.reportTo = OptionalNullable.absent(); + } + return this; + } + + public Builder reportTo(com.auth0.client.mgmt.core.Nullable reportTo) { + if (reportTo.isNull()) { + this.reportTo = OptionalNullable.ofNull(); + } else if (reportTo.isEmpty()) { + this.reportTo = OptionalNullable.absent(); + } else { + this.reportTo = OptionalNullable.of(reportTo.get()); + } + return this; + } + + @JsonSetter(value = "reporting_endpoints", nulls = Nulls.SKIP) + public Builder reportingEndpoints(Optional> reportingEndpoints) { + this.reportingEndpoints = reportingEndpoints; + return this; + } + + public Builder reportingEndpoints(Map reportingEndpoints) { + this.reportingEndpoints = Optional.ofNullable(reportingEndpoints); + return this; + } + + public CspReportingInfrastructure build() { + return new CspReportingInfrastructure(reportTo, reportingEndpoints, 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/GetBrandingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java index e3908581..4e25135b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java @@ -26,8 +26,6 @@ public final class GetBrandingResponseContent { private final Optional logoUrl; - private final Optional identifiers; - private final Optional font; private final Map additionalProperties; @@ -36,13 +34,11 @@ private GetBrandingResponseContent( Optional colors, Optional faviconUrl, Optional logoUrl, - Optional identifiers, Optional font, Map additionalProperties) { this.colors = colors; this.faviconUrl = faviconUrl; this.logoUrl = logoUrl; - this.identifiers = identifiers; this.font = font; this.additionalProperties = additionalProperties; } @@ -68,11 +64,6 @@ public Optional getLogoUrl() { return logoUrl; } - @JsonProperty("identifiers") - public Optional getIdentifiers() { - return identifiers; - } - @JsonProperty("font") public Optional getFont() { return font; @@ -93,13 +84,12 @@ private boolean equalTo(GetBrandingResponseContent other) { return colors.equals(other.colors) && faviconUrl.equals(other.faviconUrl) && logoUrl.equals(other.logoUrl) - && identifiers.equals(other.identifiers) && font.equals(other.font); } @java.lang.Override public int hashCode() { - return Objects.hash(this.colors, this.faviconUrl, this.logoUrl, this.identifiers, this.font); + return Objects.hash(this.colors, this.faviconUrl, this.logoUrl, this.font); } @java.lang.Override @@ -119,8 +109,6 @@ public static final class Builder { private Optional logoUrl = Optional.empty(); - private Optional identifiers = Optional.empty(); - private Optional font = Optional.empty(); @JsonAnySetter @@ -132,7 +120,6 @@ public Builder from(GetBrandingResponseContent other) { colors(other.getColors()); faviconUrl(other.getFaviconUrl()); logoUrl(other.getLogoUrl()); - identifiers(other.getIdentifiers()); font(other.getFont()); return this; } @@ -176,17 +163,6 @@ public Builder logoUrl(String logoUrl) { return this; } - @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) - public Builder identifiers(Optional identifiers) { - this.identifiers = identifiers; - return this; - } - - public Builder identifiers(BrandingIdentifiers identifiers) { - this.identifiers = Optional.ofNullable(identifiers); - return this; - } - @JsonSetter(value = "font", nulls = Nulls.SKIP) public Builder font(Optional font) { this.font = font; @@ -199,7 +175,7 @@ public Builder font(BrandingFont font) { } public GetBrandingResponseContent build() { - return new GetBrandingResponseContent(colors, faviconUrl, logoUrl, identifiers, font, additionalProperties); + return new GetBrandingResponseContent(colors, faviconUrl, logoUrl, font, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java index 0e34bb06..1220fbf5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java @@ -21,7 +21,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetPhoneTemplateResponseContent.Builder.class) public final class GetPhoneTemplateResponseContent { - private final String id; + private final Optional id; private final Optional channel; @@ -38,7 +38,7 @@ public final class GetPhoneTemplateResponseContent { private final Map additionalProperties; private GetPhoneTemplateResponseContent( - String id, + Optional id, Optional channel, Optional customizable, Optional tenant, @@ -57,7 +57,7 @@ private GetPhoneTemplateResponseContent( } @JsonProperty("id") - public String getId() { + public Optional getId() { return id; } @@ -126,18 +126,14 @@ public String toString() { return ObjectMappers.stringify(this); } - public static IdStage builder() { + public static ContentStage builder() { return new Builder(); } - public interface IdStage { - ContentStage id(@NotNull String id); - - Builder from(GetPhoneTemplateResponseContent other); - } - public interface ContentStage { TypeStage content(@NotNull PhoneTemplateContent content); + + Builder from(GetPhoneTemplateResponseContent other); } public interface TypeStage { @@ -158,6 +154,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); + + _FinalStage id(String id); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -172,9 +172,7 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements IdStage, ContentStage, TypeStage, DisabledStage, _FinalStage { - private String id; - + public static final class Builder implements ContentStage, TypeStage, DisabledStage, _FinalStage { private PhoneTemplateContent content; private PhoneTemplateNotificationTypeEnum type; @@ -187,6 +185,8 @@ public static final class Builder implements IdStage, ContentStage, TypeStage, D private Optional channel = Optional.empty(); + private Optional id = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -204,13 +204,6 @@ public Builder from(GetPhoneTemplateResponseContent other) { return this; } - @java.lang.Override - @JsonSetter("id") - public ContentStage id(@NotNull String id) { - this.id = Objects.requireNonNull(id, "id must not be null"); - return this; - } - @java.lang.Override @JsonSetter("content") public TypeStage content(@NotNull PhoneTemplateContent content) { @@ -276,6 +269,19 @@ public _FinalStage channel(Optional channel) { return this; } + @java.lang.Override + public _FinalStage id(String id) { + this.id = Optional.ofNullable(id); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id", nulls = Nulls.SKIP) + public _FinalStage id(Optional id) { + this.id = id; + return this; + } + @java.lang.Override public GetPhoneTemplateResponseContent build() { return new GetPhoneTemplateResponseContent( diff --git a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java index 73d2e9ab..b731d4b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java @@ -68,6 +68,8 @@ public final class GetTenantSettingsResponseContent { private final Optional> enabledLocales; + private final OptionalNullable securityHeaders; + private final OptionalNullable sessionCookie; private final OptionalNullable sessions; @@ -96,6 +98,8 @@ public final class GetTenantSettingsResponseContent { private final Optional enableAiGuide; + private final Optional includeSessionMetadataInTenantLogs; + private final Optional dynamicClientRegistrationSecurityMode; private final Optional countryCodes; @@ -125,6 +129,7 @@ private GetTenantSettingsResponseContent( Optional> sandboxVersionsAvailable, Optional defaultRedirectionUri, Optional> enabledLocales, + OptionalNullable securityHeaders, OptionalNullable sessionCookie, OptionalNullable sessions, Optional oidcLogout, @@ -139,6 +144,7 @@ private GetTenantSettingsResponseContent( Optional clientIdMetadataDocumentSupported, Optional phoneConsolidatedExperience, Optional enableAiGuide, + Optional includeSessionMetadataInTenantLogs, Optional dynamicClientRegistrationSecurityMode, Optional countryCodes, Map additionalProperties) { @@ -164,6 +170,7 @@ private GetTenantSettingsResponseContent( this.sandboxVersionsAvailable = sandboxVersionsAvailable; this.defaultRedirectionUri = defaultRedirectionUri; this.enabledLocales = enabledLocales; + this.securityHeaders = securityHeaders; this.sessionCookie = sessionCookie; this.sessions = sessions; this.oidcLogout = oidcLogout; @@ -178,6 +185,7 @@ private GetTenantSettingsResponseContent( this.clientIdMetadataDocumentSupported = clientIdMetadataDocumentSupported; this.phoneConsolidatedExperience = phoneConsolidatedExperience; this.enableAiGuide = enableAiGuide; + this.includeSessionMetadataInTenantLogs = includeSessionMetadataInTenantLogs; this.dynamicClientRegistrationSecurityMode = dynamicClientRegistrationSecurityMode; this.countryCodes = countryCodes; this.additionalProperties = additionalProperties; @@ -361,6 +369,15 @@ public Optional> getEnabledLocales() { return enabledLocales; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("security_headers") + public OptionalNullable getSecurityHeaders() { + if (securityHeaders == null) { + return OptionalNullable.absent(); + } + return securityHeaders; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_cookie") public OptionalNullable getSessionCookie() { @@ -484,6 +501,14 @@ public Optional getEnableAiGuide() { return enableAiGuide; } + /** + * @return Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). + */ + @JsonProperty("include_session_metadata_in_tenant_logs") + public Optional getIncludeSessionMetadataInTenantLogs() { + return includeSessionMetadataInTenantLogs; + } + @JsonProperty("dynamic_client_registration_security_mode") public Optional getDynamicClientRegistrationSecurityMode() { return dynamicClientRegistrationSecurityMode; @@ -524,6 +549,12 @@ private OptionalNullable _getDefaultTokenQuota() { return defaultTokenQuota; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("security_headers") + private OptionalNullable _getSecurityHeaders() { + return securityHeaders; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_cookie") private OptionalNullable _getSessionCookie() { @@ -594,6 +625,7 @@ private boolean equalTo(GetTenantSettingsResponseContent other) { && sandboxVersionsAvailable.equals(other.sandboxVersionsAvailable) && defaultRedirectionUri.equals(other.defaultRedirectionUri) && enabledLocales.equals(other.enabledLocales) + && securityHeaders.equals(other.securityHeaders) && sessionCookie.equals(other.sessionCookie) && sessions.equals(other.sessions) && oidcLogout.equals(other.oidcLogout) @@ -609,6 +641,7 @@ private boolean equalTo(GetTenantSettingsResponseContent other) { && clientIdMetadataDocumentSupported.equals(other.clientIdMetadataDocumentSupported) && phoneConsolidatedExperience.equals(other.phoneConsolidatedExperience) && enableAiGuide.equals(other.enableAiGuide) + && includeSessionMetadataInTenantLogs.equals(other.includeSessionMetadataInTenantLogs) && dynamicClientRegistrationSecurityMode.equals(other.dynamicClientRegistrationSecurityMode) && countryCodes.equals(other.countryCodes); } @@ -638,6 +671,7 @@ public int hashCode() { this.sandboxVersionsAvailable, this.defaultRedirectionUri, this.enabledLocales, + this.securityHeaders, this.sessionCookie, this.sessions, this.oidcLogout, @@ -652,6 +686,7 @@ public int hashCode() { this.clientIdMetadataDocumentSupported, this.phoneConsolidatedExperience, this.enableAiGuide, + this.includeSessionMetadataInTenantLogs, this.dynamicClientRegistrationSecurityMode, this.countryCodes); } @@ -711,6 +746,8 @@ public static final class Builder { private Optional> enabledLocales = Optional.empty(); + private OptionalNullable securityHeaders = OptionalNullable.absent(); + private OptionalNullable sessionCookie = OptionalNullable.absent(); private OptionalNullable sessions = OptionalNullable.absent(); @@ -739,6 +776,8 @@ public static final class Builder { private Optional enableAiGuide = Optional.empty(); + private Optional includeSessionMetadataInTenantLogs = Optional.empty(); + private Optional dynamicClientRegistrationSecurityMode = Optional.empty(); @@ -772,6 +811,7 @@ public Builder from(GetTenantSettingsResponseContent other) { sandboxVersionsAvailable(other.getSandboxVersionsAvailable()); defaultRedirectionUri(other.getDefaultRedirectionUri()); enabledLocales(other.getEnabledLocales()); + securityHeaders(other.getSecurityHeaders()); sessionCookie(other.getSessionCookie()); sessions(other.getSessions()); oidcLogout(other.getOidcLogout()); @@ -786,6 +826,7 @@ public Builder from(GetTenantSettingsResponseContent other) { clientIdMetadataDocumentSupported(other.getClientIdMetadataDocumentSupported()); phoneConsolidatedExperience(other.getPhoneConsolidatedExperience()); enableAiGuide(other.getEnableAiGuide()); + includeSessionMetadataInTenantLogs(other.getIncludeSessionMetadataInTenantLogs()); dynamicClientRegistrationSecurityMode(other.getDynamicClientRegistrationSecurityMode()); countryCodes(other.getCountryCodes()); return this; @@ -1182,6 +1223,39 @@ public Builder enabledLocales(List enabledLocales) { return this; } + @JsonSetter(value = "security_headers", nulls = Nulls.SKIP) + public Builder securityHeaders( + @Nullable OptionalNullable securityHeaders) { + this.securityHeaders = securityHeaders; + return this; + } + + public Builder securityHeaders(TenantSettingsNullableSecurityHeaders securityHeaders) { + this.securityHeaders = OptionalNullable.of(securityHeaders); + return this; + } + + public Builder securityHeaders(Optional securityHeaders) { + if (securityHeaders.isPresent()) { + this.securityHeaders = OptionalNullable.of(securityHeaders.get()); + } else { + this.securityHeaders = OptionalNullable.absent(); + } + return this; + } + + public Builder securityHeaders( + com.auth0.client.mgmt.core.Nullable securityHeaders) { + if (securityHeaders.isNull()) { + this.securityHeaders = OptionalNullable.ofNull(); + } else if (securityHeaders.isEmpty()) { + this.securityHeaders = OptionalNullable.absent(); + } else { + this.securityHeaders = OptionalNullable.of(securityHeaders.get()); + } + return this; + } + @JsonSetter(value = "session_cookie", nulls = Nulls.SKIP) public Builder sessionCookie(@Nullable OptionalNullable sessionCookie) { this.sessionCookie = sessionCookie; @@ -1501,6 +1575,20 @@ public Builder enableAiGuide(Boolean enableAiGuide) { return this; } + /** + *

Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded).

+ */ + @JsonSetter(value = "include_session_metadata_in_tenant_logs", nulls = Nulls.SKIP) + public Builder includeSessionMetadataInTenantLogs(Optional includeSessionMetadataInTenantLogs) { + this.includeSessionMetadataInTenantLogs = includeSessionMetadataInTenantLogs; + return this; + } + + public Builder includeSessionMetadataInTenantLogs(Boolean includeSessionMetadataInTenantLogs) { + this.includeSessionMetadataInTenantLogs = Optional.ofNullable(includeSessionMetadataInTenantLogs); + return this; + } + @JsonSetter(value = "dynamic_client_registration_security_mode", nulls = Nulls.SKIP) public Builder dynamicClientRegistrationSecurityMode( Optional dynamicClientRegistrationSecurityMode) { @@ -1549,6 +1637,7 @@ public GetTenantSettingsResponseContent build() { sandboxVersionsAvailable, defaultRedirectionUri, enabledLocales, + securityHeaders, sessionCookie, sessions, oidcLogout, @@ -1563,6 +1652,7 @@ public GetTenantSettingsResponseContent build() { clientIdMetadataDocumentSupported, phoneConsolidatedExperience, enableAiGuide, + includeSessionMetadataInTenantLogs, dynamicClientRegistrationSecurityMode, countryCodes, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java index 0d8fd2a4..6aa13b97 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java @@ -25,6 +25,8 @@ public interface IConnectionOptionsCommonOidc { Optional getIconUrl(); + Optional getIdTokenSessionExpirySupported(); + OptionalNullable> getIdTokenSignedResponseAlgs(); Optional getIssuer(); diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java index 3dc98978..b6ae4bb2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java @@ -47,7 +47,7 @@ public PatchRateLimitPolicyConfigurationRequestContentActionAction getAction() { } /** - * @return The maximum number of requests allowed in a single refresh window. + * @return The maximum number of requests allowed per second. */ @JsonProperty("limit") public int getLimit() { @@ -103,7 +103,7 @@ public interface ActionStage { public interface LimitStage { /** - *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

*/ RedirectUriStage limit(int limit); } @@ -157,8 +157,8 @@ public LimitStage action(@NotNull PatchRateLimitPolicyConfigurationRequestConten } /** - *

The maximum number of requests allowed in a single refresh window.

- *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

+ *

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java index 820af226..2bf8ae27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java @@ -43,7 +43,7 @@ public PatchRateLimitPolicyConfigurationRequestContentOneAction getAction() { } /** - * @return The maximum number of requests allowed in a single refresh window. + * @return The maximum number of requests allowed per second. */ @JsonProperty("limit") public int getLimit() { @@ -91,7 +91,7 @@ public interface ActionStage { public interface LimitStage { /** - *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

*/ _FinalStage limit(int limit); } @@ -135,8 +135,8 @@ public LimitStage action(@NotNull PatchRateLimitPolicyConfigurationRequestConten } /** - *

The maximum number of requests allowed in a single refresh window.

- *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

+ *

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java index 6c24726f..3a819661 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java @@ -21,7 +21,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PhoneTemplate.Builder.class) public final class PhoneTemplate { - private final String id; + private final Optional id; private final Optional channel; @@ -38,7 +38,7 @@ public final class PhoneTemplate { private final Map additionalProperties; private PhoneTemplate( - String id, + Optional id, Optional channel, Optional customizable, Optional tenant, @@ -57,7 +57,7 @@ private PhoneTemplate( } @JsonProperty("id") - public String getId() { + public Optional getId() { return id; } @@ -126,18 +126,14 @@ public String toString() { return ObjectMappers.stringify(this); } - public static IdStage builder() { + public static ContentStage builder() { return new Builder(); } - public interface IdStage { - ContentStage id(@NotNull String id); - - Builder from(PhoneTemplate other); - } - public interface ContentStage { TypeStage content(@NotNull PhoneTemplateContent content); + + Builder from(PhoneTemplate other); } public interface TypeStage { @@ -158,6 +154,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); + + _FinalStage id(String id); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -172,9 +172,7 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements IdStage, ContentStage, TypeStage, DisabledStage, _FinalStage { - private String id; - + public static final class Builder implements ContentStage, TypeStage, DisabledStage, _FinalStage { private PhoneTemplateContent content; private PhoneTemplateNotificationTypeEnum type; @@ -187,6 +185,8 @@ public static final class Builder implements IdStage, ContentStage, TypeStage, D private Optional channel = Optional.empty(); + private Optional id = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -204,13 +204,6 @@ public Builder from(PhoneTemplate other) { return this; } - @java.lang.Override - @JsonSetter("id") - public ContentStage id(@NotNull String id) { - this.id = Objects.requireNonNull(id, "id must not be null"); - return this; - } - @java.lang.Override @JsonSetter("content") public TypeStage content(@NotNull PhoneTemplateContent content) { @@ -276,6 +269,19 @@ public _FinalStage channel(Optional channel) { return this; } + @java.lang.Override + public _FinalStage id(String id) { + this.id = Optional.ofNullable(id); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id", nulls = Nulls.SKIP) + public _FinalStage id(Optional id) { + this.id = id; + return this; + } + @java.lang.Override public PhoneTemplate build() { return new PhoneTemplate(id, channel, customizable, tenant, content, type, disabled, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/PromptGroupNameEnum.java b/src/main/java/com/auth0/client/mgmt/types/PromptGroupNameEnum.java index 705e62ea..cd98861e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PromptGroupNameEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/PromptGroupNameEnum.java @@ -53,6 +53,8 @@ public final class PromptGroupNameEnum { public static final PromptGroupNameEnum ORGANIZATIONS = new PromptGroupNameEnum(Value.ORGANIZATIONS, "organizations"); + public static final PromptGroupNameEnum CONFIRMATION = new PromptGroupNameEnum(Value.CONFIRMATION, "confirmation"); + public static final PromptGroupNameEnum STATUS = new PromptGroupNameEnum(Value.STATUS, "status"); public static final PromptGroupNameEnum EMAIL_OTP_CHALLENGE = @@ -164,6 +166,8 @@ public T visit(Visitor visitor) { return visitor.visitLoginPassword(); case ORGANIZATIONS: return visitor.visitOrganizations(); + case CONFIRMATION: + return visitor.visitConfirmation(); case STATUS: return visitor.visitStatus(); case EMAIL_OTP_CHALLENGE: @@ -245,6 +249,8 @@ public static PromptGroupNameEnum valueOf(String value) { return LOGIN_PASSWORD; case "organizations": return ORGANIZATIONS; + case "confirmation": + return CONFIRMATION; case "status": return STATUS; case "email-otp-challenge": @@ -357,6 +363,8 @@ public enum Value { ASYNC_APPROVAL_FLOW, + CONFIRMATION, + UNKNOWN } @@ -433,6 +441,8 @@ public interface Visitor { T visitAsyncApprovalFlow(); + T visitConfirmation(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java index 1b06ebc0..dfc98e81 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java @@ -47,7 +47,7 @@ public RateLimitPolicyConfigurationActionAction getAction() { } /** - * @return The maximum number of requests allowed in a single refresh window. + * @return The maximum number of requests allowed per second. */ @JsonProperty("limit") public int getLimit() { @@ -103,7 +103,7 @@ public interface ActionStage { public interface LimitStage { /** - *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

*/ RedirectUriStage limit(int limit); } @@ -157,8 +157,8 @@ public LimitStage action(@NotNull RateLimitPolicyConfigurationActionAction actio } /** - *

The maximum number of requests allowed in a single refresh window.

- *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

+ *

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java index c5f79ba8..de108c7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java @@ -41,7 +41,7 @@ public RateLimitPolicyConfigurationOneAction getAction() { } /** - * @return The maximum number of requests allowed in a single refresh window. + * @return The maximum number of requests allowed per second. */ @JsonProperty("limit") public int getLimit() { @@ -88,7 +88,7 @@ public interface ActionStage { public interface LimitStage { /** - *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

*/ _FinalStage limit(int limit); } @@ -132,8 +132,8 @@ public LimitStage action(@NotNull RateLimitPolicyConfigurationOneAction action) } /** - *

The maximum number of requests allowed in a single refresh window.

- *

The maximum number of requests allowed in a single refresh window.

+ *

The maximum number of requests allowed per second.

+ *

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java index 4e8a71ac..96ca09e2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java @@ -21,7 +21,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ResetPhoneTemplateResponseContent.Builder.class) public final class ResetPhoneTemplateResponseContent { - private final String id; + private final Optional id; private final Optional channel; @@ -38,7 +38,7 @@ public final class ResetPhoneTemplateResponseContent { private final Map additionalProperties; private ResetPhoneTemplateResponseContent( - String id, + Optional id, Optional channel, Optional customizable, Optional tenant, @@ -57,7 +57,7 @@ private ResetPhoneTemplateResponseContent( } @JsonProperty("id") - public String getId() { + public Optional getId() { return id; } @@ -126,18 +126,14 @@ public String toString() { return ObjectMappers.stringify(this); } - public static IdStage builder() { + public static ContentStage builder() { return new Builder(); } - public interface IdStage { - ContentStage id(@NotNull String id); - - Builder from(ResetPhoneTemplateResponseContent other); - } - public interface ContentStage { TypeStage content(@NotNull PhoneTemplateContent content); + + Builder from(ResetPhoneTemplateResponseContent other); } public interface TypeStage { @@ -158,6 +154,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); + + _FinalStage id(String id); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -172,9 +172,7 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements IdStage, ContentStage, TypeStage, DisabledStage, _FinalStage { - private String id; - + public static final class Builder implements ContentStage, TypeStage, DisabledStage, _FinalStage { private PhoneTemplateContent content; private PhoneTemplateNotificationTypeEnum type; @@ -187,6 +185,8 @@ public static final class Builder implements IdStage, ContentStage, TypeStage, D private Optional channel = Optional.empty(); + private Optional id = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -204,13 +204,6 @@ public Builder from(ResetPhoneTemplateResponseContent other) { return this; } - @java.lang.Override - @JsonSetter("id") - public ContentStage id(@NotNull String id) { - this.id = Objects.requireNonNull(id, "id must not be null"); - return this; - } - @java.lang.Override @JsonSetter("content") public TypeStage content(@NotNull PhoneTemplateContent content) { @@ -276,6 +269,19 @@ public _FinalStage channel(Optional channel) { return this; } + @java.lang.Override + public _FinalStage id(String id) { + this.id = Optional.ofNullable(id); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id", nulls = Nulls.SKIP) + public _FinalStage id(Optional id) { + this.id = id; + return this; + } + @java.lang.Override public ResetPhoneTemplateResponseContent build() { return new ResetPhoneTemplateResponseContent( diff --git a/src/main/java/com/auth0/client/mgmt/types/RevokeRefreshTokensRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RevokeRefreshTokensRequestContent.java index 35ff8c9e..97f7eef1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RevokeRefreshTokensRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RevokeRefreshTokensRequestContent.java @@ -61,7 +61,7 @@ public Optional getUserId() { } /** - * @return Revoke all refresh tokens for this client. + * @return Revoke refresh tokens for this client. Must be paired with user_id; optionally narrowed further with audience. */ @JsonProperty("client_id") public Optional getClientId() { @@ -160,7 +160,7 @@ public Builder userId(String userId) { } /** - *

Revoke all refresh tokens for this client.

+ *

Revoke refresh tokens for this client. Must be paired with user_id; optionally narrowed further with audience.

*/ @JsonSetter(value = "client_id", nulls = Nulls.SKIP) public Builder clientId(Optional clientId) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java b/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java index a0d72482..a8b6941c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScreenGroupNameEnum.java @@ -69,6 +69,8 @@ public final class ScreenGroupNameEnum { public static final ScreenGroupNameEnum MFA_VOICE_CHALLENGE = new ScreenGroupNameEnum(Value.MFA_VOICE_CHALLENGE, "mfa-voice-challenge"); + public static final ScreenGroupNameEnum CONFIRMATION = new ScreenGroupNameEnum(Value.CONFIRMATION, "confirmation"); + public static final ScreenGroupNameEnum MFA_PUSH_ENROLLMENT_CODE = new ScreenGroupNameEnum(Value.MFA_PUSH_ENROLLMENT_CODE, "mfa-push-enrollment-code"); @@ -341,6 +343,8 @@ public T visit(Visitor visitor) { return visitor.visitPasskeyEnrollmentLocal(); case MFA_VOICE_CHALLENGE: return visitor.visitMfaVoiceChallenge(); + case CONFIRMATION: + return visitor.visitConfirmation(); case MFA_PUSH_ENROLLMENT_CODE: return visitor.visitMfaPushEnrollmentCode(); case MFA_WEBAUTHN_ROAMING_CHALLENGE: @@ -528,6 +532,8 @@ public static ScreenGroupNameEnum valueOf(String value) { return PASSKEY_ENROLLMENT_LOCAL; case "mfa-voice-challenge": return MFA_VOICE_CHALLENGE; + case "confirmation": + return CONFIRMATION; case "mfa-push-enrollment-code": return MFA_PUSH_ENROLLMENT_CODE; case "mfa-webauthn-roaming-challenge": @@ -844,6 +850,8 @@ public enum Value { ASYNC_APPROVAL_DENIED, + CONFIRMATION, + ASYNC_APPROVAL_WRONG_USER, UNKNOWN @@ -1026,6 +1034,8 @@ public interface Visitor { T visitAsyncApprovalDenied(); + T visitConfirmation(); + T visitAsyncApprovalWrongUser(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsNullableSecurityHeaders.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsNullableSecurityHeaders.java new file mode 100644 index 00000000..fd68f887 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsNullableSecurityHeaders.java @@ -0,0 +1,197 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = TenantSettingsNullableSecurityHeaders.Builder.class) +public final class TenantSettingsNullableSecurityHeaders { + private final OptionalNullable contentSecurityPolicy; + + private final OptionalNullable xXssProtection; + + private final Map additionalProperties; + + private TenantSettingsNullableSecurityHeaders( + OptionalNullable contentSecurityPolicy, + OptionalNullable xXssProtection, + Map additionalProperties) { + this.contentSecurityPolicy = contentSecurityPolicy; + this.xXssProtection = xXssProtection; + this.additionalProperties = additionalProperties; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("content_security_policy") + public OptionalNullable getContentSecurityPolicy() { + if (contentSecurityPolicy == null) { + return OptionalNullable.absent(); + } + return contentSecurityPolicy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("x_xss_protection") + public OptionalNullable getXXssProtection() { + if (xXssProtection == null) { + return OptionalNullable.absent(); + } + return xXssProtection; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("content_security_policy") + private OptionalNullable _getContentSecurityPolicy() { + return contentSecurityPolicy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("x_xss_protection") + private OptionalNullable _getXXssProtection() { + return xXssProtection; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TenantSettingsNullableSecurityHeaders + && equalTo((TenantSettingsNullableSecurityHeaders) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(TenantSettingsNullableSecurityHeaders other) { + return contentSecurityPolicy.equals(other.contentSecurityPolicy) && xXssProtection.equals(other.xXssProtection); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.contentSecurityPolicy, this.xXssProtection); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private OptionalNullable contentSecurityPolicy = OptionalNullable.absent(); + + private OptionalNullable xXssProtection = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(TenantSettingsNullableSecurityHeaders other) { + contentSecurityPolicy(other.getContentSecurityPolicy()); + xXssProtection(other.getXXssProtection()); + return this; + } + + @JsonSetter(value = "content_security_policy", nulls = Nulls.SKIP) + public Builder contentSecurityPolicy( + @Nullable OptionalNullable contentSecurityPolicy) { + this.contentSecurityPolicy = contentSecurityPolicy; + return this; + } + + public Builder contentSecurityPolicy(ContentSecurityPolicyConfig contentSecurityPolicy) { + this.contentSecurityPolicy = OptionalNullable.of(contentSecurityPolicy); + return this; + } + + public Builder contentSecurityPolicy(Optional contentSecurityPolicy) { + if (contentSecurityPolicy.isPresent()) { + this.contentSecurityPolicy = OptionalNullable.of(contentSecurityPolicy.get()); + } else { + this.contentSecurityPolicy = OptionalNullable.absent(); + } + return this; + } + + public Builder contentSecurityPolicy( + com.auth0.client.mgmt.core.Nullable contentSecurityPolicy) { + if (contentSecurityPolicy.isNull()) { + this.contentSecurityPolicy = OptionalNullable.ofNull(); + } else if (contentSecurityPolicy.isEmpty()) { + this.contentSecurityPolicy = OptionalNullable.absent(); + } else { + this.contentSecurityPolicy = OptionalNullable.of(contentSecurityPolicy.get()); + } + return this; + } + + @JsonSetter(value = "x_xss_protection", nulls = Nulls.SKIP) + public Builder xXssProtection(@Nullable OptionalNullable xXssProtection) { + this.xXssProtection = xXssProtection; + return this; + } + + public Builder xXssProtection(XssProtectionConfig xXssProtection) { + this.xXssProtection = OptionalNullable.of(xXssProtection); + return this; + } + + public Builder xXssProtection(Optional xXssProtection) { + if (xXssProtection.isPresent()) { + this.xXssProtection = OptionalNullable.of(xXssProtection.get()); + } else { + this.xXssProtection = OptionalNullable.absent(); + } + return this; + } + + public Builder xXssProtection(com.auth0.client.mgmt.core.Nullable xXssProtection) { + if (xXssProtection.isNull()) { + this.xXssProtection = OptionalNullable.ofNull(); + } else if (xXssProtection.isEmpty()) { + this.xXssProtection = OptionalNullable.absent(); + } else { + this.xXssProtection = OptionalNullable.of(xXssProtection.get()); + } + return this; + } + + public TenantSettingsNullableSecurityHeaders build() { + return new TenantSettingsNullableSecurityHeaders( + contentSecurityPolicy, xXssProtection, 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/UpdateBrandingIdentifiers.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingIdentifiers.java deleted file mode 100644 index ec8bb0e9..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingIdentifiers.java +++ /dev/null @@ -1,194 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.NullableNonemptyFilter; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSetter; -import com.fasterxml.jackson.annotation.Nulls; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import org.jetbrains.annotations.Nullable; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = UpdateBrandingIdentifiers.Builder.class) -public final class UpdateBrandingIdentifiers { - private final Optional loginDisplay; - - private final Optional otpAutocomplete; - - private final OptionalNullable phoneDisplay; - - private final Map additionalProperties; - - private UpdateBrandingIdentifiers( - Optional loginDisplay, - Optional otpAutocomplete, - OptionalNullable phoneDisplay, - Map additionalProperties) { - this.loginDisplay = loginDisplay; - this.otpAutocomplete = otpAutocomplete; - this.phoneDisplay = phoneDisplay; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("login_display") - public Optional getLoginDisplay() { - return loginDisplay; - } - - /** - * @return Whether OTP autocomplete (autocomplete="one-time-code") is enabled. - */ - @JsonProperty("otp_autocomplete") - public Optional getOtpAutocomplete() { - return otpAutocomplete; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("phone_display") - public OptionalNullable getPhoneDisplay() { - if (phoneDisplay == null) { - return OptionalNullable.absent(); - } - return phoneDisplay; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("phone_display") - private OptionalNullable _getPhoneDisplay() { - return phoneDisplay; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof UpdateBrandingIdentifiers && equalTo((UpdateBrandingIdentifiers) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(UpdateBrandingIdentifiers other) { - return loginDisplay.equals(other.loginDisplay) - && otpAutocomplete.equals(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 Builder builder() { - return new Builder(); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional loginDisplay = Optional.empty(); - - private Optional otpAutocomplete = Optional.empty(); - - private OptionalNullable phoneDisplay = OptionalNullable.absent(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(UpdateBrandingIdentifiers other) { - loginDisplay(other.getLoginDisplay()); - otpAutocomplete(other.getOtpAutocomplete()); - phoneDisplay(other.getPhoneDisplay()); - return this; - } - - @JsonSetter(value = "login_display", nulls = Nulls.SKIP) - public Builder loginDisplay(Optional loginDisplay) { - this.loginDisplay = loginDisplay; - return this; - } - - public Builder loginDisplay(UpdateBrandingLoginDisplayEnum loginDisplay) { - this.loginDisplay = Optional.ofNullable(loginDisplay); - return this; - } - - /** - *

Whether OTP autocomplete (autocomplete="one-time-code") is enabled.

- */ - @JsonSetter(value = "otp_autocomplete", nulls = Nulls.SKIP) - public Builder otpAutocomplete(Optional otpAutocomplete) { - this.otpAutocomplete = otpAutocomplete; - return this; - } - - public Builder otpAutocomplete(Boolean otpAutocomplete) { - this.otpAutocomplete = Optional.ofNullable(otpAutocomplete); - return this; - } - - @JsonSetter(value = "phone_display", nulls = Nulls.SKIP) - public Builder phoneDisplay(@Nullable OptionalNullable phoneDisplay) { - this.phoneDisplay = phoneDisplay; - return this; - } - - public Builder phoneDisplay(UpdateBrandingPhoneDisplay phoneDisplay) { - this.phoneDisplay = OptionalNullable.of(phoneDisplay); - return this; - } - - public Builder phoneDisplay(Optional phoneDisplay) { - if (phoneDisplay.isPresent()) { - this.phoneDisplay = OptionalNullable.of(phoneDisplay.get()); - } else { - this.phoneDisplay = OptionalNullable.absent(); - } - return this; - } - - public Builder phoneDisplay(com.auth0.client.mgmt.core.Nullable phoneDisplay) { - if (phoneDisplay.isNull()) { - this.phoneDisplay = OptionalNullable.ofNull(); - } else if (phoneDisplay.isEmpty()) { - this.phoneDisplay = OptionalNullable.absent(); - } else { - this.phoneDisplay = OptionalNullable.of(phoneDisplay.get()); - } - return this; - } - - public UpdateBrandingIdentifiers build() { - return new UpdateBrandingIdentifiers(loginDisplay, otpAutocomplete, phoneDisplay, 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/UpdateBrandingPhoneDisplay.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneDisplay.java deleted file mode 100644 index e3155ce0..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneDisplay.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.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 = UpdateBrandingPhoneDisplay.Builder.class) -public final class UpdateBrandingPhoneDisplay { - private final UpdateBrandingPhoneMaskingEnum masking; - - private final UpdateBrandingPhoneFormattingEnum formatting; - - private final Map additionalProperties; - - private UpdateBrandingPhoneDisplay( - UpdateBrandingPhoneMaskingEnum masking, - UpdateBrandingPhoneFormattingEnum formatting, - Map additionalProperties) { - this.masking = masking; - this.formatting = formatting; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("masking") - public UpdateBrandingPhoneMaskingEnum getMasking() { - return masking; - } - - @JsonProperty("formatting") - public UpdateBrandingPhoneFormattingEnum getFormatting() { - return formatting; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof UpdateBrandingPhoneDisplay && equalTo((UpdateBrandingPhoneDisplay) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(UpdateBrandingPhoneDisplay other) { - return masking.equals(other.masking) && formatting.equals(other.formatting); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash(this.masking, this.formatting); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static MaskingStage builder() { - return new Builder(); - } - - public interface MaskingStage { - FormattingStage masking(@NotNull UpdateBrandingPhoneMaskingEnum masking); - - Builder from(UpdateBrandingPhoneDisplay other); - } - - public interface FormattingStage { - _FinalStage formatting(@NotNull UpdateBrandingPhoneFormattingEnum formatting); - } - - public interface _FinalStage { - UpdateBrandingPhoneDisplay build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements MaskingStage, FormattingStage, _FinalStage { - private UpdateBrandingPhoneMaskingEnum masking; - - private UpdateBrandingPhoneFormattingEnum formatting; - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(UpdateBrandingPhoneDisplay other) { - masking(other.getMasking()); - formatting(other.getFormatting()); - return this; - } - - @java.lang.Override - @JsonSetter("masking") - public FormattingStage masking(@NotNull UpdateBrandingPhoneMaskingEnum masking) { - this.masking = Objects.requireNonNull(masking, "masking must not be null"); - return this; - } - - @java.lang.Override - @JsonSetter("formatting") - public _FinalStage formatting(@NotNull UpdateBrandingPhoneFormattingEnum formatting) { - this.formatting = Objects.requireNonNull(formatting, "formatting must not be null"); - return this; - } - - @java.lang.Override - public UpdateBrandingPhoneDisplay build() { - return new UpdateBrandingPhoneDisplay(masking, formatting, additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneFormattingEnum.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneFormattingEnum.java deleted file mode 100644 index b68274fe..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneFormattingEnum.java +++ /dev/null @@ -1,86 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -public final class UpdateBrandingPhoneFormattingEnum { - public static final UpdateBrandingPhoneFormattingEnum REGIONAL = - new UpdateBrandingPhoneFormattingEnum(Value.REGIONAL, "regional"); - - public static final UpdateBrandingPhoneFormattingEnum INTERNATIONAL = - new UpdateBrandingPhoneFormattingEnum(Value.INTERNATIONAL, "international"); - - private final Value value; - - private final String string; - - UpdateBrandingPhoneFormattingEnum(Value value, String string) { - this.value = value; - this.string = string; - } - - public Value getEnumValue() { - return value; - } - - @java.lang.Override - @JsonValue - public String toString() { - return this.string; - } - - @java.lang.Override - public boolean equals(Object other) { - return (this == other) - || (other instanceof UpdateBrandingPhoneFormattingEnum - && this.string.equals(((UpdateBrandingPhoneFormattingEnum) 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 UpdateBrandingPhoneFormattingEnum valueOf(String value) { - switch (value) { - case "regional": - return REGIONAL; - case "international": - return INTERNATIONAL; - default: - return new UpdateBrandingPhoneFormattingEnum(Value.UNKNOWN, value); - } - } - - public enum Value { - REGIONAL, - - INTERNATIONAL, - - UNKNOWN - } - - public interface Visitor { - T visitRegional(); - - T visitInternational(); - - T visitUnknown(String unknownType); - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneMaskingEnum.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneMaskingEnum.java deleted file mode 100644 index a0a75b1f..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneMaskingEnum.java +++ /dev/null @@ -1,97 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -public final class UpdateBrandingPhoneMaskingEnum { - public static final UpdateBrandingPhoneMaskingEnum SHOW_ALL = - new UpdateBrandingPhoneMaskingEnum(Value.SHOW_ALL, "show_all"); - - public static final UpdateBrandingPhoneMaskingEnum MASK_DIGITS = - new UpdateBrandingPhoneMaskingEnum(Value.MASK_DIGITS, "mask_digits"); - - public static final UpdateBrandingPhoneMaskingEnum HIDE_COUNTRY_CODE = - new UpdateBrandingPhoneMaskingEnum(Value.HIDE_COUNTRY_CODE, "hide_country_code"); - - private final Value value; - - private final String string; - - UpdateBrandingPhoneMaskingEnum(Value value, String string) { - this.value = value; - this.string = string; - } - - public Value getEnumValue() { - return value; - } - - @java.lang.Override - @JsonValue - public String toString() { - return this.string; - } - - @java.lang.Override - public boolean equals(Object other) { - return (this == other) - || (other instanceof UpdateBrandingPhoneMaskingEnum - && this.string.equals(((UpdateBrandingPhoneMaskingEnum) 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 UpdateBrandingPhoneMaskingEnum 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 UpdateBrandingPhoneMaskingEnum(Value.UNKNOWN, value); - } - } - - public enum Value { - SHOW_ALL, - - HIDE_COUNTRY_CODE, - - MASK_DIGITS, - - UNKNOWN - } - - public interface Visitor { - T visitShowAll(); - - T visitHideCountryCode(); - - T visitMaskDigits(); - - T visitUnknown(String unknownType); - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java index 079ad2bd..a83c4e24 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java @@ -29,8 +29,6 @@ public final class UpdateBrandingRequestContent { private final OptionalNullable logoUrl; - private final OptionalNullable identifiers; - private final OptionalNullable font; private final Map additionalProperties; @@ -39,13 +37,11 @@ private UpdateBrandingRequestContent( OptionalNullable colors, OptionalNullable faviconUrl, OptionalNullable logoUrl, - OptionalNullable identifiers, OptionalNullable font, Map additionalProperties) { this.colors = colors; this.faviconUrl = faviconUrl; this.logoUrl = logoUrl; - this.identifiers = identifiers; this.font = font; this.additionalProperties = additionalProperties; } @@ -83,15 +79,6 @@ public OptionalNullable getLogoUrl() { return logoUrl; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("identifiers") - public OptionalNullable getIdentifiers() { - if (identifiers == null) { - return OptionalNullable.absent(); - } - return identifiers; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("font") public OptionalNullable getFont() { @@ -119,12 +106,6 @@ private OptionalNullable _getLogoUrl() { return logoUrl; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("identifiers") - private OptionalNullable _getIdentifiers() { - return identifiers; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("font") private OptionalNullable _getFont() { @@ -146,13 +127,12 @@ private boolean equalTo(UpdateBrandingRequestContent other) { return colors.equals(other.colors) && faviconUrl.equals(other.faviconUrl) && logoUrl.equals(other.logoUrl) - && identifiers.equals(other.identifiers) && font.equals(other.font); } @java.lang.Override public int hashCode() { - return Objects.hash(this.colors, this.faviconUrl, this.logoUrl, this.identifiers, this.font); + return Objects.hash(this.colors, this.faviconUrl, this.logoUrl, this.font); } @java.lang.Override @@ -172,8 +152,6 @@ public static final class Builder { private OptionalNullable logoUrl = OptionalNullable.absent(); - private OptionalNullable identifiers = OptionalNullable.absent(); - private OptionalNullable font = OptionalNullable.absent(); @JsonAnySetter @@ -185,7 +163,6 @@ public Builder from(UpdateBrandingRequestContent other) { colors(other.getColors()); faviconUrl(other.getFaviconUrl()); logoUrl(other.getLogoUrl()); - identifiers(other.getIdentifiers()); font(other.getFont()); return this; } @@ -289,37 +266,6 @@ public Builder logoUrl(com.auth0.client.mgmt.core.Nullable logoUrl) { return this; } - @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) - public Builder identifiers(@Nullable OptionalNullable identifiers) { - this.identifiers = identifiers; - return this; - } - - public Builder identifiers(UpdateBrandingIdentifiers identifiers) { - this.identifiers = OptionalNullable.of(identifiers); - return this; - } - - public Builder identifiers(Optional identifiers) { - if (identifiers.isPresent()) { - this.identifiers = OptionalNullable.of(identifiers.get()); - } else { - this.identifiers = OptionalNullable.absent(); - } - return this; - } - - public Builder identifiers(com.auth0.client.mgmt.core.Nullable identifiers) { - if (identifiers.isNull()) { - this.identifiers = OptionalNullable.ofNull(); - } else if (identifiers.isEmpty()) { - this.identifiers = OptionalNullable.absent(); - } else { - this.identifiers = OptionalNullable.of(identifiers.get()); - } - return this; - } - @JsonSetter(value = "font", nulls = Nulls.SKIP) public Builder font(@Nullable OptionalNullable font) { this.font = font; @@ -352,8 +298,7 @@ public Builder font(com.auth0.client.mgmt.core.Nullable font } public UpdateBrandingRequestContent build() { - return new UpdateBrandingRequestContent( - colors, faviconUrl, logoUrl, identifiers, font, additionalProperties); + return new UpdateBrandingRequestContent(colors, faviconUrl, logoUrl, font, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java index a6dba99a..4f4c3266 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java @@ -26,8 +26,6 @@ public final class UpdateBrandingResponseContent { private final Optional logoUrl; - private final Optional identifiers; - private final Optional font; private final Map additionalProperties; @@ -36,13 +34,11 @@ private UpdateBrandingResponseContent( Optional colors, Optional faviconUrl, Optional logoUrl, - Optional identifiers, Optional font, Map additionalProperties) { this.colors = colors; this.faviconUrl = faviconUrl; this.logoUrl = logoUrl; - this.identifiers = identifiers; this.font = font; this.additionalProperties = additionalProperties; } @@ -68,11 +64,6 @@ public Optional getLogoUrl() { return logoUrl; } - @JsonProperty("identifiers") - public Optional getIdentifiers() { - return identifiers; - } - @JsonProperty("font") public Optional getFont() { return font; @@ -93,13 +84,12 @@ private boolean equalTo(UpdateBrandingResponseContent other) { return colors.equals(other.colors) && faviconUrl.equals(other.faviconUrl) && logoUrl.equals(other.logoUrl) - && identifiers.equals(other.identifiers) && font.equals(other.font); } @java.lang.Override public int hashCode() { - return Objects.hash(this.colors, this.faviconUrl, this.logoUrl, this.identifiers, this.font); + return Objects.hash(this.colors, this.faviconUrl, this.logoUrl, this.font); } @java.lang.Override @@ -119,8 +109,6 @@ public static final class Builder { private Optional logoUrl = Optional.empty(); - private Optional identifiers = Optional.empty(); - private Optional font = Optional.empty(); @JsonAnySetter @@ -132,7 +120,6 @@ public Builder from(UpdateBrandingResponseContent other) { colors(other.getColors()); faviconUrl(other.getFaviconUrl()); logoUrl(other.getLogoUrl()); - identifiers(other.getIdentifiers()); font(other.getFont()); return this; } @@ -176,17 +163,6 @@ public Builder logoUrl(String logoUrl) { return this; } - @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) - public Builder identifiers(Optional identifiers) { - this.identifiers = identifiers; - return this; - } - - public Builder identifiers(BrandingIdentifiers identifiers) { - this.identifiers = Optional.ofNullable(identifiers); - return this; - } - @JsonSetter(value = "font", nulls = Nulls.SKIP) public Builder font(Optional font) { this.font = font; @@ -199,8 +175,7 @@ public Builder font(BrandingFont font) { } public UpdateBrandingResponseContent build() { - return new UpdateBrandingResponseContent( - colors, faviconUrl, logoUrl, identifiers, font, additionalProperties); + return new UpdateBrandingResponseContent(colors, faviconUrl, logoUrl, font, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java index d9ac9894..e2c953d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -99,6 +99,8 @@ public final class UpdateConnectionOptions { private final Optional tokenEndpointJwtcaAudFormat; + private final Optional idTokenSessionExpirySupported; + private final Map additionalProperties; private UpdateConnectionOptions( @@ -139,6 +141,7 @@ private UpdateConnectionOptions( OptionalNullable tokenEndpointAuthMethod, OptionalNullable tokenEndpointAuthSigningAlg, Optional tokenEndpointJwtcaAudFormat, + Optional idTokenSessionExpirySupported, Map additionalProperties) { this.validation = validation; this.nonPersistentAttrs = nonPersistentAttrs; @@ -177,6 +180,7 @@ private UpdateConnectionOptions( this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.additionalProperties = additionalProperties; } @@ -447,6 +451,11 @@ public Optional getTokenEndpointJ return tokenEndpointJwtcaAudFormat; } + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("validation") private OptionalNullable _getValidation() { @@ -592,7 +601,8 @@ private boolean equalTo(UpdateConnectionOptions other) { && dpopSigningAlg.equals(other.dpopSigningAlg) && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) - && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat); + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported); } @java.lang.Override @@ -634,7 +644,8 @@ public int hashCode() { this.dpopSigningAlg, this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, - this.tokenEndpointJwtcaAudFormat); + this.tokenEndpointJwtcaAudFormat, + this.idTokenSessionExpirySupported); } @java.lang.Override @@ -729,6 +740,8 @@ public static final class Builder { private Optional tokenEndpointJwtcaAudFormat = Optional.empty(); + private Optional idTokenSessionExpirySupported = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -772,6 +785,7 @@ public Builder from(UpdateConnectionOptions other) { tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); return this; } @@ -1565,6 +1579,17 @@ public Builder tokenEndpointJwtcaAudFormat( return this; } + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public Builder idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + public Builder idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + public UpdateConnectionOptions build() { return new UpdateConnectionOptions( validation, @@ -1604,6 +1629,7 @@ public UpdateConnectionOptions build() { tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, + idTokenSessionExpirySupported, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java index 36047916..314750ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java @@ -21,7 +21,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdatePhoneTemplateResponseContent.Builder.class) public final class UpdatePhoneTemplateResponseContent { - private final String id; + private final Optional id; private final Optional channel; @@ -38,7 +38,7 @@ public final class UpdatePhoneTemplateResponseContent { private final Map additionalProperties; private UpdatePhoneTemplateResponseContent( - String id, + Optional id, Optional channel, Optional customizable, Optional tenant, @@ -57,7 +57,7 @@ private UpdatePhoneTemplateResponseContent( } @JsonProperty("id") - public String getId() { + public Optional getId() { return id; } @@ -127,18 +127,14 @@ public String toString() { return ObjectMappers.stringify(this); } - public static IdStage builder() { + public static ContentStage builder() { return new Builder(); } - public interface IdStage { - ContentStage id(@NotNull String id); - - Builder from(UpdatePhoneTemplateResponseContent other); - } - public interface ContentStage { TypeStage content(@NotNull PhoneTemplateContent content); + + Builder from(UpdatePhoneTemplateResponseContent other); } public interface TypeStage { @@ -159,6 +155,10 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); + + _FinalStage id(String id); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -173,9 +173,7 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements IdStage, ContentStage, TypeStage, DisabledStage, _FinalStage { - private String id; - + public static final class Builder implements ContentStage, TypeStage, DisabledStage, _FinalStage { private PhoneTemplateContent content; private PhoneTemplateNotificationTypeEnum type; @@ -188,6 +186,8 @@ public static final class Builder implements IdStage, ContentStage, TypeStage, D private Optional channel = Optional.empty(); + private Optional id = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -205,13 +205,6 @@ public Builder from(UpdatePhoneTemplateResponseContent other) { return this; } - @java.lang.Override - @JsonSetter("id") - public ContentStage id(@NotNull String id) { - this.id = Objects.requireNonNull(id, "id must not be null"); - return this; - } - @java.lang.Override @JsonSetter("content") public TypeStage content(@NotNull PhoneTemplateContent content) { @@ -277,6 +270,19 @@ public _FinalStage channel(Optional channel) { return this; } + @java.lang.Override + public _FinalStage id(String id) { + this.id = Optional.ofNullable(id); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id", nulls = Nulls.SKIP) + public _FinalStage id(Optional id) { + this.id = id; + return this; + } + @java.lang.Override public UpdatePhoneTemplateResponseContent build() { return new UpdatePhoneTemplateResponseContent( diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java index ddb45ffc..11f51eca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java @@ -68,6 +68,8 @@ public final class UpdateTenantSettingsResponseContent { private final Optional> enabledLocales; + private final OptionalNullable securityHeaders; + private final OptionalNullable sessionCookie; private final OptionalNullable sessions; @@ -96,6 +98,8 @@ public final class UpdateTenantSettingsResponseContent { private final Optional enableAiGuide; + private final Optional includeSessionMetadataInTenantLogs; + private final Optional dynamicClientRegistrationSecurityMode; private final Optional countryCodes; @@ -125,6 +129,7 @@ private UpdateTenantSettingsResponseContent( Optional> sandboxVersionsAvailable, Optional defaultRedirectionUri, Optional> enabledLocales, + OptionalNullable securityHeaders, OptionalNullable sessionCookie, OptionalNullable sessions, Optional oidcLogout, @@ -139,6 +144,7 @@ private UpdateTenantSettingsResponseContent( Optional clientIdMetadataDocumentSupported, Optional phoneConsolidatedExperience, Optional enableAiGuide, + Optional includeSessionMetadataInTenantLogs, Optional dynamicClientRegistrationSecurityMode, Optional countryCodes, Map additionalProperties) { @@ -164,6 +170,7 @@ private UpdateTenantSettingsResponseContent( this.sandboxVersionsAvailable = sandboxVersionsAvailable; this.defaultRedirectionUri = defaultRedirectionUri; this.enabledLocales = enabledLocales; + this.securityHeaders = securityHeaders; this.sessionCookie = sessionCookie; this.sessions = sessions; this.oidcLogout = oidcLogout; @@ -178,6 +185,7 @@ private UpdateTenantSettingsResponseContent( this.clientIdMetadataDocumentSupported = clientIdMetadataDocumentSupported; this.phoneConsolidatedExperience = phoneConsolidatedExperience; this.enableAiGuide = enableAiGuide; + this.includeSessionMetadataInTenantLogs = includeSessionMetadataInTenantLogs; this.dynamicClientRegistrationSecurityMode = dynamicClientRegistrationSecurityMode; this.countryCodes = countryCodes; this.additionalProperties = additionalProperties; @@ -361,6 +369,15 @@ public Optional> getEnabledLocales() { return enabledLocales; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("security_headers") + public OptionalNullable getSecurityHeaders() { + if (securityHeaders == null) { + return OptionalNullable.absent(); + } + return securityHeaders; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_cookie") public OptionalNullable getSessionCookie() { @@ -484,6 +501,14 @@ public Optional getEnableAiGuide() { return enableAiGuide; } + /** + * @return Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). + */ + @JsonProperty("include_session_metadata_in_tenant_logs") + public Optional getIncludeSessionMetadataInTenantLogs() { + return includeSessionMetadataInTenantLogs; + } + @JsonProperty("dynamic_client_registration_security_mode") public Optional getDynamicClientRegistrationSecurityMode() { return dynamicClientRegistrationSecurityMode; @@ -524,6 +549,12 @@ private OptionalNullable _getDefaultTokenQuota() { return defaultTokenQuota; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("security_headers") + private OptionalNullable _getSecurityHeaders() { + return securityHeaders; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_cookie") private OptionalNullable _getSessionCookie() { @@ -595,6 +626,7 @@ private boolean equalTo(UpdateTenantSettingsResponseContent other) { && sandboxVersionsAvailable.equals(other.sandboxVersionsAvailable) && defaultRedirectionUri.equals(other.defaultRedirectionUri) && enabledLocales.equals(other.enabledLocales) + && securityHeaders.equals(other.securityHeaders) && sessionCookie.equals(other.sessionCookie) && sessions.equals(other.sessions) && oidcLogout.equals(other.oidcLogout) @@ -610,6 +642,7 @@ private boolean equalTo(UpdateTenantSettingsResponseContent other) { && clientIdMetadataDocumentSupported.equals(other.clientIdMetadataDocumentSupported) && phoneConsolidatedExperience.equals(other.phoneConsolidatedExperience) && enableAiGuide.equals(other.enableAiGuide) + && includeSessionMetadataInTenantLogs.equals(other.includeSessionMetadataInTenantLogs) && dynamicClientRegistrationSecurityMode.equals(other.dynamicClientRegistrationSecurityMode) && countryCodes.equals(other.countryCodes); } @@ -639,6 +672,7 @@ public int hashCode() { this.sandboxVersionsAvailable, this.defaultRedirectionUri, this.enabledLocales, + this.securityHeaders, this.sessionCookie, this.sessions, this.oidcLogout, @@ -653,6 +687,7 @@ public int hashCode() { this.clientIdMetadataDocumentSupported, this.phoneConsolidatedExperience, this.enableAiGuide, + this.includeSessionMetadataInTenantLogs, this.dynamicClientRegistrationSecurityMode, this.countryCodes); } @@ -712,6 +747,8 @@ public static final class Builder { private Optional> enabledLocales = Optional.empty(); + private OptionalNullable securityHeaders = OptionalNullable.absent(); + private OptionalNullable sessionCookie = OptionalNullable.absent(); private OptionalNullable sessions = OptionalNullable.absent(); @@ -740,6 +777,8 @@ public static final class Builder { private Optional enableAiGuide = Optional.empty(); + private Optional includeSessionMetadataInTenantLogs = Optional.empty(); + private Optional dynamicClientRegistrationSecurityMode = Optional.empty(); @@ -773,6 +812,7 @@ public Builder from(UpdateTenantSettingsResponseContent other) { sandboxVersionsAvailable(other.getSandboxVersionsAvailable()); defaultRedirectionUri(other.getDefaultRedirectionUri()); enabledLocales(other.getEnabledLocales()); + securityHeaders(other.getSecurityHeaders()); sessionCookie(other.getSessionCookie()); sessions(other.getSessions()); oidcLogout(other.getOidcLogout()); @@ -787,6 +827,7 @@ public Builder from(UpdateTenantSettingsResponseContent other) { clientIdMetadataDocumentSupported(other.getClientIdMetadataDocumentSupported()); phoneConsolidatedExperience(other.getPhoneConsolidatedExperience()); enableAiGuide(other.getEnableAiGuide()); + includeSessionMetadataInTenantLogs(other.getIncludeSessionMetadataInTenantLogs()); dynamicClientRegistrationSecurityMode(other.getDynamicClientRegistrationSecurityMode()); countryCodes(other.getCountryCodes()); return this; @@ -1183,6 +1224,39 @@ public Builder enabledLocales(List enabledLocales) { return this; } + @JsonSetter(value = "security_headers", nulls = Nulls.SKIP) + public Builder securityHeaders( + @Nullable OptionalNullable securityHeaders) { + this.securityHeaders = securityHeaders; + return this; + } + + public Builder securityHeaders(TenantSettingsNullableSecurityHeaders securityHeaders) { + this.securityHeaders = OptionalNullable.of(securityHeaders); + return this; + } + + public Builder securityHeaders(Optional securityHeaders) { + if (securityHeaders.isPresent()) { + this.securityHeaders = OptionalNullable.of(securityHeaders.get()); + } else { + this.securityHeaders = OptionalNullable.absent(); + } + return this; + } + + public Builder securityHeaders( + com.auth0.client.mgmt.core.Nullable securityHeaders) { + if (securityHeaders.isNull()) { + this.securityHeaders = OptionalNullable.ofNull(); + } else if (securityHeaders.isEmpty()) { + this.securityHeaders = OptionalNullable.absent(); + } else { + this.securityHeaders = OptionalNullable.of(securityHeaders.get()); + } + return this; + } + @JsonSetter(value = "session_cookie", nulls = Nulls.SKIP) public Builder sessionCookie(@Nullable OptionalNullable sessionCookie) { this.sessionCookie = sessionCookie; @@ -1502,6 +1576,20 @@ public Builder enableAiGuide(Boolean enableAiGuide) { return this; } + /** + *

Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded).

+ */ + @JsonSetter(value = "include_session_metadata_in_tenant_logs", nulls = Nulls.SKIP) + public Builder includeSessionMetadataInTenantLogs(Optional includeSessionMetadataInTenantLogs) { + this.includeSessionMetadataInTenantLogs = includeSessionMetadataInTenantLogs; + return this; + } + + public Builder includeSessionMetadataInTenantLogs(Boolean includeSessionMetadataInTenantLogs) { + this.includeSessionMetadataInTenantLogs = Optional.ofNullable(includeSessionMetadataInTenantLogs); + return this; + } + @JsonSetter(value = "dynamic_client_registration_security_mode", nulls = Nulls.SKIP) public Builder dynamicClientRegistrationSecurityMode( Optional dynamicClientRegistrationSecurityMode) { @@ -1550,6 +1638,7 @@ public UpdateTenantSettingsResponseContent build() { sandboxVersionsAvailable, defaultRedirectionUri, enabledLocales, + securityHeaders, sessionCookie, sessions, oidcLogout, @@ -1564,6 +1653,7 @@ public UpdateTenantSettingsResponseContent build() { clientIdMetadataDocumentSupported, phoneConsolidatedExperience, enableAiGuide, + includeSessionMetadataInTenantLogs, dynamicClientRegistrationSecurityMode, countryCodes, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/XssProtectionConfig.java b/src/main/java/com/auth0/client/mgmt/types/XssProtectionConfig.java new file mode 100644 index 00000000..242f01ad --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/XssProtectionConfig.java @@ -0,0 +1,165 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.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 = XssProtectionConfig.Builder.class) +public final class XssProtectionConfig { + private final Optional enabled; + + private final Optional mode; + + private final Optional reportUri; + + private final Map additionalProperties; + + private XssProtectionConfig( + Optional enabled, + Optional mode, + Optional reportUri, + Map additionalProperties) { + this.enabled = enabled; + this.mode = mode; + this.reportUri = reportUri; + this.additionalProperties = additionalProperties; + } + + /** + * @return Whether X-XSS-Protection header is enabled. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @JsonProperty("mode") + public Optional getMode() { + return mode; + } + + /** + * @return HTTPS endpoint for X-XSS-Protection violation reports. + */ + @JsonProperty("report_uri") + public Optional getReportUri() { + return reportUri; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof XssProtectionConfig && equalTo((XssProtectionConfig) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(XssProtectionConfig other) { + return enabled.equals(other.enabled) && mode.equals(other.mode) && reportUri.equals(other.reportUri); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.enabled, this.mode, this.reportUri); + } + + @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 enabled = Optional.empty(); + + private Optional mode = Optional.empty(); + + private Optional reportUri = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(XssProtectionConfig other) { + enabled(other.getEnabled()); + mode(other.getMode()); + reportUri(other.getReportUri()); + return this; + } + + /** + *

Whether X-XSS-Protection header is enabled.

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

HTTPS endpoint for X-XSS-Protection violation reports.

+ */ + @JsonSetter(value = "report_uri", nulls = Nulls.SKIP) + public Builder reportUri(Optional reportUri) { + this.reportUri = reportUri; + return this; + } + + public Builder reportUri(String reportUri) { + this.reportUri = Optional.ofNullable(reportUri); + return this; + } + + public XssProtectionConfig build() { + return new XssProtectionConfig(enabled, mode, reportUri, 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/UpdateBrandingLoginDisplayEnum.java b/src/main/java/com/auth0/client/mgmt/types/XssProtectionMode.java similarity index 51% rename from src/main/java/com/auth0/client/mgmt/types/UpdateBrandingLoginDisplayEnum.java rename to src/main/java/com/auth0/client/mgmt/types/XssProtectionMode.java index 90e20e2f..ee0efeb6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingLoginDisplayEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/XssProtectionMode.java @@ -6,18 +6,14 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class UpdateBrandingLoginDisplayEnum { - public static final UpdateBrandingLoginDisplayEnum SEPARATE = - new UpdateBrandingLoginDisplayEnum(Value.SEPARATE, "separate"); - - public static final UpdateBrandingLoginDisplayEnum UNIFIED = - new UpdateBrandingLoginDisplayEnum(Value.UNIFIED, "unified"); +public final class XssProtectionMode { + public static final XssProtectionMode BLOCK = new XssProtectionMode(Value.BLOCK, "block"); private final Value value; private final String string; - UpdateBrandingLoginDisplayEnum(Value value, String string) { + XssProtectionMode(Value value, String string) { this.value = value; this.string = string; } @@ -35,8 +31,7 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof UpdateBrandingLoginDisplayEnum - && this.string.equals(((UpdateBrandingLoginDisplayEnum) other).string)); + || (other instanceof XssProtectionMode && this.string.equals(((XssProtectionMode) other).string)); } @java.lang.Override @@ -46,10 +41,8 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case SEPARATE: - return visitor.visitSeparate(); - case UNIFIED: - return visitor.visitUnified(); + case BLOCK: + return visitor.visitBlock(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -57,29 +50,23 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static UpdateBrandingLoginDisplayEnum valueOf(String value) { + public static XssProtectionMode valueOf(String value) { switch (value) { - case "separate": - return SEPARATE; - case "unified": - return UNIFIED; + case "block": + return BLOCK; default: - return new UpdateBrandingLoginDisplayEnum(Value.UNKNOWN, value); + return new XssProtectionMode(Value.UNKNOWN, value); } } public enum Value { - UNIFIED, - - SEPARATE, + BLOCK, UNKNOWN } public interface Visitor { - T visitUnified(); - - T visitSeparate(); + T visitBlock(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java index a4a04751..ed55240d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ListUserEffectiveRolesResponseContent; @@ -142,6 +143,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java index 39f1af13..49ee7a1a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.GetUserGroupsPaginatedResponseContent; @@ -149,6 +150,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/users/RawEffectiveRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/RawEffectiveRolesClient.java index 21157ee4..00b870e9 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawEffectiveRolesClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ListUserEffectiveRolesResponseContent; @@ -119,6 +120,9 @@ public ManagementApiHttpResponse> list( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java index 320b8950..41718b64 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.GetUserGroupsPaginatedResponseContent; @@ -127,6 +128,9 @@ public ManagementApiHttpResponse> g case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java index 3938a262..3356b51e 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.Group; @@ -127,6 +128,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response)); return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; case 429: future.completeExceptionally(new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), diff --git a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java index e7db84ae..d515a5e2 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.Group; @@ -106,6 +107,9 @@ public ManagementApiHttpResponse> list( case 403: throw new ForbiddenError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); case 429: throw new TooManyRequestsError( ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); diff --git a/src/test/java/com/auth0/client/mgmt/BrandingWireTest.java b/src/test/java/com/auth0/client/mgmt/BrandingWireTest.java index 55ed3fd6..35f81d56 100644 --- a/src/test/java/com/auth0/client/mgmt/BrandingWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/BrandingWireTest.java @@ -40,7 +40,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"},\"favicon_url\":\"favicon_url\",\"logo_url\":\"logo_url\",\"identifiers\":{\"login_display\":\"unified\",\"otp_autocomplete\":true,\"phone_display\":{\"masking\":\"show_all\",\"formatting\":\"regional\"}},\"font\":{\"url\":\"url\"}}")); + "{\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"},\"favicon_url\":\"favicon_url\",\"logo_url\":\"logo_url\",\"font\":{\"url\":\"url\"}}")); GetBrandingResponseContent response = client.branding().get(); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -57,14 +57,6 @@ public void testGet() throws Exception { + " },\n" + " \"favicon_url\": \"favicon_url\",\n" + " \"logo_url\": \"logo_url\",\n" - + " \"identifiers\": {\n" - + " \"login_display\": \"unified\",\n" - + " \"otp_autocomplete\": true,\n" - + " \"phone_display\": {\n" - + " \"masking\": \"show_all\",\n" - + " \"formatting\": \"regional\"\n" - + " }\n" - + " },\n" + " \"font\": {\n" + " \"url\": \"url\"\n" + " }\n" @@ -106,7 +98,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"},\"favicon_url\":\"favicon_url\",\"logo_url\":\"logo_url\",\"identifiers\":{\"login_display\":\"unified\",\"otp_autocomplete\":true,\"phone_display\":{\"masking\":\"show_all\",\"formatting\":\"regional\"}},\"font\":{\"url\":\"url\"}}")); + "{\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"},\"favicon_url\":\"favicon_url\",\"logo_url\":\"logo_url\",\"font\":{\"url\":\"url\"}}")); UpdateBrandingResponseContent response = client.branding().update(UpdateBrandingRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -153,14 +145,6 @@ else if (actualJson.has("kind")) + " },\n" + " \"favicon_url\": \"favicon_url\",\n" + " \"logo_url\": \"logo_url\",\n" - + " \"identifiers\": {\n" - + " \"login_display\": \"unified\",\n" - + " \"otp_autocomplete\": true,\n" - + " \"phone_display\": {\n" - + " \"masking\": \"show_all\",\n" - + " \"formatting\": \"regional\"\n" - + " }\n" - + " },\n" + " \"font\": {\n" + " \"url\": \"url\"\n" + " }\n" diff --git a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json index b262af6c..7c99059c 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -352,7 +352,8 @@ "allowed_strategies": [ "pingfederate" ], - "connection_deletion_behavior": "allow" + "connection_deletion_behavior": "allow", + "invitation_landing_client_id": "invitation_landing_client_id" }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json index b262af6c..7c99059c 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -352,7 +352,8 @@ "allowed_strategies": [ "pingfederate" ], - "connection_deletion_behavior": "allow" + "connection_deletion_behavior": "allow", + "invitation_landing_client_id": "invitation_landing_client_id" }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json index b262af6c..7c99059c 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -352,7 +352,8 @@ "allowed_strategies": [ "pingfederate" ], - "connection_deletion_behavior": "allow" + "connection_deletion_behavior": "allow", + "invitation_landing_client_id": "invitation_landing_client_id" }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json index b262af6c..7c99059c 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -352,7 +352,8 @@ "allowed_strategies": [ "pingfederate" ], - "connection_deletion_behavior": "allow" + "connection_deletion_behavior": "allow", + "invitation_landing_client_id": "invitation_landing_client_id" }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", diff --git a/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json b/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json index 8d10a25e..8c386400 100644 --- a/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/TenantsSettingsWireTest_testGet_response.json @@ -77,6 +77,19 @@ "enabled_locales": [ "am" ], + "security_headers": { + "content_security_policy": { + "enabled": true, + "policies": [ + {} + ] + }, + "x_xss_protection": { + "enabled": true, + "mode": "block", + "report_uri": "report_uri" + } + }, "session_cookie": { "mode": "persistent" }, @@ -101,6 +114,7 @@ "client_id_metadata_document_supported": true, "phone_consolidated_experience": true, "enable_ai_guide": true, + "include_session_metadata_in_tenant_logs": true, "dynamic_client_registration_security_mode": "strict", "country_codes": { "list": [ diff --git a/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json index 8d10a25e..8c386400 100644 --- a/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/TenantsSettingsWireTest_testUpdate_response.json @@ -77,6 +77,19 @@ "enabled_locales": [ "am" ], + "security_headers": { + "content_security_policy": { + "enabled": true, + "policies": [ + {} + ] + }, + "x_xss_protection": { + "enabled": true, + "mode": "block", + "report_uri": "report_uri" + } + }, "session_cookie": { "mode": "persistent" }, @@ -101,6 +114,7 @@ "client_id_metadata_document_supported": true, "phone_consolidated_experience": true, "enable_ai_guide": true, + "include_session_metadata_in_tenant_logs": true, "dynamic_client_registration_security_mode": "strict", "country_codes": { "list": [