From 95f8d51f5409e4d284abb97cd0da55422ab791c7 Mon Sep 17 00:00:00 2001 From: Tanya Sinha Date: Mon, 13 Jul 2026 14:50:10 +0530 Subject: [PATCH 01/13] chore: update jackson version (#898) --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index c413cb15..523686ca 100644 --- a/build.gradle +++ b/build.gradle @@ -22,9 +22,9 @@ logger.lifecycle("Using version ${version} for ${name} group $group") dependencies { // Core dependencies api 'com.squareup.okhttp3:okhttp:5.2.1' - api 'com.fasterxml.jackson.core:jackson-databind:2.21.4' - api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.21.4' - api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.4' + api 'com.fasterxml.jackson.core:jackson-databind:2.21.5' + api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.21.5' + api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.5' // Dependencies for legacy management code from auth0-real implementation 'com.squareup.okhttp3:logging-interceptor:5.2.1' From d07a8df86ffa24d9a4e44e91c82a6b90fdd944a6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 15:00:15 +0530 Subject: [PATCH 02/13] feat: add Organization Role Members, thirdPartyClientAccess, optional fields and contains breaking changes (#893) Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Tanya Sinha --- .fern/replay.lock | 8 +- reference.md | 133 +- .../client/mgmt/AsyncOrganizationsClient.java | 8 + .../client/mgmt/OrganizationsClient.java | 8 + .../roles/AsyncMembersClient.java | 63 + .../roles/AsyncRawMembersClient.java | 193 ++ .../organizations/roles/AsyncRolesClient.java | 23 + .../organizations/roles/MembersClient.java | 61 + .../organizations/roles/RawMembersClient.java | 159 ++ .../mgmt/organizations/roles/RolesClient.java | 23 + ...anizationRoleMembersRequestParameters.java | 299 +++ ...VaultPrivilegedAccessWithCredentialId.java | 32 +- ...kenVaultPrivilegedAccessWithPublicKey.java | 32 +- .../types/ConnectionPropertiesOptions.java | 116 +- .../mgmt/types/ConnectionsOidcMetadata.java | 1344 +++++++++++++ .../CreateOrganizationRequestContent.java | 50 +- .../CreateOrganizationResponseContent.java | 35 +- ...efaultMethodPhoneNumberIdentifierEnum.java | 86 + .../client/mgmt/types/EmailAttribute.java | 12 +- ...ier.java => EmailAttributeIdentifier.java} | 16 +- ...ventStreamCloudEventConnectionCreated.java | 155 ++ ...CloudEventConnectionCreatedCloudEvent.java | 396 ++++ ...ntConnectionCreatedCloudEventTypeEnum.java | 77 + ...StreamCloudEventConnectionCreatedData.java | 152 ++ ...reamCloudEventConnectionCreatedObject.java | 218 ++ ...eamCloudEventConnectionCreatedObject0.java | 560 ++++++ ...onnectionCreatedObject0Authentication.java | 119 ++ ...ectionCreatedObject0ConnectedAccounts.java | 150 ++ ...EventConnectionCreatedObject0Metadata.java | 69 + ...dEventConnectionCreatedObject0Options.java | 1242 ++++++++++++ ...tionCreatedObject0OptionsAttributeMap.java | 166 ++ ...ct0OptionsAttributeMapMappingModeEnum.java | 93 + ...eatedObject0OptionsConnectionSettings.java | 111 + ...ect0OptionsConnectionSettingsPkceEnum.java | 112 ++ ...eatedObject0OptionsDpopSigningAlgEnum.java | 110 + ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ionsIdTokenSignedResponseAlgsItemEnum.java | 155 ++ ...tionCreatedObject0OptionsOidcMetadata.java | 1779 +++++++++++++++++ ...reatedObject0OptionsSchemaVersionEnum.java | 88 + ...ject0OptionsSetUserRootAttributesEnum.java | 103 + ...ct0OptionsTokenEndpointAuthMethodEnum.java | 93 + ...ptionsTokenEndpointAuthSigningAlgEnum.java | 153 ++ ...ptionsTokenEndpointJwtcaAudFormatEnum.java | 93 + ...nnectionCreatedObject0OptionsTypeEnum.java | 87 + ...tConnectionCreatedObject0StrategyEnum.java | 76 + ...eamCloudEventConnectionCreatedObject1.java | 560 ++++++ ...onnectionCreatedObject1Authentication.java | 119 ++ ...ectionCreatedObject1ConnectedAccounts.java | 119 ++ ...EventConnectionCreatedObject1Metadata.java | 69 + ...dEventConnectionCreatedObject1Options.java | 1242 ++++++++++++ ...tionCreatedObject1OptionsAttributeMap.java | 166 ++ ...ct1OptionsAttributeMapMappingModeEnum.java | 93 + ...eatedObject1OptionsConnectionSettings.java | 111 + ...ect1OptionsConnectionSettingsPkceEnum.java | 112 ++ ...eatedObject1OptionsDpopSigningAlgEnum.java | 110 + ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ionsIdTokenSignedResponseAlgsItemEnum.java | 155 ++ ...tionCreatedObject1OptionsOidcMetadata.java | 1779 +++++++++++++++++ ...reatedObject1OptionsSchemaVersionEnum.java | 88 + ...ject1OptionsSetUserRootAttributesEnum.java | 103 + ...ct1OptionsTokenEndpointAuthMethodEnum.java | 93 + ...ptionsTokenEndpointAuthSigningAlgEnum.java | 153 ++ ...ptionsTokenEndpointJwtcaAudFormatEnum.java | 93 + ...nnectionCreatedObject1OptionsTypeEnum.java | 76 + ...tConnectionCreatedObject1StrategyEnum.java | 76 + ...eamCloudEventConnectionCreatedObject2.java | 560 ++++++ ...onnectionCreatedObject2Authentication.java | 119 ++ ...ectionCreatedObject2ConnectedAccounts.java | 119 ++ ...EventConnectionCreatedObject2Metadata.java | 69 + ...dEventConnectionCreatedObject2Options.java | 1086 ++++++++++ ...ct2OptionsAssertionDecryptionSettings.java | 178 ++ ...ecryptionSettingsAlgorithmProfileEnum.java | 85 + ...atedObject2OptionsDigestAlgorithmEnum.java | 89 + ...tionCreatedObject2OptionsIdpinitiated.java | 205 ++ ...OptionsIdpinitiatedClientProtocolEnum.java | 104 + ...atedObject2OptionsProtocolBindingEnum.java | 95 + ...ject2OptionsSetUserRootAttributesEnum.java | 103 + ...dObject2OptionsSignatureAlgorithmEnum.java | 90 + ...onnectionCreatedObject2OptionsSubject.java | 69 + ...tConnectionCreatedObject2StrategyEnum.java | 76 + ...eamCloudEventConnectionCreatedObject3.java | 560 ++++++ ...onnectionCreatedObject3Authentication.java | 119 ++ ...ectionCreatedObject3ConnectedAccounts.java | 119 ++ ...EventConnectionCreatedObject3Metadata.java | 69 + ...dEventConnectionCreatedObject3Options.java | 980 +++++++++ ...ct3OptionsAssertionDecryptionSettings.java | 178 ++ ...ecryptionSettingsAlgorithmProfileEnum.java | 85 + ...atedObject3OptionsDigestAlgorithmEnum.java | 89 + ...tionCreatedObject3OptionsIdpinitiated.java | 205 ++ ...OptionsIdpinitiatedClientProtocolEnum.java | 104 + ...atedObject3OptionsProtocolBindingEnum.java | 95 + ...ject3OptionsSetUserRootAttributesEnum.java | 103 + ...dObject3OptionsSignatureAlgorithmEnum.java | 90 + ...onnectionCreatedObject3OptionsSubject.java | 69 + ...tConnectionCreatedObject3StrategyEnum.java | 76 + ...eamCloudEventConnectionCreatedObject4.java | 560 ++++++ ...onnectionCreatedObject4Authentication.java | 119 ++ ...ectionCreatedObject4ConnectedAccounts.java | 119 ++ ...EventConnectionCreatedObject4Metadata.java | 69 + ...dEventConnectionCreatedObject4Options.java | 564 ++++++ ...ject4OptionsSetUserRootAttributesEnum.java | 103 + ...houldTrustEmailVerifiedConnectionEnum.java | 98 + ...tConnectionCreatedObject4StrategyEnum.java | 76 + ...eamCloudEventConnectionCreatedObject5.java | 515 +++++ ...onnectionCreatedObject5Authentication.java | 119 ++ ...ectionCreatedObject5ConnectedAccounts.java | 119 ++ ...EventConnectionCreatedObject5Metadata.java | 69 + ...dEventConnectionCreatedObject5Options.java | 657 ++++++ ...ject5OptionsSetUserRootAttributesEnum.java | 103 + ...tConnectionCreatedObject5StrategyEnum.java | 76 + ...eamCloudEventConnectionCreatedObject6.java | 560 ++++++ ...onnectionCreatedObject6Authentication.java | 119 ++ ...ectionCreatedObject6ConnectedAccounts.java | 119 ++ ...EventConnectionCreatedObject6Metadata.java | 69 + ...dEventConnectionCreatedObject6Options.java | 1112 +++++++++++ ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ject6OptionsSetUserRootAttributesEnum.java | 103 + ...tConnectionCreatedObject6StrategyEnum.java | 76 + ...eamCloudEventConnectionCreatedObject7.java | 560 ++++++ ...onnectionCreatedObject7Authentication.java | 119 ++ ...ectionCreatedObject7ConnectedAccounts.java | 119 ++ ...EventConnectionCreatedObject7Metadata.java | 69 + ...dEventConnectionCreatedObject7Options.java | 1297 ++++++++++++ ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...nCreatedObject7OptionsIdentityApiEnum.java | 89 + ...ject7OptionsSetUserRootAttributesEnum.java | 103 + ...houldTrustEmailVerifiedConnectionEnum.java | 98 + ...atedObject7OptionsUseridAttributeEnum.java | 89 + ...CreatedObject7OptionsWaadProtocolEnum.java | 89 + ...tConnectionCreatedObject7StrategyEnum.java | 76 + ...amCloudEventConnectionCreatedTypeEnum.java | 75 + ...ventStreamCloudEventConnectionDeleted.java | 155 ++ ...CloudEventConnectionDeletedCloudEvent.java | 396 ++++ ...ntConnectionDeletedCloudEventTypeEnum.java | 77 + ...StreamCloudEventConnectionDeletedData.java | 152 ++ ...reamCloudEventConnectionDeletedObject.java | 218 ++ ...eamCloudEventConnectionDeletedObject0.java | 560 ++++++ ...onnectionDeletedObject0Authentication.java | 119 ++ ...ectionDeletedObject0ConnectedAccounts.java | 150 ++ ...EventConnectionDeletedObject0Metadata.java | 69 + ...dEventConnectionDeletedObject0Options.java | 1242 ++++++++++++ ...tionDeletedObject0OptionsAttributeMap.java | 166 ++ ...ct0OptionsAttributeMapMappingModeEnum.java | 93 + ...letedObject0OptionsConnectionSettings.java | 111 + ...ect0OptionsConnectionSettingsPkceEnum.java | 112 ++ ...letedObject0OptionsDpopSigningAlgEnum.java | 110 + ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ionsIdTokenSignedResponseAlgsItemEnum.java | 155 ++ ...tionDeletedObject0OptionsOidcMetadata.java | 1779 +++++++++++++++++ ...eletedObject0OptionsSchemaVersionEnum.java | 88 + ...ject0OptionsSetUserRootAttributesEnum.java | 103 + ...ct0OptionsTokenEndpointAuthMethodEnum.java | 93 + ...ptionsTokenEndpointAuthSigningAlgEnum.java | 153 ++ ...ptionsTokenEndpointJwtcaAudFormatEnum.java | 93 + ...nnectionDeletedObject0OptionsTypeEnum.java | 87 + ...tConnectionDeletedObject0StrategyEnum.java | 76 + ...eamCloudEventConnectionDeletedObject1.java | 560 ++++++ ...onnectionDeletedObject1Authentication.java | 119 ++ ...ectionDeletedObject1ConnectedAccounts.java | 119 ++ ...EventConnectionDeletedObject1Metadata.java | 69 + ...dEventConnectionDeletedObject1Options.java | 1242 ++++++++++++ ...tionDeletedObject1OptionsAttributeMap.java | 166 ++ ...ct1OptionsAttributeMapMappingModeEnum.java | 93 + ...letedObject1OptionsConnectionSettings.java | 111 + ...ect1OptionsConnectionSettingsPkceEnum.java | 112 ++ ...letedObject1OptionsDpopSigningAlgEnum.java | 110 + ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ionsIdTokenSignedResponseAlgsItemEnum.java | 155 ++ ...tionDeletedObject1OptionsOidcMetadata.java | 1779 +++++++++++++++++ ...eletedObject1OptionsSchemaVersionEnum.java | 88 + ...ject1OptionsSetUserRootAttributesEnum.java | 103 + ...ct1OptionsTokenEndpointAuthMethodEnum.java | 93 + ...ptionsTokenEndpointAuthSigningAlgEnum.java | 153 ++ ...ptionsTokenEndpointJwtcaAudFormatEnum.java | 93 + ...nnectionDeletedObject1OptionsTypeEnum.java | 76 + ...tConnectionDeletedObject1StrategyEnum.java | 76 + ...eamCloudEventConnectionDeletedObject2.java | 560 ++++++ ...onnectionDeletedObject2Authentication.java | 119 ++ ...ectionDeletedObject2ConnectedAccounts.java | 119 ++ ...EventConnectionDeletedObject2Metadata.java | 69 + ...dEventConnectionDeletedObject2Options.java | 1086 ++++++++++ ...ct2OptionsAssertionDecryptionSettings.java | 178 ++ ...ecryptionSettingsAlgorithmProfileEnum.java | 85 + ...etedObject2OptionsDigestAlgorithmEnum.java | 89 + ...tionDeletedObject2OptionsIdpinitiated.java | 205 ++ ...OptionsIdpinitiatedClientProtocolEnum.java | 104 + ...etedObject2OptionsProtocolBindingEnum.java | 95 + ...ject2OptionsSetUserRootAttributesEnum.java | 103 + ...dObject2OptionsSignatureAlgorithmEnum.java | 90 + ...onnectionDeletedObject2OptionsSubject.java | 69 + ...tConnectionDeletedObject2StrategyEnum.java | 76 + ...eamCloudEventConnectionDeletedObject3.java | 560 ++++++ ...onnectionDeletedObject3Authentication.java | 119 ++ ...ectionDeletedObject3ConnectedAccounts.java | 119 ++ ...EventConnectionDeletedObject3Metadata.java | 69 + ...dEventConnectionDeletedObject3Options.java | 980 +++++++++ ...ct3OptionsAssertionDecryptionSettings.java | 178 ++ ...ecryptionSettingsAlgorithmProfileEnum.java | 85 + ...etedObject3OptionsDigestAlgorithmEnum.java | 89 + ...tionDeletedObject3OptionsIdpinitiated.java | 205 ++ ...OptionsIdpinitiatedClientProtocolEnum.java | 104 + ...etedObject3OptionsProtocolBindingEnum.java | 95 + ...ject3OptionsSetUserRootAttributesEnum.java | 103 + ...dObject3OptionsSignatureAlgorithmEnum.java | 90 + ...onnectionDeletedObject3OptionsSubject.java | 69 + ...tConnectionDeletedObject3StrategyEnum.java | 76 + ...eamCloudEventConnectionDeletedObject4.java | 560 ++++++ ...onnectionDeletedObject4Authentication.java | 119 ++ ...ectionDeletedObject4ConnectedAccounts.java | 119 ++ ...EventConnectionDeletedObject4Metadata.java | 69 + ...dEventConnectionDeletedObject4Options.java | 564 ++++++ ...ject4OptionsSetUserRootAttributesEnum.java | 103 + ...houldTrustEmailVerifiedConnectionEnum.java | 98 + ...tConnectionDeletedObject4StrategyEnum.java | 76 + ...eamCloudEventConnectionDeletedObject5.java | 515 +++++ ...onnectionDeletedObject5Authentication.java | 119 ++ ...ectionDeletedObject5ConnectedAccounts.java | 119 ++ ...EventConnectionDeletedObject5Metadata.java | 69 + ...dEventConnectionDeletedObject5Options.java | 657 ++++++ ...ject5OptionsSetUserRootAttributesEnum.java | 103 + ...tConnectionDeletedObject5StrategyEnum.java | 76 + ...eamCloudEventConnectionDeletedObject6.java | 560 ++++++ ...onnectionDeletedObject6Authentication.java | 119 ++ ...ectionDeletedObject6ConnectedAccounts.java | 119 ++ ...EventConnectionDeletedObject6Metadata.java | 69 + ...dEventConnectionDeletedObject6Options.java | 1112 +++++++++++ ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ject6OptionsSetUserRootAttributesEnum.java | 103 + ...tConnectionDeletedObject6StrategyEnum.java | 76 + ...eamCloudEventConnectionDeletedObject7.java | 560 ++++++ ...onnectionDeletedObject7Authentication.java | 119 ++ ...ectionDeletedObject7ConnectedAccounts.java | 119 ++ ...EventConnectionDeletedObject7Metadata.java | 69 + ...dEventConnectionDeletedObject7Options.java | 1297 ++++++++++++ ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...nDeletedObject7OptionsIdentityApiEnum.java | 89 + ...ject7OptionsSetUserRootAttributesEnum.java | 103 + ...houldTrustEmailVerifiedConnectionEnum.java | 98 + ...etedObject7OptionsUseridAttributeEnum.java | 89 + ...DeletedObject7OptionsWaadProtocolEnum.java | 89 + ...tConnectionDeletedObject7StrategyEnum.java | 76 + ...amCloudEventConnectionDeletedTypeEnum.java | 75 + ...ventStreamCloudEventConnectionUpdated.java | 155 ++ ...CloudEventConnectionUpdatedCloudEvent.java | 396 ++++ ...ntConnectionUpdatedCloudEventTypeEnum.java | 77 + ...StreamCloudEventConnectionUpdatedData.java | 152 ++ ...reamCloudEventConnectionUpdatedObject.java | 218 ++ ...eamCloudEventConnectionUpdatedObject0.java | 560 ++++++ ...onnectionUpdatedObject0Authentication.java | 119 ++ ...ectionUpdatedObject0ConnectedAccounts.java | 150 ++ ...EventConnectionUpdatedObject0Metadata.java | 69 + ...dEventConnectionUpdatedObject0Options.java | 1242 ++++++++++++ ...tionUpdatedObject0OptionsAttributeMap.java | 166 ++ ...ct0OptionsAttributeMapMappingModeEnum.java | 93 + ...datedObject0OptionsConnectionSettings.java | 111 + ...ect0OptionsConnectionSettingsPkceEnum.java | 112 ++ ...datedObject0OptionsDpopSigningAlgEnum.java | 110 + ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ionsIdTokenSignedResponseAlgsItemEnum.java | 155 ++ ...tionUpdatedObject0OptionsOidcMetadata.java | 1779 +++++++++++++++++ ...pdatedObject0OptionsSchemaVersionEnum.java | 88 + ...ject0OptionsSetUserRootAttributesEnum.java | 103 + ...ct0OptionsTokenEndpointAuthMethodEnum.java | 93 + ...ptionsTokenEndpointAuthSigningAlgEnum.java | 153 ++ ...ptionsTokenEndpointJwtcaAudFormatEnum.java | 93 + ...nnectionUpdatedObject0OptionsTypeEnum.java | 87 + ...tConnectionUpdatedObject0StrategyEnum.java | 76 + ...eamCloudEventConnectionUpdatedObject1.java | 560 ++++++ ...onnectionUpdatedObject1Authentication.java | 119 ++ ...ectionUpdatedObject1ConnectedAccounts.java | 119 ++ ...EventConnectionUpdatedObject1Metadata.java | 69 + ...dEventConnectionUpdatedObject1Options.java | 1242 ++++++++++++ ...tionUpdatedObject1OptionsAttributeMap.java | 166 ++ ...ct1OptionsAttributeMapMappingModeEnum.java | 93 + ...datedObject1OptionsConnectionSettings.java | 111 + ...ect1OptionsConnectionSettingsPkceEnum.java | 112 ++ ...datedObject1OptionsDpopSigningAlgEnum.java | 110 + ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ionsIdTokenSignedResponseAlgsItemEnum.java | 155 ++ ...tionUpdatedObject1OptionsOidcMetadata.java | 1779 +++++++++++++++++ ...pdatedObject1OptionsSchemaVersionEnum.java | 88 + ...ject1OptionsSetUserRootAttributesEnum.java | 103 + ...ct1OptionsTokenEndpointAuthMethodEnum.java | 93 + ...ptionsTokenEndpointAuthSigningAlgEnum.java | 153 ++ ...ptionsTokenEndpointJwtcaAudFormatEnum.java | 93 + ...nnectionUpdatedObject1OptionsTypeEnum.java | 76 + ...tConnectionUpdatedObject1StrategyEnum.java | 76 + ...eamCloudEventConnectionUpdatedObject2.java | 560 ++++++ ...onnectionUpdatedObject2Authentication.java | 119 ++ ...ectionUpdatedObject2ConnectedAccounts.java | 119 ++ ...EventConnectionUpdatedObject2Metadata.java | 69 + ...dEventConnectionUpdatedObject2Options.java | 1086 ++++++++++ ...ct2OptionsAssertionDecryptionSettings.java | 178 ++ ...ecryptionSettingsAlgorithmProfileEnum.java | 85 + ...atedObject2OptionsDigestAlgorithmEnum.java | 89 + ...tionUpdatedObject2OptionsIdpinitiated.java | 205 ++ ...OptionsIdpinitiatedClientProtocolEnum.java | 104 + ...atedObject2OptionsProtocolBindingEnum.java | 95 + ...ject2OptionsSetUserRootAttributesEnum.java | 103 + ...dObject2OptionsSignatureAlgorithmEnum.java | 90 + ...onnectionUpdatedObject2OptionsSubject.java | 69 + ...tConnectionUpdatedObject2StrategyEnum.java | 76 + ...eamCloudEventConnectionUpdatedObject3.java | 560 ++++++ ...onnectionUpdatedObject3Authentication.java | 119 ++ ...ectionUpdatedObject3ConnectedAccounts.java | 119 ++ ...EventConnectionUpdatedObject3Metadata.java | 69 + ...dEventConnectionUpdatedObject3Options.java | 980 +++++++++ ...ct3OptionsAssertionDecryptionSettings.java | 178 ++ ...ecryptionSettingsAlgorithmProfileEnum.java | 85 + ...atedObject3OptionsDigestAlgorithmEnum.java | 89 + ...tionUpdatedObject3OptionsIdpinitiated.java | 205 ++ ...OptionsIdpinitiatedClientProtocolEnum.java | 104 + ...atedObject3OptionsProtocolBindingEnum.java | 95 + ...ject3OptionsSetUserRootAttributesEnum.java | 103 + ...dObject3OptionsSignatureAlgorithmEnum.java | 90 + ...onnectionUpdatedObject3OptionsSubject.java | 69 + ...tConnectionUpdatedObject3StrategyEnum.java | 76 + ...eamCloudEventConnectionUpdatedObject4.java | 560 ++++++ ...onnectionUpdatedObject4Authentication.java | 119 ++ ...ectionUpdatedObject4ConnectedAccounts.java | 119 ++ ...EventConnectionUpdatedObject4Metadata.java | 69 + ...dEventConnectionUpdatedObject4Options.java | 564 ++++++ ...ject4OptionsSetUserRootAttributesEnum.java | 103 + ...houldTrustEmailVerifiedConnectionEnum.java | 98 + ...tConnectionUpdatedObject4StrategyEnum.java | 76 + ...eamCloudEventConnectionUpdatedObject5.java | 515 +++++ ...onnectionUpdatedObject5Authentication.java | 119 ++ ...ectionUpdatedObject5ConnectedAccounts.java | 119 ++ ...EventConnectionUpdatedObject5Metadata.java | 69 + ...dEventConnectionUpdatedObject5Options.java | 657 ++++++ ...ject5OptionsSetUserRootAttributesEnum.java | 103 + ...tConnectionUpdatedObject5StrategyEnum.java | 76 + ...eamCloudEventConnectionUpdatedObject6.java | 560 ++++++ ...onnectionUpdatedObject6Authentication.java | 119 ++ ...ectionUpdatedObject6ConnectedAccounts.java | 119 ++ ...EventConnectionUpdatedObject6Metadata.java | 69 + ...dEventConnectionUpdatedObject6Options.java | 1112 +++++++++++ ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...ject6OptionsSetUserRootAttributesEnum.java | 103 + ...tConnectionUpdatedObject6StrategyEnum.java | 76 + ...eamCloudEventConnectionUpdatedObject7.java | 560 ++++++ ...onnectionUpdatedObject7Authentication.java | 119 ++ ...ectionUpdatedObject7ConnectedAccounts.java | 119 ++ ...EventConnectionUpdatedObject7Metadata.java | 69 + ...dEventConnectionUpdatedObject7Options.java | 1297 ++++++++++++ ...tionsFederatedConnectionsAccessTokens.java | 135 ++ ...nUpdatedObject7OptionsIdentityApiEnum.java | 89 + ...ject7OptionsSetUserRootAttributesEnum.java | 103 + ...houldTrustEmailVerifiedConnectionEnum.java | 98 + ...atedObject7OptionsUseridAttributeEnum.java | 89 + ...UpdatedObject7OptionsWaadProtocolEnum.java | 89 + ...tConnectionUpdatedObject7StrategyEnum.java | 76 + ...amCloudEventConnectionUpdatedTypeEnum.java | 75 + ...treamCloudEventGroupCreatedCloudEvent.java | 23 +- ...treamCloudEventGroupDeletedCloudEvent.java | 23 +- ...mCloudEventGroupMemberAddedCloudEvent.java | 23 +- ...loudEventGroupMemberDeletedCloudEvent.java | 23 +- ...CloudEventGroupRoleAssignedCloudEvent.java | 23 +- ...mCloudEventGroupRoleDeletedCloudEvent.java | 23 +- ...treamCloudEventGroupUpdatedCloudEvent.java | 23 +- ...loudEventOrgConnectionAddedCloudEvent.java | 23 +- ...udEventOrgConnectionRemovedCloudEvent.java | 23 +- ...udEventOrgConnectionUpdatedCloudEvent.java | 23 +- ...tStreamCloudEventOrgCreatedCloudEvent.java | 23 +- ...tStreamCloudEventOrgDeletedCloudEvent.java | 23 +- ...udEventOrgGroupRoleAssignedCloudEvent.java | 23 +- ...oudEventOrgGroupRoleDeletedCloudEvent.java | 23 +- ...eamCloudEventOrgMemberAddedCloudEvent.java | 23 +- ...mCloudEventOrgMemberDeletedCloudEvent.java | 23 +- ...dEventOrgMemberRoleAssignedCloudEvent.java | 23 +- ...udEventOrgMemberRoleDeletedCloudEvent.java | 23 +- ...tStreamCloudEventOrgUpdatedCloudEvent.java | 23 +- .../EventStreamCloudEventSpecVersionEnum.java | 75 + ...StreamCloudEventUserCreatedCloudEvent.java | 23 +- ...StreamCloudEventUserDeletedCloudEvent.java | 23 +- ...StreamCloudEventUserUpdatedCloudEvent.java | 23 +- .../EventStreamDeliveryEventTypeEnum.java | 105 +- .../mgmt/types/EventStreamEventTypeEnum.java | 101 +- ...entStreamSubscribeEventsEventTypeEnum.java | 105 +- ...tStreamSubscribeEventsResponseContent.java | 177 ++ .../types/EventStreamTestEventTypeEnum.java | 105 +- .../GetOrganizationByNameResponseContent.java | 44 +- .../types/GetOrganizationResponseContent.java | 44 +- ...rganizationRoleMembersResponseContent.java | 153 ++ ...stRolesOffsetPaginatedResponseContent.java | 101 +- .../client/mgmt/types/NotFoundErrorBody.java | 163 ++ .../mgmt/types/NotFoundErrorBodyError.java | 74 + .../auth0/client/mgmt/types/Organization.java | 45 +- ...rganizationThirdPartyClientAccessEnum.java | 86 + .../client/mgmt/types/PartialGroupsEnum.java | 10 + .../client/mgmt/types/PhoneAttribute.java | 12 +- .../mgmt/types/PhoneAttributeIdentifier.java | 136 ++ ...ProviderProtectionBackoffStrategyEnum.java | 18 +- .../auth0/client/mgmt/types/RoleMember.java | 203 ++ .../TokenVaultPrivilegedAccessGrant.java | 163 ++ .../mgmt/types/TooManyRequestsErrorBody.java | 166 ++ .../types/TooManyRequestsErrorBodyError.java | 75 + .../mgmt/types/UpdateConnectionOptions.java | 116 +- .../UpdateOrganizationRequestContent.java | 36 +- .../UpdateOrganizationResponseContent.java | 44 +- .../auth0/client/mgmt/types/UserGrant.java | 36 +- .../client/mgmt/types/UsernameAttribute.java | 12 +- .../types/UsernameAttributeIdentifier.java | 111 + .../ClientGrantsOrganizationsWireTest.java | 2 +- .../mgmt/EventStreamsDeliveriesWireTest.java | 8 +- .../EventStreamsRedeliveriesWireTest.java | 4 +- .../client/mgmt/EventStreamsWireTest.java | 8 +- .../com/auth0/client/mgmt/EventsWireTest.java | 2 +- .../OrganizationsRolesMembersWireTest.java | 98 + .../client/mgmt/OrganizationsWireTest.java | 20 +- .../auth0/client/mgmt/UserGrantsWireTest.java | 2 +- .../mgmt/UsersOrganizationsWireTest.java | 2 +- .../ClientsWireTest_testCreate_response.json | 8 + .../ClientsWireTest_testGet_response.json | 8 + ...ntsWireTest_testRotateSecret_response.json | 8 + .../ClientsWireTest_testUpdate_response.json | 8 + 416 files changed, 84778 insertions(+), 650 deletions(-) create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncMembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRolesClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/MembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/RolesClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/DefaultMethodPhoneNumberIdentifierEnum.java rename src/main/java/com/auth0/client/mgmt/types/{ConnectionAttributeIdentifier.java => EmailAttributeIdentifier.java} (87%) create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEventTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSubject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSubject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEventTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSubject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSubject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Authentication.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Metadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7StrategyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventSpecVersionEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleMembersResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBody.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBodyError.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/OrganizationThirdPartyClientAccessEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/PhoneAttributeIdentifier.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/RoleMember.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/TokenVaultPrivilegedAccessGrant.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBody.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBodyError.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UsernameAttributeIdentifier.java create mode 100644 src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java diff --git a/.fern/replay.lock b/.fern/replay.lock index c3d67fb7..82885b51 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,5 +6,11 @@ generations: timestamp: 2026-05-12T04:52:50.433Z cli_version: unknown generator_versions: {} -current_generation: 2b1bf29d9d52526f3bf1c900c8d13afd4aa2b0cf + - commit_sha: ae4f5b4b9ca18d966278c4113e89b85e607973cc + tree_hash: 334f54e3127b6fd33e59e6e6b7a41d87f4e12661 + timestamp: 2026-07-09T05:44:02.868Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.6.3 +current_generation: ae4f5b4b9ca18d966278c4113e89b85e607973cc patches: [] diff --git a/reference.md b/reference.md index 18e66e02..3767b831 100644 --- a/reference.md +++ b/reference.md @@ -5520,7 +5520,7 @@ client.eventStreams().test( "id", CreateEventStreamTestEventRequestContent .builder() - .eventType(EventStreamTestEventTypeEnum.GROUP_CREATED) + .eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED) .build() ); ``` @@ -5603,7 +5603,7 @@ client.events().subscribe( OptionalNullable.of("from_timestamp") ) .eventType( - Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED) + Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED) ) .build() ); @@ -8989,6 +8989,14 @@ client.organizations().create( **tokenQuota:** `Optional` + + + +
+
+ +**thirdPartyClientAccess:** `Optional` +
@@ -9252,6 +9260,14 @@ client.organizations().update( **tokenQuota:** `Optional` + + + +
+
+ +**thirdPartyClientAccess:** `Optional` +
@@ -28128,6 +28144,119 @@ client.organizations().members().effectiveRoles().sources().groups().list( + + + + +## Organizations Roles Members +
client.organizations.roles.members.list(id, roleId) -> SyncPagingIterable&lt;RoleMember&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List the organization members assigned a specific role within the context of an organization. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizations().roles().members().list( + "id", + "role_id", + ListOrganizationRoleMembersRequestParameters + .builder() + .from( + OptionalNullable.of("from") + ) + .take( + OptionalNullable.of(1) + ) + .fields( + OptionalNullable.of("fields") + ) + .includeFields( + OptionalNullable.of(true) + ) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the organization. + +
+
+ +
+
+ +**roleId:** `String` — ID of the role to retrieve the assigned members for. + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. + +
+
+ +
+
+ +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). Defaults to true. + +
+
+
+
+ +
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java index c5d659e0..1fba755a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.organizations.AsyncGroupsClient; import com.auth0.client.mgmt.organizations.AsyncInvitationsClient; import com.auth0.client.mgmt.organizations.AsyncMembersClient; +import com.auth0.client.mgmt.organizations.roles.AsyncRolesClient; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent; @@ -44,6 +45,8 @@ public class AsyncOrganizationsClient { protected final Supplier groupsClient; + protected final Supplier rolesClient; + public AsyncOrganizationsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new AsyncRawOrganizationsClient(clientOptions); @@ -54,6 +57,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) { this.invitationsClient = Suppliers.memoize(() -> new AsyncInvitationsClient(clientOptions)); this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions)); + this.rolesClient = Suppliers.memoize(() -> new AsyncRolesClient(clientOptions)); } /** @@ -261,4 +265,8 @@ public AsyncMembersClient members() { public AsyncGroupsClient groups() { return this.groupsClient.get(); } + + public AsyncRolesClient roles() { + return this.rolesClient.get(); + } } diff --git a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java index 21d5b75e..74ed88d6 100644 --- a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.organizations.GroupsClient; import com.auth0.client.mgmt.organizations.InvitationsClient; import com.auth0.client.mgmt.organizations.MembersClient; +import com.auth0.client.mgmt.organizations.roles.RolesClient; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent; @@ -43,6 +44,8 @@ public class OrganizationsClient { protected final Supplier groupsClient; + protected final Supplier rolesClient; + public OrganizationsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new RawOrganizationsClient(clientOptions); @@ -53,6 +56,7 @@ public OrganizationsClient(ClientOptions clientOptions) { this.invitationsClient = Suppliers.memoize(() -> new InvitationsClient(clientOptions)); this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions)); + this.rolesClient = Suppliers.memoize(() -> new RolesClient(clientOptions)); } /** @@ -258,4 +262,8 @@ public MembersClient members() { public GroupsClient groups() { return this.groupsClient.get(); } + + public RolesClient roles() { + return this.rolesClient.get(); + } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncMembersClient.java new file mode 100644 index 00000000..3363e454 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncMembersClient.java @@ -0,0 +1,63 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.RoleMember; +import java.util.concurrent.CompletableFuture; + +public class AsyncMembersClient { + protected final ClientOptions clientOptions; + + private final AsyncRawMembersClient rawClient; + + public AsyncMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawMembersClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawMembersClient withRawResponse() { + return this.rawClient; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list(String id, String roleId) { + return this.rawClient.list(id, roleId).thenApply(response -> response.body()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list( + String id, String roleId, RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, requestOptions).thenApply(response -> response.body()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return this.rawClient.list(id, roleId, request).thenApply(response -> response.body()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java new file mode 100644 index 00000000..e8655a44 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java @@ -0,0 +1,193 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.ListOrganizationRoleMembersResponseContent; +import com.auth0.client.mgmt.types.RoleMember; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.jetbrains.annotations.NotNull; + +public class AsyncRawMembersClient { + protected final ClientOptions clientOptions; + + public AsyncRawMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list(String id, String roleId) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list( + String id, String roleId, RequestOptions requestOptions) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build(), + requestOptions); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return list(id, roleId, request, null); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("roles") + .addPathSegment(roleId) + .addPathSegments("members"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture>> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListOrganizationRoleMembersResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListOrganizationRoleMembersResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListOrganizationRoleMembersRequestParameters nextRequest = + ListOrganizationRoleMembersRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getMembers(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(id, roleId, nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRolesClient.java new file mode 100644 index 00000000..9144bd62 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRolesClient.java @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.Suppliers; +import java.util.function.Supplier; + +public class AsyncRolesClient { + protected final ClientOptions clientOptions; + + protected final Supplier membersClient; + + public AsyncRolesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions)); + } + + public AsyncMembersClient members() { + return this.membersClient.get(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/MembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/MembersClient.java new file mode 100644 index 00000000..510d57ae --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/MembersClient.java @@ -0,0 +1,61 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.RoleMember; + +public class MembersClient { + protected final ClientOptions clientOptions; + + private final RawMembersClient rawClient; + + public MembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawMembersClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawMembersClient withRawResponse() { + return this.rawClient; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list(String id, String roleId) { + return this.rawClient.list(id, roleId).body(); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list(String id, String roleId, RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, requestOptions).body(); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return this.rawClient.list(id, roleId, request).body(); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, request, requestOptions).body(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java new file mode 100644 index 00000000..e7822411 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java @@ -0,0 +1,159 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.ListOrganizationRoleMembersResponseContent; +import com.auth0.client.mgmt.types.RoleMember; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawMembersClient { + protected final ClientOptions clientOptions; + + public RawMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list(String id, String roleId) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list( + String id, String roleId, RequestOptions requestOptions) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build(), + requestOptions); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return list(id, roleId, request, null); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("roles") + .addPathSegment(roleId) + .addPathSegments("members"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListOrganizationRoleMembersResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListOrganizationRoleMembersResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListOrganizationRoleMembersRequestParameters nextRequest = + ListOrganizationRoleMembersRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getMembers(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> list( + id, roleId, nextRequest, requestOptions) + .body()), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/RolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/RolesClient.java new file mode 100644 index 00000000..bd4fe8ae --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/RolesClient.java @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.Suppliers; +import java.util.function.Supplier; + +public class RolesClient { + protected final ClientOptions clientOptions; + + protected final Supplier membersClient; + + public RolesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions)); + } + + public MembersClient members() { + return this.membersClient.get(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java new file mode 100644 index 00000000..7bbf0697 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java @@ -0,0 +1,299 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListOrganizationRoleMembersRequestParameters.Builder.class) +public final class ListOrganizationRoleMembersRequestParameters { + private final OptionalNullable from; + + private final OptionalNullable take; + + private final OptionalNullable fields; + + private final OptionalNullable includeFields; + + private final Map additionalProperties; + + private ListOrganizationRoleMembersRequestParameters( + OptionalNullable from, + OptionalNullable take, + OptionalNullable fields, + OptionalNullable includeFields, + Map additionalProperties) { + this.from = from; + this.take = take; + this.fields = fields; + this.includeFields = includeFields; + this.additionalProperties = additionalProperties; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonIgnore + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. + */ + @JsonIgnore + public OptionalNullable getTake() { + if (take == null) { + return OptionalNullable.absent(); + } + return take; + } + + /** + * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + */ + @JsonIgnore + public OptionalNullable getFields() { + if (fields == null) { + return OptionalNullable.absent(); + } + return fields; + } + + /** + * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. + */ + @JsonIgnore + public OptionalNullable getIncludeFields() { + if (includeFields == null) { + return OptionalNullable.absent(); + } + return includeFields; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListOrganizationRoleMembersRequestParameters + && equalTo((ListOrganizationRoleMembersRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListOrganizationRoleMembersRequestParameters other) { + return from.equals(other.from) + && take.equals(other.take) + && fields.equals(other.fields) + && includeFields.equals(other.includeFields); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.from, this.take, this.fields, this.includeFields); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private OptionalNullable from = OptionalNullable.absent(); + + private OptionalNullable take = OptionalNullable.absent(); + + private OptionalNullable fields = OptionalNullable.absent(); + + private OptionalNullable includeFields = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListOrganizationRoleMembersRequestParameters other) { + from(other.getFrom()); + take(other.getTake()); + fields(other.getFields()); + includeFields(other.getIncludeFields()); + return this; + } + + /** + *

Optional Id from which to start selection.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

+ *

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

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

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

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

A unique identifier for the event.

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

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

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

The auth0 tenant ID to which the event is associated.

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

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

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

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

+ *

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

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

A unique identifier for the event.

+ *

A unique identifier for the event.

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

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

+ *

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

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

The auth0 tenant ID to which the event is associated.

+ *

The auth0 tenant ID to which the event is associated.

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

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

+ *

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

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

The connection's identifier

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

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

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

Connection name used in the new universal login experience

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

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

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

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

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

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

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

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

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

The connection's identifier

+ *

The connection's identifier

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

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

+ *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Connection name used in the new universal login experience

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

Connection name used in the new universal login experience

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

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

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

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

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

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

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

https url of the icon to be shown

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Tenant domain

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

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

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

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

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

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

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

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

+ *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Tenant domain

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

Tenant domain

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

https url of the icon to be shown

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

https url of the icon to be shown

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

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

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

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

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

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

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

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

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

Scopes to send to the IdP's Userinfo endpoint

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

Enables refresh tokens and access tokens collection for federated connections

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

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

+ *

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

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

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

+ *

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

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

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

+ *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The connection's identifier

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

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

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

Connection name used in the new universal login experience

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

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

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

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

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

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

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

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

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

The connection's identifier

+ *

The connection's identifier

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

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

+ *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Connection name used in the new universal login experience

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

Connection name used in the new universal login experience

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

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

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

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

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

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

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

https url of the icon to be shown

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Tenant domain

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

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

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

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

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

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

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

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

+ *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Tenant domain

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

Tenant domain

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

https url of the icon to be shown

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

https url of the icon to be shown

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

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

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

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

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

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

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

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

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

Scopes to send to the IdP's Userinfo endpoint

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

Enables refresh tokens and access tokens collection for federated connections

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

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

+ *

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

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

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

+ *

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

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

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

+ *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The connection's identifier

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

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

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

Connection name used in the new universal login experience

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

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

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

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

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

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

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

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

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

The connection's identifier

+ *

The connection's identifier

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

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject2StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject2Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject2Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject2Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2 build() { + return new EventStreamCloudEventConnectionCreatedObject2( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Authentication.java new file mode 100644 index 00000000..94c239ca --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject2Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject2Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject2Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.java new file mode 100644 index 00000000..352b45ea --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Metadata.java new file mode 100644 index 00000000..d3957e91 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject2Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java new file mode 100644 index 00000000..54e7ec82 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java @@ -0,0 +1,1086 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional debug; + + private final Optional deflate; + + private final Optional destinationUrl; + + private final Optional disableSignout; + + private final Optional> fieldsMap; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional debug, + Optional deflate, + Optional destinationUrl, + Optional disableSignout, + Optional> fieldsMap, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional recipientUrl, + Optional requestTemplate, + Optional signOutEndpoint, + Optional userIdAttribute, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.debug = debug; + this.deflate = deflate; + this.destinationUrl = destinationUrl; + this.disableSignout = disableSignout; + this.fieldsMap = fieldsMap; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.recipientUrl = recipientUrl; + this.requestTemplate = requestTemplate; + this.signOutEndpoint = signOutEndpoint; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. + */ + @JsonProperty("debug") + public Optional getDebug() { + return debug; + } + + /** + * @return When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. + */ + @JsonProperty("deflate") + public Optional getDeflate() { + return deflate; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("destinationUrl") + public Optional getDestinationUrl() { + return destinationUrl; + } + + /** + * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). + */ + @JsonProperty("disableSignout") + public Optional getDisableSignout() { + return disableSignout; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. + */ + @JsonProperty("global_token_revocation_jwt_iss") + public Optional getGlobalTokenRevocationJwtIss() { + return globalTokenRevocationJwtIss; + } + + /** + * @return Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. + */ + @JsonProperty("global_token_revocation_jwt_sub") + public Optional getGlobalTokenRevocationJwtSub() { + return globalTokenRevocationJwtSub; + } + + /** + * @return HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. + */ + @JsonProperty("metadataUrl") + public Optional getMetadataUrl() { + return metadataUrl; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("recipientUrl") + public Optional getRecipientUrl() { + return recipientUrl; + } + + /** + * @return Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template + */ + @JsonProperty("requestTemplate") + public Optional getRequestTemplate() { + return requestTemplate; + } + + /** + * @return Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. + */ + @JsonProperty("signOutEndpoint") + public Optional getSignOutEndpoint() { + return signOutEndpoint; + } + + /** + * @return Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2Options + && equalTo((EventStreamCloudEventConnectionCreatedObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && debug.equals(other.debug) + && deflate.equals(other.deflate) + && destinationUrl.equals(other.destinationUrl) + && disableSignout.equals(other.disableSignout) + && fieldsMap.equals(other.fieldsMap) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && recipientUrl.equals(other.recipientUrl) + && requestTemplate.equals(other.requestTemplate) + && signOutEndpoint.equals(other.signOutEndpoint) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.debug, + this.deflate, + this.destinationUrl, + this.disableSignout, + this.fieldsMap, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.recipientUrl, + this.requestTemplate, + this.signOutEndpoint, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional + assertionDecryptionSettings = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional debug = Optional.empty(); + + private Optional deflate = Optional.empty(); + + private Optional destinationUrl = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional recipientUrl = Optional.empty(); + + private Optional requestTemplate = Optional.empty(); + + private Optional signOutEndpoint = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + debug(other.getDebug()); + deflate(other.getDeflate()); + destinationUrl(other.getDestinationUrl()); + disableSignout(other.getDisableSignout()); + fieldsMap(other.getFieldsMap()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + recipientUrl(other.getRecipientUrl()); + requestTemplate(other.getRequestTemplate()); + signOutEndpoint(other.getSignOutEndpoint()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public Builder assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + public Builder assertionDecryptionSettings( + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm( + EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public Builder expires(Optional expires) { + this.expires = expires; + return this; + } + + public Builder expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding( + EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm( + EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public Builder signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + public Builder signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public Builder subject(Optional subject) { + this.subject = subject; + return this; + } + + public Builder subject(EventStreamCloudEventConnectionCreatedObject2OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes.

+ */ + @JsonSetter(value = "debug", nulls = Nulls.SKIP) + public Builder debug(Optional debug) { + this.debug = debug; + return this; + } + + public Builder debug(Boolean debug) { + this.debug = Optional.ofNullable(debug); + return this; + } + + /** + *

When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding.

+ */ + @JsonSetter(value = "deflate", nulls = Nulls.SKIP) + public Builder deflate(Optional deflate) { + this.deflate = deflate; + return this; + } + + public Builder deflate(Boolean deflate) { + this.deflate = Optional.ofNullable(deflate); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "destinationUrl", nulls = Nulls.SKIP) + public Builder destinationUrl(Optional destinationUrl) { + this.destinationUrl = destinationUrl; + return this; + } + + public Builder destinationUrl(String destinationUrl) { + this.destinationUrl = Optional.ofNullable(destinationUrl); + return this; + } + + /** + *

When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).

+ */ + @JsonSetter(value = "disableSignout", nulls = Nulls.SKIP) + public Builder disableSignout(Optional disableSignout) { + this.disableSignout = disableSignout; + return this; + } + + public Builder disableSignout(Boolean disableSignout) { + this.disableSignout = Optional.ofNullable(disableSignout); + return this; + } + + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) + public Builder fieldsMap(Optional> fieldsMap) { + this.fieldsMap = fieldsMap; + return this; + } + + public Builder fieldsMap(Map fieldsMap) { + this.fieldsMap = Optional.ofNullable(fieldsMap); + return this; + } + + /** + *

Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_iss", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtIss(Optional globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + return this; + } + + public Builder globalTokenRevocationJwtIss(String globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = Optional.ofNullable(globalTokenRevocationJwtIss); + return this; + } + + /** + *

Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_sub", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtSub(Optional globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + return this; + } + + public Builder globalTokenRevocationJwtSub(String globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = Optional.ofNullable(globalTokenRevocationJwtSub); + return this; + } + + /** + *

HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.

+ */ + @JsonSetter(value = "metadataUrl", nulls = Nulls.SKIP) + public Builder metadataUrl(Optional metadataUrl) { + this.metadataUrl = metadataUrl; + return this; + } + + public Builder metadataUrl(String metadataUrl) { + this.metadataUrl = Optional.ofNullable(metadataUrl); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) + public Builder recipientUrl(Optional recipientUrl) { + this.recipientUrl = recipientUrl; + return this; + } + + public Builder recipientUrl(String recipientUrl) { + this.recipientUrl = Optional.ofNullable(recipientUrl); + return this; + } + + /** + *

Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template

+ */ + @JsonSetter(value = "requestTemplate", nulls = Nulls.SKIP) + public Builder requestTemplate(Optional requestTemplate) { + this.requestTemplate = requestTemplate; + return this; + } + + public Builder requestTemplate(String requestTemplate) { + this.requestTemplate = Optional.ofNullable(requestTemplate); + return this; + } + + /** + *

Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.

+ */ + @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) + public Builder signOutEndpoint(Optional signOutEndpoint) { + this.signOutEndpoint = signOutEndpoint; + return this; + } + + public Builder signOutEndpoint(String signOutEndpoint) { + this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); + return this; + } + + /** + *

Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2Options build() { + return new EventStreamCloudEventConnectionCreatedObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableSignout, + fieldsMap, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + recipientUrl, + requestTemplate, + signOutEndpoint, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 00000000..c395c276 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 00000000..a7f0a4e1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 00000000..f4da7da9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.java new file mode 100644 index 00000000..57df241b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 00000000..5357af2f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum.java new file mode 100644 index 00000000..0962ed0e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..9bf9a47e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 00000000..6bfa770a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSubject.java new file mode 100644 index 00000000..ddeaa43a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionCreatedObject2OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2StrategyEnum.java new file mode 100644 index 00000000..77521ce7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionCreatedObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SAMLP: + return visitor.visitSamlp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionCreatedObject2StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SAMLP, + + UNKNOWN + } + + public interface Visitor { + T visitSamlp(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java new file mode 100644 index 00000000..bbdf5d6b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3 + && equalTo((EventStreamCloudEventConnectionCreatedObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject3 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject3Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject3Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject3Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject3Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject3Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3 build() { + return new EventStreamCloudEventConnectionCreatedObject3( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Authentication.java new file mode 100644 index 00000000..dd1badd1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject3Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.java new file mode 100644 index 00000000..4a878d0c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Metadata.java new file mode 100644 index 00000000..2da97499 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject3Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject3Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java new file mode 100644 index 00000000..a4cfb06a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java @@ -0,0 +1,980 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final String pingFederateBaseUrl; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + String pingFederateBaseUrl, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.pingFederateBaseUrl = pingFederateBaseUrl; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return URL provided by PingFederate which returns information used for creating the connection + */ + @JsonProperty("pingFederateBaseUrl") + public String getPingFederateBaseUrl() { + return pingFederateBaseUrl; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3Options + && equalTo((EventStreamCloudEventConnectionCreatedObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && pingFederateBaseUrl.equals(other.pingFederateBaseUrl); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.pingFederateBaseUrl); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PingFederateBaseUrlStage builder() { + return new Builder(); + } + + public interface PingFederateBaseUrlStage { + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ */ + _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl); + + Builder from(EventStreamCloudEventConnectionCreatedObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings); + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + _FinalStage cert(Optional cert); + + _FinalStage cert(String cert); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + _FinalStage digestAlgorithm( + Optional digestAlgorithm); + + _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum digestAlgorithm); + + /** + *

Domain aliases for the connection

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + _FinalStage entityId(Optional entityId); + + _FinalStage entityId(String entityId); + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + _FinalStage expires(Optional expires); + + _FinalStage expires(OffsetDateTime expires); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage idpinitiated( + Optional idpinitiated); + + _FinalStage idpinitiated(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated idpinitiated); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage protocolBinding( + Optional protocolBinding); + + _FinalStage protocolBinding( + EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm); + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + _FinalStage signInEndpoint(Optional signInEndpoint); + + _FinalStage signInEndpoint(String signInEndpoint); + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + _FinalStage signingCert(Optional signingCert); + + _FinalStage signingCert(String signingCert); + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + _FinalStage signSamlRequest(Optional signSamlRequest); + + _FinalStage signSamlRequest(Boolean signSamlRequest); + + _FinalStage subject(Optional subject); + + _FinalStage subject(EventStreamCloudEventConnectionCreatedObject3OptionsSubject subject); + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PingFederateBaseUrlStage, _FinalStage { + private String pingFederateBaseUrl; + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional + assertionDecryptionSettings = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + pingFederateBaseUrl(other.getPingFederateBaseUrl()); + return this; + } + + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ *

URL provided by PingFederate which returns information used for creating the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("pingFederateBaseUrl") + public _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl) { + this.pingFederateBaseUrl = + Objects.requireNonNull(pingFederateBaseUrl, "pingFederateBaseUrl must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage subject(EventStreamCloudEventConnectionCreatedObject3OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public _FinalStage subject(Optional subject) { + this.subject = subject; + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @java.lang.Override + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public _FinalStage signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @java.lang.Override + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public _FinalStage signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @java.lang.Override + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public _FinalStage signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + @java.lang.Override + public _FinalStage protocolBinding( + EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public _FinalStage protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public _FinalStage idpinitiated(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @java.lang.Override + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public _FinalStage idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @java.lang.Override + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public _FinalStage expires(Optional expires) { + this.expires = expires; + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public _FinalStage entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + /** + *

Domain aliases for the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public _FinalStage digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @java.lang.Override + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public _FinalStage cert(Optional cert) { + this.cert = cert; + return this; + } + + @java.lang.Override + public _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3Options build() { + return new EventStreamCloudEventConnectionCreatedObject3Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + pingFederateBaseUrl, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 00000000..5fe45c80 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 00000000..5da5b1ed --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 00000000..5b996059 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.java new file mode 100644 index 00000000..52115e27 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 00000000..d703acb8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum.java new file mode 100644 index 00000000..6bafef1f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..20d39fe0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 00000000..c5d75533 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSubject.java new file mode 100644 index 00000000..779ca1af --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionCreatedObject3OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3StrategyEnum.java new file mode 100644 index 00000000..43e0dff2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionCreatedObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PINGFEDERATE: + return visitor.visitPingfederate(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionCreatedObject3StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PINGFEDERATE, + + UNKNOWN + } + + public interface Visitor { + T visitPingfederate(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java new file mode 100644 index 00000000..7ab40180 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4 + && equalTo((EventStreamCloudEventConnectionCreatedObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject4 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject4Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject4Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject4 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject4Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject4Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject4Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject4 build() { + return new EventStreamCloudEventConnectionCreatedObject4( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Authentication.java new file mode 100644 index 00000000..2b72f6ed --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject4Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject4Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject4Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject4Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.java new file mode 100644 index 00000000..c808f8ab --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Metadata.java new file mode 100644 index 00000000..4ea04e9b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject4Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject4Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Options.java new file mode 100644 index 00000000..5dead2ee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Options.java @@ -0,0 +1,564 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4Options { + private final Optional adfsServer; + + private final Optional certRolloverNotification; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional fedMetadataXml; + + private final Optional iconUrl; + + private final Optional> nonPersistentAttrs; + + private final Optional> prevThumbprints; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4Options( + Optional adfsServer, + Optional certRolloverNotification, + Optional> domainAliases, + Optional entityId, + Optional fedMetadataXml, + Optional iconUrl, + Optional> nonPersistentAttrs, + Optional> prevThumbprints, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional userIdAttribute, + Map additionalProperties) { + this.adfsServer = adfsServer; + this.certRolloverNotification = certRolloverNotification; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.fedMetadataXml = fedMetadataXml; + this.iconUrl = iconUrl; + this.nonPersistentAttrs = nonPersistentAttrs; + this.prevThumbprints = prevThumbprints; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + /** + * @return ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. + */ + @JsonProperty("adfs_server") + public Optional getAdfsServer() { + return adfsServer; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. + */ + @JsonProperty("fedMetadataXml") + public Optional getFedMetadataXml() { + return fedMetadataXml; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("prev_thumbprints") + public Optional> getPrevThumbprints() { + return prevThumbprints; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + /** + * @return Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4Options + && equalTo((EventStreamCloudEventConnectionCreatedObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4Options other) { + return adfsServer.equals(other.adfsServer) + && certRolloverNotification.equals(other.certRolloverNotification) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && fedMetadataXml.equals(other.fedMetadataXml) + && iconUrl.equals(other.iconUrl) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && prevThumbprints.equals(other.prevThumbprints) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adfsServer, + this.certRolloverNotification, + this.domainAliases, + this.entityId, + this.fedMetadataXml, + this.iconUrl, + this.nonPersistentAttrs, + this.prevThumbprints, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional adfsServer = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional fedMetadataXml = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional> prevThumbprints = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject4Options other) { + adfsServer(other.getAdfsServer()); + certRolloverNotification(other.getCertRolloverNotification()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + fedMetadataXml(other.getFedMetadataXml()); + iconUrl(other.getIconUrl()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + prevThumbprints(other.getPrevThumbprints()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + /** + *

ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent.

+ */ + @JsonSetter(value = "adfs_server", nulls = Nulls.SKIP) + public Builder adfsServer(Optional adfsServer) { + this.adfsServer = adfsServer; + return this; + } + + public Builder adfsServer(String adfsServer) { + this.adfsServer = Optional.ofNullable(adfsServer); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.

+ */ + @JsonSetter(value = "fedMetadataXml", nulls = Nulls.SKIP) + public Builder fedMetadataXml(Optional fedMetadataXml) { + this.fedMetadataXml = fedMetadataXml; + return this; + } + + public Builder fedMetadataXml(String fedMetadataXml) { + this.fedMetadataXml = Optional.ofNullable(fedMetadataXml); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "prev_thumbprints", nulls = Nulls.SKIP) + public Builder prevThumbprints(Optional> prevThumbprints) { + this.prevThumbprints = prevThumbprints; + return this; + } + + public Builder prevThumbprints(List prevThumbprints) { + this.prevThumbprints = Optional.ofNullable(prevThumbprints); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + /** + *

Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Tenant domain

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject4Options build() { + return new EventStreamCloudEventConnectionCreatedObject4Options( + adfsServer, + certRolloverNotification, + domainAliases, + entityId, + fedMetadataXml, + iconUrl, + nonPersistentAttrs, + prevThumbprints, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..ccb21afe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 00000000..d44f2a0c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4StrategyEnum.java new file mode 100644 index 00000000..5fb4a75c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject4StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionCreatedObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject4StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject4StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ADFS: + return visitor.visitAdfs(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionCreatedObject4StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ADFS, + + UNKNOWN + } + + public interface Visitor { + T visitAdfs(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java new file mode 100644 index 00000000..70293f1c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java @@ -0,0 +1,515 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5 + && equalTo((EventStreamCloudEventConnectionCreatedObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject5 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject5Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy; + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject5 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject5Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject5Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject5Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject5 build() { + return new EventStreamCloudEventConnectionCreatedObject5( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Authentication.java new file mode 100644 index 00000000..cbf22b68 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject5Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject5Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject5Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject5Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.java new file mode 100644 index 00000000..f92318f2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Metadata.java new file mode 100644 index 00000000..01ddbe4b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject5Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject5Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java new file mode 100644 index 00000000..fec1b102 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java @@ -0,0 +1,657 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5Options { + private final Optional agentIp; + + private final Optional agentMode; + + private final Optional agentVersion; + + private final Optional bruteForceProtection; + + private final Optional certAuth; + + private final Optional> certs; + + private final Optional disableCache; + + private final Optional disableSelfServiceChangePassword; + + private final Optional> domainAliases; + + private final Optional iconUrl; + + private final Optional> ips; + + private final Optional kerberos; + + private final Optional> nonPersistentAttrs; + + private final Optional + setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5Options( + Optional agentIp, + Optional agentMode, + Optional agentVersion, + Optional bruteForceProtection, + Optional certAuth, + Optional> certs, + Optional disableCache, + Optional disableSelfServiceChangePassword, + Optional> domainAliases, + Optional iconUrl, + Optional> ips, + Optional kerberos, + Optional> nonPersistentAttrs, + Optional + setUserRootAttributes, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Map additionalProperties) { + this.agentIp = agentIp; + this.agentMode = agentMode; + this.agentVersion = agentVersion; + this.bruteForceProtection = bruteForceProtection; + this.certAuth = certAuth; + this.certs = certs; + this.disableCache = disableCache; + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + this.domainAliases = domainAliases; + this.iconUrl = iconUrl; + this.ips = ips; + this.kerberos = kerberos; + this.nonPersistentAttrs = nonPersistentAttrs; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). + */ + @JsonProperty("agentIP") + public Optional getAgentIp() { + return agentIp; + } + + /** + * @return When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). + */ + @JsonProperty("agentMode") + public Optional getAgentMode() { + return agentMode; + } + + /** + * @return Version identifier of the installed AD connector agent software (managed by the AD Connector agent). + */ + @JsonProperty("agentVersion") + public Optional getAgentVersion() { + return agentVersion; + } + + /** + * @return Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. + */ + @JsonProperty("brute_force_protection") + public Optional getBruteForceProtection() { + return bruteForceProtection; + } + + /** + * @return Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint + */ + @JsonProperty("certAuth") + public Optional getCertAuth() { + return certAuth; + } + + /** + * @return Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). + */ + @JsonProperty("certs") + public Optional> getCerts() { + return certs; + } + + /** + * @return When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory + */ + @JsonProperty("disable_cache") + public Optional getDisableCache() { + return disableCache; + } + + /** + * @return When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets + */ + @JsonProperty("disable_self_service_change_password") + public Optional getDisableSelfServiceChangePassword() { + return disableSelfServiceChangePassword; + } + + /** + * @return List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. + */ + @JsonProperty("ips") + public Optional> getIps() { + return ips; + } + + /** + * @return Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges + */ + @JsonProperty("kerberos") + public Optional getKerberos() { + return kerberos; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Primary AD domain hint used for HRD and discovery. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5Options + && equalTo((EventStreamCloudEventConnectionCreatedObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5Options other) { + return agentIp.equals(other.agentIp) + && agentMode.equals(other.agentMode) + && agentVersion.equals(other.agentVersion) + && bruteForceProtection.equals(other.bruteForceProtection) + && certAuth.equals(other.certAuth) + && certs.equals(other.certs) + && disableCache.equals(other.disableCache) + && disableSelfServiceChangePassword.equals(other.disableSelfServiceChangePassword) + && domainAliases.equals(other.domainAliases) + && iconUrl.equals(other.iconUrl) + && ips.equals(other.ips) + && kerberos.equals(other.kerberos) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.agentIp, + this.agentMode, + this.agentVersion, + this.bruteForceProtection, + this.certAuth, + this.certs, + this.disableCache, + this.disableSelfServiceChangePassword, + this.domainAliases, + this.iconUrl, + this.ips, + this.kerberos, + this.nonPersistentAttrs, + this.setUserRootAttributes, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional agentIp = Optional.empty(); + + private Optional agentMode = Optional.empty(); + + private Optional agentVersion = Optional.empty(); + + private Optional bruteForceProtection = Optional.empty(); + + private Optional certAuth = Optional.empty(); + + private Optional> certs = Optional.empty(); + + private Optional disableCache = Optional.empty(); + + private Optional disableSelfServiceChangePassword = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> ips = Optional.empty(); + + private Optional kerberos = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject5Options other) { + agentIp(other.getAgentIp()); + agentMode(other.getAgentMode()); + agentVersion(other.getAgentVersion()); + bruteForceProtection(other.getBruteForceProtection()); + certAuth(other.getCertAuth()); + certs(other.getCerts()); + disableCache(other.getDisableCache()); + disableSelfServiceChangePassword(other.getDisableSelfServiceChangePassword()); + domainAliases(other.getDomainAliases()); + iconUrl(other.getIconUrl()); + ips(other.getIps()); + kerberos(other.getKerberos()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentIP", nulls = Nulls.SKIP) + public Builder agentIp(Optional agentIp) { + this.agentIp = agentIp; + return this; + } + + public Builder agentIp(String agentIp) { + this.agentIp = Optional.ofNullable(agentIp); + return this; + } + + /** + *

When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentMode", nulls = Nulls.SKIP) + public Builder agentMode(Optional agentMode) { + this.agentMode = agentMode; + return this; + } + + public Builder agentMode(Boolean agentMode) { + this.agentMode = Optional.ofNullable(agentMode); + return this; + } + + /** + *

Version identifier of the installed AD connector agent software (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentVersion", nulls = Nulls.SKIP) + public Builder agentVersion(Optional agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + public Builder agentVersion(String agentVersion) { + this.agentVersion = Optional.ofNullable(agentVersion); + return this; + } + + /** + *

Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures.

+ */ + @JsonSetter(value = "brute_force_protection", nulls = Nulls.SKIP) + public Builder bruteForceProtection(Optional bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + public Builder bruteForceProtection(Boolean bruteForceProtection) { + this.bruteForceProtection = Optional.ofNullable(bruteForceProtection); + return this; + } + + /** + *

Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint

+ */ + @JsonSetter(value = "certAuth", nulls = Nulls.SKIP) + public Builder certAuth(Optional certAuth) { + this.certAuth = certAuth; + return this; + } + + public Builder certAuth(Boolean certAuth) { + this.certAuth = Optional.ofNullable(certAuth); + return this; + } + + /** + *

Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "certs", nulls = Nulls.SKIP) + public Builder certs(Optional> certs) { + this.certs = certs; + return this; + } + + public Builder certs(List certs) { + this.certs = Optional.ofNullable(certs); + return this; + } + + /** + *

When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory

+ */ + @JsonSetter(value = "disable_cache", nulls = Nulls.SKIP) + public Builder disableCache(Optional disableCache) { + this.disableCache = disableCache; + return this; + } + + public Builder disableCache(Boolean disableCache) { + this.disableCache = Optional.ofNullable(disableCache); + return this; + } + + /** + *

When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets

+ */ + @JsonSetter(value = "disable_self_service_change_password", nulls = Nulls.SKIP) + public Builder disableSelfServiceChangePassword(Optional disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + return this; + } + + public Builder disableSelfServiceChangePassword(Boolean disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = Optional.ofNullable(disableSelfServiceChangePassword); + return this; + } + + /** + *

List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication.

+ */ + @JsonSetter(value = "ips", nulls = Nulls.SKIP) + public Builder ips(Optional> ips) { + this.ips = ips; + return this; + } + + public Builder ips(List ips) { + this.ips = Optional.ofNullable(ips); + return this; + } + + /** + *

Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges

+ */ + @JsonSetter(value = "kerberos", nulls = Nulls.SKIP) + public Builder kerberos(Optional kerberos) { + this.kerberos = kerberos; + return this; + } + + public Builder kerberos(Boolean kerberos) { + this.kerberos = Optional.ofNullable(kerberos); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + /** + *

The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Primary AD domain hint used for HRD and discovery.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject5Options build() { + return new EventStreamCloudEventConnectionCreatedObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + nonPersistentAttrs, + setUserRootAttributes, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..0a89c126 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5StrategyEnum.java new file mode 100644 index 00000000..caacd5cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject5StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject5StrategyEnum AD = + new EventStreamCloudEventConnectionCreatedObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject5StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject5StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AD: + return visitor.visitAd(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionCreatedObject5StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java new file mode 100644 index 00000000..4296b9c9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6 + && equalTo((EventStreamCloudEventConnectionCreatedObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject6 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject6Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject6Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject6Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject6Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject6Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6 build() { + return new EventStreamCloudEventConnectionCreatedObject6( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Authentication.java new file mode 100644 index 00000000..d3dc3e4a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject6Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.java new file mode 100644 index 00000000..af4973bc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Metadata.java new file mode 100644 index 00000000..2938537c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject6Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject6Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java new file mode 100644 index 00000000..01441213 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java @@ -0,0 +1,1112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6Options { + private final Optional adminAccessTokenExpiresin; + + private final Optional allowSettingLoginScopes; + + private final Optional apiEnableGroups; + + private final Optional apiEnableUsers; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional email; + + private final Optional extAgreedTerms; + + private final Optional extGroups; + + private final Optional extGroupsExtended; + + private final Optional extIsAdmin; + + private final Optional extIsSuspended; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional handleLoginFromSocial; + + private final Optional iconUrl; + + private final Optional mapUserIdToId; + + private final Optional> nonPersistentAttrs; + + private final Optional profile; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6Options( + Optional adminAccessTokenExpiresin, + Optional allowSettingLoginScopes, + Optional apiEnableGroups, + Optional apiEnableUsers, + String clientId, + Optional domain, + Optional> domainAliases, + Optional email, + Optional extAgreedTerms, + Optional extGroups, + Optional extGroupsExtended, + Optional extIsAdmin, + Optional extIsSuspended, + Optional + federatedConnectionsAccessTokens, + Optional handleLoginFromSocial, + Optional iconUrl, + Optional mapUserIdToId, + Optional> nonPersistentAttrs, + Optional profile, + Optional> scope, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional> upstreamParams, + Map additionalProperties) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + this.allowSettingLoginScopes = allowSettingLoginScopes; + this.apiEnableGroups = apiEnableGroups; + this.apiEnableUsers = apiEnableUsers; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.email = email; + this.extAgreedTerms = extAgreedTerms; + this.extGroups = extGroups; + this.extGroupsExtended = extGroupsExtended; + this.extIsAdmin = extIsAdmin; + this.extIsSuspended = extIsSuspended; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.handleLoginFromSocial = handleLoginFromSocial; + this.iconUrl = iconUrl; + this.mapUserIdToId = mapUserIdToId; + this.nonPersistentAttrs = nonPersistentAttrs; + this.profile = profile; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. + */ + @JsonProperty("admin_access_token_expiresin") + public Optional getAdminAccessTokenExpiresin() { + return adminAccessTokenExpiresin; + } + + /** + * @return When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. + */ + @JsonProperty("allow_setting_login_scopes") + public Optional getAllowSettingLoginScopes() { + return allowSettingLoginScopes; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. + */ + @JsonProperty("api_enable_groups") + public Optional getApiEnableGroups() { + return apiEnableGroups; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return Primary Google Workspace domain name that users must belong to. + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return Whether the OAuth flow requests the email scope. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Fetches the agreedToTerms flag from the Google Directory profile. + */ + @JsonProperty("ext_agreed_terms") + public Optional getExtAgreedTerms() { + return extAgreedTerms; + } + + /** + * @return Enables enrichment with Google group memberships (required for ext_groups_extended). + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true. + */ + @JsonProperty("ext_groups_extended") + public Optional getExtGroupsExtended() { + return extGroupsExtended; + } + + /** + * @return Fetches the Google Directory admin flag for the signing-in user. + */ + @JsonProperty("ext_is_admin") + public Optional getExtIsAdmin() { + return extIsAdmin; + } + + /** + * @return Fetches the Google Directory suspended flag for the signing-in user. + */ + @JsonProperty("ext_is_suspended") + public Optional getExtIsSuspended() { + return extIsSuspended; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. + */ + @JsonProperty("handle_login_from_social") + public Optional getHandleLoginFromSocial() { + return handleLoginFromSocial; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. + */ + @JsonProperty("map_user_id_to_id") + public Optional getMapUserIdToId() { + return mapUserIdToId; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Whether the OAuth flow requests the profile scope. + */ + @JsonProperty("profile") + public Optional getProfile() { + return profile; + } + + /** + * @return Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The Google Workspace primary domain used to identify the organization during authentication. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6Options + && equalTo((EventStreamCloudEventConnectionCreatedObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6Options other) { + return adminAccessTokenExpiresin.equals(other.adminAccessTokenExpiresin) + && allowSettingLoginScopes.equals(other.allowSettingLoginScopes) + && apiEnableGroups.equals(other.apiEnableGroups) + && apiEnableUsers.equals(other.apiEnableUsers) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && email.equals(other.email) + && extAgreedTerms.equals(other.extAgreedTerms) + && extGroups.equals(other.extGroups) + && extGroupsExtended.equals(other.extGroupsExtended) + && extIsAdmin.equals(other.extIsAdmin) + && extIsSuspended.equals(other.extIsSuspended) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && handleLoginFromSocial.equals(other.handleLoginFromSocial) + && iconUrl.equals(other.iconUrl) + && mapUserIdToId.equals(other.mapUserIdToId) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && profile.equals(other.profile) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adminAccessTokenExpiresin, + this.allowSettingLoginScopes, + this.apiEnableGroups, + this.apiEnableUsers, + this.clientId, + this.domain, + this.domainAliases, + this.email, + this.extAgreedTerms, + this.extGroups, + this.extGroupsExtended, + this.extIsAdmin, + this.extIsSuspended, + this.federatedConnectionsAccessTokens, + this.handleLoginFromSocial, + this.iconUrl, + this.mapUserIdToId, + this.nonPersistentAttrs, + this.profile, + this.scope, + this.setUserRootAttributes, + this.tenantDomain, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionCreatedObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin); + + _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin); + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes); + + _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + _FinalStage apiEnableGroups(Optional apiEnableGroups); + + _FinalStage apiEnableGroups(Boolean apiEnableGroups); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + _FinalStage email(Optional email); + + _FinalStage email(Boolean email); + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + _FinalStage extAgreedTerms(Optional extAgreedTerms); + + _FinalStage extAgreedTerms(Boolean extAgreedTerms); + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + _FinalStage extGroupsExtended(Optional extGroupsExtended); + + _FinalStage extGroupsExtended(Boolean extGroupsExtended); + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + _FinalStage extIsAdmin(Optional extIsAdmin); + + _FinalStage extIsAdmin(Boolean extIsAdmin); + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + _FinalStage extIsSuspended(Optional extIsSuspended); + + _FinalStage extIsSuspended(Boolean extIsSuspended); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); + + _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + _FinalStage mapUserIdToId(Optional mapUserIdToId); + + _FinalStage mapUserIdToId(Boolean mapUserIdToId); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + _FinalStage profile(Optional profile); + + _FinalStage profile(Boolean profile); + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional> upstreamParams = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional profile = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional mapUserIdToId = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional handleLoginFromSocial = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extIsSuspended = Optional.empty(); + + private Optional extIsAdmin = Optional.empty(); + + private Optional extGroupsExtended = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional extAgreedTerms = Optional.empty(); + + private Optional email = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + private Optional apiEnableGroups = Optional.empty(); + + private Optional allowSettingLoginScopes = Optional.empty(); + + private Optional adminAccessTokenExpiresin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6Options other) { + adminAccessTokenExpiresin(other.getAdminAccessTokenExpiresin()); + allowSettingLoginScopes(other.getAllowSettingLoginScopes()); + apiEnableGroups(other.getApiEnableGroups()); + apiEnableUsers(other.getApiEnableUsers()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + email(other.getEmail()); + extAgreedTerms(other.getExtAgreedTerms()); + extGroups(other.getExtGroups()); + extGroupsExtended(other.getExtGroupsExtended()); + extIsAdmin(other.getExtIsAdmin()); + extIsSuspended(other.getExtIsSuspended()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + handleLoginFromSocial(other.getHandleLoginFromSocial()); + iconUrl(other.getIconUrl()); + mapUserIdToId(other.getMapUserIdToId()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + profile(other.getProfile()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage profile(Boolean profile) { + this.profile = Optional.ofNullable(profile); + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + @java.lang.Override + @JsonSetter(value = "profile", nulls = Nulls.SKIP) + public _FinalStage profile(Optional profile) { + this.profile = profile; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage mapUserIdToId(Boolean mapUserIdToId) { + this.mapUserIdToId = Optional.ofNullable(mapUserIdToId); + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + @java.lang.Override + @JsonSetter(value = "map_user_id_to_id", nulls = Nulls.SKIP) + public _FinalStage mapUserIdToId(Optional mapUserIdToId) { + this.mapUserIdToId = mapUserIdToId; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial) { + this.handleLoginFromSocial = Optional.ofNullable(handleLoginFromSocial); + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + @java.lang.Override + @JsonSetter(value = "handle_login_from_social", nulls = Nulls.SKIP) + public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial) { + this.handleLoginFromSocial = handleLoginFromSocial; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsSuspended(Boolean extIsSuspended) { + this.extIsSuspended = Optional.ofNullable(extIsSuspended); + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) + public _FinalStage extIsSuspended(Optional extIsSuspended) { + this.extIsSuspended = extIsSuspended; + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsAdmin(Boolean extIsAdmin) { + this.extIsAdmin = Optional.ofNullable(extIsAdmin); + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_admin", nulls = Nulls.SKIP) + public _FinalStage extIsAdmin(Optional extIsAdmin) { + this.extIsAdmin = extIsAdmin; + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroupsExtended(Boolean extGroupsExtended) { + this.extGroupsExtended = Optional.ofNullable(extGroupsExtended); + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups_extended", nulls = Nulls.SKIP) + public _FinalStage extGroupsExtended(Optional extGroupsExtended) { + this.extGroupsExtended = extGroupsExtended; + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extAgreedTerms(Boolean extAgreedTerms) { + this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) + public _FinalStage extAgreedTerms(Optional extAgreedTerms) { + this.extAgreedTerms = extAgreedTerms; + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage email(Boolean email) { + this.email = Optional.ofNullable(email); + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableGroups(Boolean apiEnableGroups) { + this.apiEnableGroups = Optional.ofNullable(apiEnableGroups); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_groups", nulls = Nulls.SKIP) + public _FinalStage apiEnableGroups(Optional apiEnableGroups) { + this.apiEnableGroups = apiEnableGroups; + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes) { + this.allowSettingLoginScopes = Optional.ofNullable(allowSettingLoginScopes); + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + @java.lang.Override + @JsonSetter(value = "allow_setting_login_scopes", nulls = Nulls.SKIP) + public _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes) { + this.allowSettingLoginScopes = allowSettingLoginScopes; + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = Optional.ofNullable(adminAccessTokenExpiresin); + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + @java.lang.Override + @JsonSetter(value = "admin_access_token_expiresin", nulls = Nulls.SKIP) + public _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6Options build() { + return new EventStreamCloudEventConnectionCreatedObject6Options( + adminAccessTokenExpiresin, + allowSettingLoginScopes, + apiEnableGroups, + apiEnableUsers, + clientId, + domain, + domainAliases, + email, + extAgreedTerms, + extGroups, + extGroupsExtended, + extIsAdmin, + extIsSuspended, + federatedConnectionsAccessTokens, + handleLoginFromSocial, + iconUrl, + mapUserIdToId, + nonPersistentAttrs, + profile, + scope, + setUserRootAttributes, + tenantDomain, + upstreamParams, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..e3ad1414 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..d02b3cf9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6StrategyEnum.java new file mode 100644 index 00000000..e9338cfc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject6StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionCreatedObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject6StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject6StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionCreatedObject6StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + GOOGLE_APPS, + + UNKNOWN + } + + public interface Visitor { + T visitGoogleApps(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java new file mode 100644 index 00000000..ad634789 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7 + && equalTo((EventStreamCloudEventConnectionCreatedObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject7 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject7Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject7Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject7Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject7Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject7Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7 build() { + return new EventStreamCloudEventConnectionCreatedObject7( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Authentication.java new file mode 100644 index 00000000..06ff9588 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject7Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.java new file mode 100644 index 00000000..fc578503 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Metadata.java new file mode 100644 index 00000000..ee65b811 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject7Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject7Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java new file mode 100644 index 00000000..20bc92b9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java @@ -0,0 +1,1297 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7Options { + private final Optional apiEnableUsers; + + private final Optional appDomain; + + private final Optional appId; + + private final Optional basicProfile; + + private final Optional certRolloverNotification; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional extGroups; + + private final Optional extNestedGroups; + + private final Optional extProfile; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional granted; + + private final Optional iconUrl; + + private final Optional identityApi; + + private final Optional maxGroupsToRetrieve; + + private final Optional> nonPersistentAttrs; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional tenantDomain; + + private final Optional tenantId; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional useWsfed; + + private final Optional useCommonEndpoint; + + private final Optional useridAttribute; + + private final Optional waadProtocol; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7Options( + Optional apiEnableUsers, + Optional appDomain, + Optional appId, + Optional basicProfile, + Optional certRolloverNotification, + String clientId, + Optional domain, + Optional> domainAliases, + Optional extGroups, + Optional extNestedGroups, + Optional extProfile, + Optional + federatedConnectionsAccessTokens, + Optional granted, + Optional iconUrl, + Optional identityApi, + Optional maxGroupsToRetrieve, + Optional> nonPersistentAttrs, + Optional> scope, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional tenantDomain, + Optional tenantId, + Optional> thumbprints, + Optional> upstreamParams, + Optional useWsfed, + Optional useCommonEndpoint, + Optional useridAttribute, + Optional waadProtocol, + Map additionalProperties) { + this.apiEnableUsers = apiEnableUsers; + this.appDomain = appDomain; + this.appId = appId; + this.basicProfile = basicProfile; + this.certRolloverNotification = certRolloverNotification; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.extGroups = extGroups; + this.extNestedGroups = extNestedGroups; + this.extProfile = extProfile; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.granted = granted; + this.iconUrl = iconUrl; + this.identityApi = identityApi; + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + this.nonPersistentAttrs = nonPersistentAttrs; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.tenantDomain = tenantDomain; + this.tenantId = tenantId; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.useWsfed = useWsfed; + this.useCommonEndpoint = useCommonEndpoint; + this.useridAttribute = useridAttribute; + this.waadProtocol = waadProtocol; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enable users API + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. + */ + @JsonProperty("app_domain") + public Optional getAppDomain() { + return appDomain; + } + + /** + * @return The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. + */ + @JsonProperty("app_id") + public Optional getAppId() { + return appId; + } + + /** + * @return Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. + */ + @JsonProperty("basic_profile") + public Optional getBasicProfile() { + return basicProfile; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. + */ + @JsonProperty("ext_nested_groups") + public Optional getExtNestedGroups() { + return extNestedGroups; + } + + /** + * @return When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. + */ + @JsonProperty("ext_profile") + public Optional getExtProfile() { + return extProfile; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. + */ + @JsonProperty("granted") + public Optional getGranted() { + return granted; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("identity_api") + public Optional getIdentityApi() { + return identityApi; + } + + /** + * @return Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. + */ + @JsonProperty("max_groups_to_retrieve") + public Optional getMaxGroupsToRetrieve() { + return maxGroupsToRetrieve; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. + */ + @JsonProperty("tenantId") + public Optional getTenantId() { + return tenantId; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. + */ + @JsonProperty("use_wsfed") + public Optional getUseWsfed() { + return useWsfed; + } + + /** + * @return When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. + */ + @JsonProperty("useCommonEndpoint") + public Optional getUseCommonEndpoint() { + return useCommonEndpoint; + } + + @JsonProperty("userid_attribute") + public Optional getUseridAttribute() { + return useridAttribute; + } + + @JsonProperty("waad_protocol") + public Optional getWaadProtocol() { + return waadProtocol; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7Options + && equalTo((EventStreamCloudEventConnectionCreatedObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7Options other) { + return apiEnableUsers.equals(other.apiEnableUsers) + && appDomain.equals(other.appDomain) + && appId.equals(other.appId) + && basicProfile.equals(other.basicProfile) + && certRolloverNotification.equals(other.certRolloverNotification) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && extGroups.equals(other.extGroups) + && extNestedGroups.equals(other.extNestedGroups) + && extProfile.equals(other.extProfile) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && granted.equals(other.granted) + && iconUrl.equals(other.iconUrl) + && identityApi.equals(other.identityApi) + && maxGroupsToRetrieve.equals(other.maxGroupsToRetrieve) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && tenantDomain.equals(other.tenantDomain) + && tenantId.equals(other.tenantId) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && useWsfed.equals(other.useWsfed) + && useCommonEndpoint.equals(other.useCommonEndpoint) + && useridAttribute.equals(other.useridAttribute) + && waadProtocol.equals(other.waadProtocol); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.apiEnableUsers, + this.appDomain, + this.appId, + this.basicProfile, + this.certRolloverNotification, + this.clientId, + this.domain, + this.domainAliases, + this.extGroups, + this.extNestedGroups, + this.extProfile, + this.federatedConnectionsAccessTokens, + this.granted, + this.iconUrl, + this.identityApi, + this.maxGroupsToRetrieve, + this.nonPersistentAttrs, + this.scope, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.tenantDomain, + this.tenantId, + this.thumbprints, + this.upstreamParams, + this.useWsfed, + this.useCommonEndpoint, + this.useridAttribute, + this.waadProtocol); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionCreatedObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Enable users API

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + _FinalStage appDomain(Optional appDomain); + + _FinalStage appDomain(String appDomain); + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + _FinalStage appId(Optional appId); + + _FinalStage appId(String appId); + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + _FinalStage basicProfile(Optional basicProfile); + + _FinalStage basicProfile(Boolean basicProfile); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + _FinalStage extNestedGroups(Optional extNestedGroups); + + _FinalStage extNestedGroups(Boolean extNestedGroups); + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + _FinalStage extProfile(Optional extProfile); + + _FinalStage extProfile(Boolean extProfile); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + _FinalStage granted(Optional granted); + + _FinalStage granted(Boolean granted); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage identityApi( + Optional identityApi); + + _FinalStage identityApi(EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum identityApi); + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve); + + _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + _FinalStage tenantId(Optional tenantId); + + _FinalStage tenantId(String tenantId); + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + _FinalStage useWsfed(Optional useWsfed); + + _FinalStage useWsfed(Boolean useWsfed); + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + _FinalStage useCommonEndpoint(Optional useCommonEndpoint); + + _FinalStage useCommonEndpoint(Boolean useCommonEndpoint); + + _FinalStage useridAttribute( + Optional useridAttribute); + + _FinalStage useridAttribute( + EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol(EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum waadProtocol); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional waadProtocol = + Optional.empty(); + + private Optional useridAttribute = + Optional.empty(); + + private Optional useCommonEndpoint = Optional.empty(); + + private Optional useWsfed = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantId = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional maxGroupsToRetrieve = Optional.empty(); + + private Optional identityApi = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional granted = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extProfile = Optional.empty(); + + private Optional extNestedGroups = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional basicProfile = Optional.empty(); + + private Optional appId = Optional.empty(); + + private Optional appDomain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7Options other) { + apiEnableUsers(other.getApiEnableUsers()); + appDomain(other.getAppDomain()); + appId(other.getAppId()); + basicProfile(other.getBasicProfile()); + certRolloverNotification(other.getCertRolloverNotification()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + extGroups(other.getExtGroups()); + extNestedGroups(other.getExtNestedGroups()); + extProfile(other.getExtProfile()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + granted(other.getGranted()); + iconUrl(other.getIconUrl()); + identityApi(other.getIdentityApi()); + maxGroupsToRetrieve(other.getMaxGroupsToRetrieve()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + tenantDomain(other.getTenantDomain()); + tenantId(other.getTenantId()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + useWsfed(other.getUseWsfed()); + useCommonEndpoint(other.getUseCommonEndpoint()); + useridAttribute(other.getUseridAttribute()); + waadProtocol(other.getWaadProtocol()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage waadProtocol( + EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum waadProtocol) { + this.waadProtocol = Optional.ofNullable(waadProtocol); + return this; + } + + @java.lang.Override + @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) + public _FinalStage waadProtocol( + Optional waadProtocol) { + this.waadProtocol = waadProtocol; + return this; + } + + @java.lang.Override + public _FinalStage useridAttribute( + EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum useridAttribute) { + this.useridAttribute = Optional.ofNullable(useridAttribute); + return this; + } + + @java.lang.Override + @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) + public _FinalStage useridAttribute( + Optional useridAttribute) { + this.useridAttribute = useridAttribute; + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useCommonEndpoint(Boolean useCommonEndpoint) { + this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) + public _FinalStage useCommonEndpoint(Optional useCommonEndpoint) { + this.useCommonEndpoint = useCommonEndpoint; + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useWsfed(Boolean useWsfed) { + this.useWsfed = Optional.ofNullable(useWsfed); + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + @java.lang.Override + @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) + public _FinalStage useWsfed(Optional useWsfed) { + this.useWsfed = useWsfed; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantId(String tenantId) { + this.tenantId = Optional.ofNullable(tenantId); + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + @java.lang.Override + @JsonSetter(value = "tenantId", nulls = Nulls.SKIP) + public _FinalStage tenantId(Optional tenantId) { + this.tenantId = tenantId; + return this; + } + + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + @java.lang.Override + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + @java.lang.Override + @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) + public _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + return this; + } + + @java.lang.Override + public _FinalStage identityApi( + EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum identityApi) { + this.identityApi = Optional.ofNullable(identityApi); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) + public _FinalStage identityApi( + Optional identityApi) { + this.identityApi = identityApi; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage granted(Boolean granted) { + this.granted = Optional.ofNullable(granted); + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + @java.lang.Override + @JsonSetter(value = "granted", nulls = Nulls.SKIP) + public _FinalStage granted(Optional granted) { + this.granted = granted; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extProfile(Boolean extProfile) { + this.extProfile = Optional.ofNullable(extProfile); + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) + public _FinalStage extProfile(Optional extProfile) { + this.extProfile = extProfile; + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extNestedGroups(Boolean extNestedGroups) { + this.extNestedGroups = Optional.ofNullable(extNestedGroups); + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_nested_groups", nulls = Nulls.SKIP) + public _FinalStage extNestedGroups(Optional extNestedGroups) { + this.extNestedGroups = extNestedGroups; + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) + public _FinalStage basicProfile(Optional basicProfile) { + this.basicProfile = basicProfile; + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appId(String appId) { + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + @java.lang.Override + @JsonSetter(value = "app_id", nulls = Nulls.SKIP) + public _FinalStage appId(Optional appId) { + this.appId = appId; + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appDomain(String appDomain) { + this.appDomain = Optional.ofNullable(appDomain); + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + @java.lang.Override + @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) + public _FinalStage appDomain(Optional appDomain) { + this.appDomain = appDomain; + return this; + } + + /** + *

Enable users API

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enable users API

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7Options build() { + return new EventStreamCloudEventConnectionCreatedObject7Options( + apiEnableUsers, + appDomain, + appId, + basicProfile, + certRolloverNotification, + clientId, + domain, + domainAliases, + extGroups, + extNestedGroups, + extProfile, + federatedConnectionsAccessTokens, + granted, + iconUrl, + identityApi, + maxGroupsToRetrieve, + nonPersistentAttrs, + scope, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + tenantDomain, + tenantId, + thumbprints, + upstreamParams, + useWsfed, + useCommonEndpoint, + useridAttribute, + waadProtocol, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..75c6b940 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum.java new file mode 100644 index 00000000..9ff5ee86 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = new EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AZURE_ACTIVE_DIRECTORY_V10: + return visitor.visitAzureActiveDirectoryV10(); + case MICROSOFT_IDENTITY_PLATFORM_V20: + return visitor.visitMicrosoftIdentityPlatformV20(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum valueOf(String value) { + switch (value) { + case "azure-active-directory-v1.0": + return AZURE_ACTIVE_DIRECTORY_V10; + case "microsoft-identity-platform-v2.0": + return MICROSOFT_IDENTITY_PLATFORM_V20; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + MICROSOFT_IDENTITY_PLATFORM_V20, + + AZURE_ACTIVE_DIRECTORY_V10, + + UNKNOWN + } + + public interface Visitor { + T visitMicrosoftIdentityPlatformV20(); + + T visitAzureActiveDirectoryV10(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..4fc07b8e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 00000000..d360605e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum.java new file mode 100644 index 00000000..54ca576e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SUB: + return visitor.visitSub(); + case OID: + return visitor.visitOid(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum valueOf(String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OID, + + SUB, + + UNKNOWN + } + + public interface Visitor { + T visitOid(); + + T visitSub(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum.java new file mode 100644 index 00000000..1da1e1b0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID_CONNECT: + return visitor.visitOpenidConnect(); + case WS_FEDERATION: + return visitor.visitWsFederation(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WS_FEDERATION, + + OPENID_CONNECT, + + UNKNOWN + } + + public interface Visitor { + T visitWsFederation(); + + T visitOpenidConnect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7StrategyEnum.java new file mode 100644 index 00000000..226570f0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionCreatedObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WAAD: + return visitor.visitWaad(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionCreatedObject7StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedTypeEnum.java new file mode 100644 index 00000000..58e16549 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedTypeEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedTypeEnum { + public static final EventStreamCloudEventConnectionCreatedTypeEnum CONNECTION_CREATED = + new EventStreamCloudEventConnectionCreatedTypeEnum(Value.CONNECTION_CREATED, "connection.created"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedTypeEnum + && this.string.equals(((EventStreamCloudEventConnectionCreatedTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedTypeEnum valueOf(String value) { + switch (value) { + case "connection.created": + return CONNECTION_CREATED; + default: + return new EventStreamCloudEventConnectionCreatedTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_CREATED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionCreated(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java new file mode 100644 index 00000000..540c8747 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeleted.Builder.class) +public final class EventStreamCloudEventConnectionDeleted { + private final String offset; + + private final EventStreamCloudEventConnectionDeletedCloudEvent event; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeleted( + String offset, + EventStreamCloudEventConnectionDeletedCloudEvent event, + Map additionalProperties) { + this.offset = offset; + this.event = event; + this.additionalProperties = additionalProperties; + } + + /** + * @return Opaque cursor representing position in the stream. Pass as the from query parameter to resume. + */ + @JsonProperty("offset") + public String getOffset() { + return offset; + } + + @JsonProperty("event") + public EventStreamCloudEventConnectionDeletedCloudEvent getEvent() { + return event; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeleted + && equalTo((EventStreamCloudEventConnectionDeleted) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeleted other) { + return offset.equals(other.offset) && event.equals(other.event); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.offset, this.event); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OffsetStage builder() { + return new Builder(); + } + + public interface OffsetStage { + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ */ + EventStage offset(@NotNull String offset); + + Builder from(EventStreamCloudEventConnectionDeleted other); + } + + public interface EventStage { + _FinalStage event(@NotNull EventStreamCloudEventConnectionDeletedCloudEvent event); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeleted build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OffsetStage, EventStage, _FinalStage { + private String offset; + + private EventStreamCloudEventConnectionDeletedCloudEvent event; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeleted other) { + offset(other.getOffset()); + event(other.getEvent()); + return this; + } + + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("offset") + public EventStage offset(@NotNull String offset) { + this.offset = Objects.requireNonNull(offset, "offset must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("event") + public _FinalStage event(@NotNull EventStreamCloudEventConnectionDeletedCloudEvent event) { + this.event = Objects.requireNonNull(event, "event must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeleted build() { + return new EventStreamCloudEventConnectionDeleted(offset, event, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java new file mode 100644 index 00000000..eb445733 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java @@ -0,0 +1,396 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedCloudEvent.Builder.class) +public final class EventStreamCloudEventConnectionDeletedCloudEvent { + private final EventStreamCloudEventSpecVersionEnum specversion; + + private final EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type; + + private final String source; + + private final String id; + + private final OffsetDateTime time; + + private final EventStreamCloudEventConnectionDeletedData data; + + private final String a0Tenant; + + private final String a0Stream; + + private final Optional a0Purpose; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedCloudEvent( + EventStreamCloudEventSpecVersionEnum specversion, + EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type, + String source, + String id, + OffsetDateTime time, + EventStreamCloudEventConnectionDeletedData data, + String a0Tenant, + String a0Stream, + Optional a0Purpose, + Map additionalProperties) { + this.specversion = specversion; + this.type = type; + this.source = source; + this.id = id; + this.time = time; + this.data = data; + this.a0Tenant = a0Tenant; + this.a0Stream = a0Stream; + this.a0Purpose = a0Purpose; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("specversion") + public EventStreamCloudEventSpecVersionEnum getSpecversion() { + return specversion; + } + + @JsonProperty("type") + public EventStreamCloudEventConnectionDeletedCloudEventTypeEnum getType() { + return type; + } + + /** + * @return The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'. + */ + @JsonProperty("source") + public String getSource() { + return source; + } + + /** + * @return A unique identifier for the event. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return An ISO-8601 timestamp indicating when the event physically occurred. + */ + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + @JsonProperty("data") + public EventStreamCloudEventConnectionDeletedData getData() { + return data; + } + + /** + * @return The auth0 tenant ID to which the event is associated. + */ + @JsonProperty("a0tenant") + public String getA0Tenant() { + return a0Tenant; + } + + /** + * @return The auth0 event stream ID of the stream the event was delivered on. + */ + @JsonProperty("a0stream") + public String getA0Stream() { + return a0Stream; + } + + @JsonProperty("a0purpose") + public Optional getA0Purpose() { + return a0Purpose; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedCloudEvent + && equalTo((EventStreamCloudEventConnectionDeletedCloudEvent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedCloudEvent other) { + return specversion.equals(other.specversion) + && type.equals(other.type) + && source.equals(other.source) + && id.equals(other.id) + && time.equals(other.time) + && data.equals(other.data) + && a0Tenant.equals(other.a0Tenant) + && a0Stream.equals(other.a0Stream) + && a0Purpose.equals(other.a0Purpose); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.specversion, + this.type, + this.source, + this.id, + this.time, + this.data, + this.a0Tenant, + this.a0Stream, + this.a0Purpose); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static SpecversionStage builder() { + return new Builder(); + } + + public interface SpecversionStage { + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); + + Builder from(EventStreamCloudEventConnectionDeletedCloudEvent other); + } + + public interface TypeStage { + SourceStage type(@NotNull EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type); + } + + public interface SourceStage { + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ */ + IdStage source(@NotNull String source); + } + + public interface IdStage { + /** + *

A unique identifier for the event.

+ */ + TimeStage id(@NotNull String id); + } + + public interface TimeStage { + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ */ + DataStage time(@NotNull OffsetDateTime time); + } + + public interface DataStage { + A0TenantStage data(@NotNull EventStreamCloudEventConnectionDeletedData data); + } + + public interface A0TenantStage { + /** + *

The auth0 tenant ID to which the event is associated.

+ */ + A0StreamStage a0Tenant(@NotNull String a0Tenant); + } + + public interface A0StreamStage { + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ */ + _FinalStage a0Stream(@NotNull String a0Stream); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedCloudEvent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage a0Purpose(Optional a0Purpose); + + _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements SpecversionStage, + TypeStage, + SourceStage, + IdStage, + TimeStage, + DataStage, + A0TenantStage, + A0StreamStage, + _FinalStage { + private EventStreamCloudEventSpecVersionEnum specversion; + + private EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type; + + private String source; + + private String id; + + private OffsetDateTime time; + + private EventStreamCloudEventConnectionDeletedData data; + + private String a0Tenant; + + private String a0Stream; + + private Optional a0Purpose = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedCloudEvent other) { + specversion(other.getSpecversion()); + type(other.getType()); + source(other.getSource()); + id(other.getId()); + time(other.getTime()); + data(other.getData()); + a0Tenant(other.getA0Tenant()); + a0Stream(other.getA0Stream()); + a0Purpose(other.getA0Purpose()); + return this; + } + + @java.lang.Override + @JsonSetter("specversion") + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { + this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public SourceStage type(@NotNull EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("source") + public IdStage source(@NotNull String source) { + this.source = Objects.requireNonNull(source, "source must not be null"); + return this; + } + + /** + *

A unique identifier for the event.

+ *

A unique identifier for the event.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public TimeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ *

An ISO-8601 timestamp indicating when the event physically occurred.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("time") + public DataStage time(@NotNull OffsetDateTime time) { + this.time = Objects.requireNonNull(time, "time must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("data") + public A0TenantStage data(@NotNull EventStreamCloudEventConnectionDeletedData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); + return this; + } + + /** + *

The auth0 tenant ID to which the event is associated.

+ *

The auth0 tenant ID to which the event is associated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0tenant") + public A0StreamStage a0Tenant(@NotNull String a0Tenant) { + this.a0Tenant = Objects.requireNonNull(a0Tenant, "a0Tenant must not be null"); + return this; + } + + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ *

The auth0 event stream ID of the stream the event was delivered on.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0stream") + public _FinalStage a0Stream(@NotNull String a0Stream) { + this.a0Stream = Objects.requireNonNull(a0Stream, "a0Stream must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose) { + this.a0Purpose = Optional.ofNullable(a0Purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "a0purpose", nulls = Nulls.SKIP) + public _FinalStage a0Purpose(Optional a0Purpose) { + this.a0Purpose = a0Purpose; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedCloudEvent build() { + return new EventStreamCloudEventConnectionDeletedCloudEvent( + specversion, type, source, id, time, data, a0Tenant, a0Stream, a0Purpose, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEventTypeEnum.java new file mode 100644 index 00000000..9ede038d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEventTypeEnum.java @@ -0,0 +1,77 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedCloudEventTypeEnum { + public static final EventStreamCloudEventConnectionDeletedCloudEventTypeEnum CONNECTION_DELETED = + new EventStreamCloudEventConnectionDeletedCloudEventTypeEnum( + Value.CONNECTION_DELETED, "connection.deleted"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedCloudEventTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedCloudEventTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedCloudEventTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedCloudEventTypeEnum valueOf(String value) { + switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; + default: + return new EventStreamCloudEventConnectionDeletedCloudEventTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_DELETED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionDeleted(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java new file mode 100644 index 00000000..5c37f09e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java @@ -0,0 +1,152 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedData.Builder.class) +public final class EventStreamCloudEventConnectionDeletedData { + private final EventStreamCloudEventConnectionDeletedObject object; + + private final Optional context; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedData( + EventStreamCloudEventConnectionDeletedObject object, + Optional context, + Map additionalProperties) { + this.object = object; + this.context = context; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("object") + public EventStreamCloudEventConnectionDeletedObject getObject() { + return object; + } + + @JsonProperty("context") + public Optional getContext() { + return context; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedData + && equalTo((EventStreamCloudEventConnectionDeletedData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedData other) { + return object.equals(other.object) && context.equals(other.context); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.object, this.context); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ObjectStage builder() { + return new Builder(); + } + + public interface ObjectStage { + _FinalStage object(@NotNull EventStreamCloudEventConnectionDeletedObject object); + + Builder from(EventStreamCloudEventConnectionDeletedData other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedData build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage context(Optional context); + + _FinalStage context(EventStreamCloudEventContext context); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ObjectStage, _FinalStage { + private EventStreamCloudEventConnectionDeletedObject object; + + private Optional context = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedData other) { + object(other.getObject()); + context(other.getContext()); + return this; + } + + @java.lang.Override + @JsonSetter("object") + public _FinalStage object(@NotNull EventStreamCloudEventConnectionDeletedObject object) { + this.object = Objects.requireNonNull(object, "object must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage context(EventStreamCloudEventContext context) { + this.context = Optional.ofNullable(context); + return this; + } + + @java.lang.Override + @JsonSetter(value = "context", nulls = Nulls.SKIP) + public _FinalStage context(Optional context) { + this.context = context; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedData build() { + return new EventStreamCloudEventConnectionDeletedData(object, context, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject.java new file mode 100644 index 00000000..c8180b9d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject.java @@ -0,0 +1,218 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Map; +import java.util.Objects; + +@JsonDeserialize(using = EventStreamCloudEventConnectionDeletedObject.Deserializer.class) +public final class EventStreamCloudEventConnectionDeletedObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionDeletedObject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject7) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject + && equalTo((EventStreamCloudEventConnectionDeletedObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject0 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 0); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject1 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 1); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject2 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 2); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject3 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 3); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject4 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 4); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject5 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 5); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject6 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 6); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject7 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionDeletedObject0 value); + + T visit(EventStreamCloudEventConnectionDeletedObject1 value); + + T visit(EventStreamCloudEventConnectionDeletedObject2 value); + + T visit(EventStreamCloudEventConnectionDeletedObject3 value); + + T visit(EventStreamCloudEventConnectionDeletedObject4 value); + + T visit(EventStreamCloudEventConnectionDeletedObject5 value); + + T visit(EventStreamCloudEventConnectionDeletedObject6 value); + + T visit(EventStreamCloudEventConnectionDeletedObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionDeletedObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject2.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject3.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject4.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject5.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject6.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java new file mode 100644 index 00000000..817394a2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0 { + private final Optional authentication; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional connectedAccounts; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.connectedAccounts = connectedAccounts; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0 + && equalTo((EventStreamCloudEventConnectionDeletedObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0 other) { + return authentication.equals(other.authentication) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && connectedAccounts.equals(other.connectedAccounts) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.connectedAccounts, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject0 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject0Authentication authentication); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject0Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject0Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0 other) { + authentication(other.getAuthentication()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + connectedAccounts(other.getConnectedAccounts()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject0Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject0Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject0Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0 build() { + return new EventStreamCloudEventConnectionDeletedObject0( + authentication, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + connectedAccounts, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Authentication.java new file mode 100644 index 00000000..33470018 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject0Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.java new file mode 100644 index 00000000..f7d362ba --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.java @@ -0,0 +1,150 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts( + boolean active, Optional crossAppAccess, Map additionalProperties) { + this.active = active; + this.crossAppAccess = crossAppAccess; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @JsonProperty("cross_app_access") + public Optional getCrossAppAccess() { + return crossAppAccess; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts other) { + return active == other.active && crossAppAccess.equals(other.crossAppAccess); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.crossAppAccess); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage crossAppAccess(Optional crossAppAccess); + + _FinalStage crossAppAccess(Boolean crossAppAccess); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + private Optional crossAppAccess = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts other) { + active(other.getActive()); + crossAppAccess(other.getCrossAppAccess()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccess(Boolean crossAppAccess) { + this.crossAppAccess = Optional.ofNullable(crossAppAccess); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access", nulls = Nulls.SKIP) + public _FinalStage crossAppAccess(Optional crossAppAccess) { + this.crossAppAccess = crossAppAccess; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts( + active, crossAppAccess, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Metadata.java new file mode 100644 index 00000000..172afd88 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject0Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject0Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java new file mode 100644 index 00000000..daf0272c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional discoveryUrl, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.discoveryUrl = discoveryUrl; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0Options + && equalTo((EventStreamCloudEventConnectionDeletedObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && discoveryUrl.equals(other.discoveryUrl) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.discoveryUrl, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap attributeMap); + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + _FinalStage discoveryUrl(Optional discoveryUrl); + + _FinalStage discoveryUrl(String discoveryUrl); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + discoveryUrl(other.getDiscoveryUrl()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + @java.lang.Override + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public _FinalStage discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0Options build() { + return new EventStreamCloudEventConnectionDeletedObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + discoveryUrl, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.java new file mode 100644 index 00000000..5e99d134 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 00000000..f71aa334 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum BIND_ALL = + new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BIND_ALL: + return visitor.visitBindAll(); + case USE_MAP: + return visitor.visitUseMap(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BIND_ALL, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBindAll(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.java new file mode 100644 index 00000000..33abd9a0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 00000000..759ee090 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 00000000..b7a40364 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..efea7ae3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 00000000..8ef66646 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java new file mode 100644 index 00000000..dea16359 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum.java new file mode 100644 index 00000000..c31b145f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..7d3a6548 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 00000000..db2bc778 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 00000000..ec8c01dd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 00000000..36e85b11 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum.java new file mode 100644 index 00000000..68837e93 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum.java @@ -0,0 +1,87 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FRONT_CHANNEL: + return visitor.visitFrontChannel(); + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + FRONT_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitFrontChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0StrategyEnum.java new file mode 100644 index 00000000..e5c8d30a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionDeletedObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedObject0StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java new file mode 100644 index 00000000..4ae5c52f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1 + && equalTo((EventStreamCloudEventConnectionDeletedObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject1 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject1Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject1Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject1Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject1Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject1Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1 build() { + return new EventStreamCloudEventConnectionDeletedObject1( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Authentication.java new file mode 100644 index 00000000..27c4cf7d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject1Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.java new file mode 100644 index 00000000..ddd38282 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Metadata.java new file mode 100644 index 00000000..11672d61 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject1Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject1Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java new file mode 100644 index 00000000..77422546 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional domain, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.domain = domain; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1Options + && equalTo((EventStreamCloudEventConnectionDeletedObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && domain.equals(other.domain) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.domain, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap attributeMap); + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + domain(other.getDomain()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1Options build() { + return new EventStreamCloudEventConnectionDeletedObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + domain, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.java new file mode 100644 index 00000000..a14bb7bc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 00000000..c8f7309e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum BASIC_PROFILE = + new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USE_MAP: + return visitor.visitUseMap(); + case BASIC_PROFILE: + return visitor.visitBasicProfile(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BASIC_PROFILE, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBasicProfile(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.java new file mode 100644 index 00000000..97b63837 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 00000000..b03b2ca8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 00000000..a04f3bf2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..57d40975 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 00000000..0d654431 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java new file mode 100644 index 00000000..c3382601 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum.java new file mode 100644 index 00000000..ce4014d7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..bc91bed9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 00000000..675a8ce1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 00000000..1fefbdcc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 00000000..3f4a5100 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum.java new file mode 100644 index 00000000..d7488b65 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1StrategyEnum.java new file mode 100644 index 00000000..f668f7d1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionDeletedObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OKTA: + return visitor.visitOkta(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionDeletedObject1StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OKTA, + + UNKNOWN + } + + public interface Visitor { + T visitOkta(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java new file mode 100644 index 00000000..341ffcd5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2 + && equalTo((EventStreamCloudEventConnectionDeletedObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject2 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject2Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject2Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject2Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject2Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject2Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2 build() { + return new EventStreamCloudEventConnectionDeletedObject2( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Authentication.java new file mode 100644 index 00000000..564e5b89 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject2Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.java new file mode 100644 index 00000000..dff04fdf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Metadata.java new file mode 100644 index 00000000..640584a3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject2Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java new file mode 100644 index 00000000..f45c5d3a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java @@ -0,0 +1,1086 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional debug; + + private final Optional deflate; + + private final Optional destinationUrl; + + private final Optional disableSignout; + + private final Optional> fieldsMap; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional debug, + Optional deflate, + Optional destinationUrl, + Optional disableSignout, + Optional> fieldsMap, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional recipientUrl, + Optional requestTemplate, + Optional signOutEndpoint, + Optional userIdAttribute, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.debug = debug; + this.deflate = deflate; + this.destinationUrl = destinationUrl; + this.disableSignout = disableSignout; + this.fieldsMap = fieldsMap; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.recipientUrl = recipientUrl; + this.requestTemplate = requestTemplate; + this.signOutEndpoint = signOutEndpoint; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. + */ + @JsonProperty("debug") + public Optional getDebug() { + return debug; + } + + /** + * @return When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. + */ + @JsonProperty("deflate") + public Optional getDeflate() { + return deflate; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("destinationUrl") + public Optional getDestinationUrl() { + return destinationUrl; + } + + /** + * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). + */ + @JsonProperty("disableSignout") + public Optional getDisableSignout() { + return disableSignout; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. + */ + @JsonProperty("global_token_revocation_jwt_iss") + public Optional getGlobalTokenRevocationJwtIss() { + return globalTokenRevocationJwtIss; + } + + /** + * @return Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. + */ + @JsonProperty("global_token_revocation_jwt_sub") + public Optional getGlobalTokenRevocationJwtSub() { + return globalTokenRevocationJwtSub; + } + + /** + * @return HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. + */ + @JsonProperty("metadataUrl") + public Optional getMetadataUrl() { + return metadataUrl; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("recipientUrl") + public Optional getRecipientUrl() { + return recipientUrl; + } + + /** + * @return Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template + */ + @JsonProperty("requestTemplate") + public Optional getRequestTemplate() { + return requestTemplate; + } + + /** + * @return Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. + */ + @JsonProperty("signOutEndpoint") + public Optional getSignOutEndpoint() { + return signOutEndpoint; + } + + /** + * @return Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2Options + && equalTo((EventStreamCloudEventConnectionDeletedObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && debug.equals(other.debug) + && deflate.equals(other.deflate) + && destinationUrl.equals(other.destinationUrl) + && disableSignout.equals(other.disableSignout) + && fieldsMap.equals(other.fieldsMap) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && recipientUrl.equals(other.recipientUrl) + && requestTemplate.equals(other.requestTemplate) + && signOutEndpoint.equals(other.signOutEndpoint) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.debug, + this.deflate, + this.destinationUrl, + this.disableSignout, + this.fieldsMap, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.recipientUrl, + this.requestTemplate, + this.signOutEndpoint, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional + assertionDecryptionSettings = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional debug = Optional.empty(); + + private Optional deflate = Optional.empty(); + + private Optional destinationUrl = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional recipientUrl = Optional.empty(); + + private Optional requestTemplate = Optional.empty(); + + private Optional signOutEndpoint = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + debug(other.getDebug()); + deflate(other.getDeflate()); + destinationUrl(other.getDestinationUrl()); + disableSignout(other.getDisableSignout()); + fieldsMap(other.getFieldsMap()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + recipientUrl(other.getRecipientUrl()); + requestTemplate(other.getRequestTemplate()); + signOutEndpoint(other.getSignOutEndpoint()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public Builder assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + public Builder assertionDecryptionSettings( + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm( + EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public Builder expires(Optional expires) { + this.expires = expires; + return this; + } + + public Builder expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding( + EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm( + EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public Builder signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + public Builder signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public Builder subject(Optional subject) { + this.subject = subject; + return this; + } + + public Builder subject(EventStreamCloudEventConnectionDeletedObject2OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes.

+ */ + @JsonSetter(value = "debug", nulls = Nulls.SKIP) + public Builder debug(Optional debug) { + this.debug = debug; + return this; + } + + public Builder debug(Boolean debug) { + this.debug = Optional.ofNullable(debug); + return this; + } + + /** + *

When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding.

+ */ + @JsonSetter(value = "deflate", nulls = Nulls.SKIP) + public Builder deflate(Optional deflate) { + this.deflate = deflate; + return this; + } + + public Builder deflate(Boolean deflate) { + this.deflate = Optional.ofNullable(deflate); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "destinationUrl", nulls = Nulls.SKIP) + public Builder destinationUrl(Optional destinationUrl) { + this.destinationUrl = destinationUrl; + return this; + } + + public Builder destinationUrl(String destinationUrl) { + this.destinationUrl = Optional.ofNullable(destinationUrl); + return this; + } + + /** + *

When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).

+ */ + @JsonSetter(value = "disableSignout", nulls = Nulls.SKIP) + public Builder disableSignout(Optional disableSignout) { + this.disableSignout = disableSignout; + return this; + } + + public Builder disableSignout(Boolean disableSignout) { + this.disableSignout = Optional.ofNullable(disableSignout); + return this; + } + + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) + public Builder fieldsMap(Optional> fieldsMap) { + this.fieldsMap = fieldsMap; + return this; + } + + public Builder fieldsMap(Map fieldsMap) { + this.fieldsMap = Optional.ofNullable(fieldsMap); + return this; + } + + /** + *

Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_iss", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtIss(Optional globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + return this; + } + + public Builder globalTokenRevocationJwtIss(String globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = Optional.ofNullable(globalTokenRevocationJwtIss); + return this; + } + + /** + *

Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_sub", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtSub(Optional globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + return this; + } + + public Builder globalTokenRevocationJwtSub(String globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = Optional.ofNullable(globalTokenRevocationJwtSub); + return this; + } + + /** + *

HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.

+ */ + @JsonSetter(value = "metadataUrl", nulls = Nulls.SKIP) + public Builder metadataUrl(Optional metadataUrl) { + this.metadataUrl = metadataUrl; + return this; + } + + public Builder metadataUrl(String metadataUrl) { + this.metadataUrl = Optional.ofNullable(metadataUrl); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) + public Builder recipientUrl(Optional recipientUrl) { + this.recipientUrl = recipientUrl; + return this; + } + + public Builder recipientUrl(String recipientUrl) { + this.recipientUrl = Optional.ofNullable(recipientUrl); + return this; + } + + /** + *

Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template

+ */ + @JsonSetter(value = "requestTemplate", nulls = Nulls.SKIP) + public Builder requestTemplate(Optional requestTemplate) { + this.requestTemplate = requestTemplate; + return this; + } + + public Builder requestTemplate(String requestTemplate) { + this.requestTemplate = Optional.ofNullable(requestTemplate); + return this; + } + + /** + *

Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.

+ */ + @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) + public Builder signOutEndpoint(Optional signOutEndpoint) { + this.signOutEndpoint = signOutEndpoint; + return this; + } + + public Builder signOutEndpoint(String signOutEndpoint) { + this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); + return this; + } + + /** + *

Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2Options build() { + return new EventStreamCloudEventConnectionDeletedObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableSignout, + fieldsMap, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + recipientUrl, + requestTemplate, + signOutEndpoint, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 00000000..871aba58 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 00000000..7b2cf253 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 00000000..4870408d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.java new file mode 100644 index 00000000..e1b22249 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 00000000..1dc322a6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum.java new file mode 100644 index 00000000..abc02369 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..49053668 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 00000000..90eba215 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSubject.java new file mode 100644 index 00000000..5334bc9d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionDeletedObject2OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2StrategyEnum.java new file mode 100644 index 00000000..3495bc8e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionDeletedObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SAMLP: + return visitor.visitSamlp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionDeletedObject2StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SAMLP, + + UNKNOWN + } + + public interface Visitor { + T visitSamlp(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java new file mode 100644 index 00000000..2a2e4b80 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3 + && equalTo((EventStreamCloudEventConnectionDeletedObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject3 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject3Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject3Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject3Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject3Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject3Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3 build() { + return new EventStreamCloudEventConnectionDeletedObject3( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Authentication.java new file mode 100644 index 00000000..045d9cf6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject3Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.java new file mode 100644 index 00000000..48ea4a67 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Metadata.java new file mode 100644 index 00000000..cd8ea9b5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject3Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject3Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java new file mode 100644 index 00000000..63646efb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java @@ -0,0 +1,980 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final String pingFederateBaseUrl; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + String pingFederateBaseUrl, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.pingFederateBaseUrl = pingFederateBaseUrl; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return URL provided by PingFederate which returns information used for creating the connection + */ + @JsonProperty("pingFederateBaseUrl") + public String getPingFederateBaseUrl() { + return pingFederateBaseUrl; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3Options + && equalTo((EventStreamCloudEventConnectionDeletedObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && pingFederateBaseUrl.equals(other.pingFederateBaseUrl); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.pingFederateBaseUrl); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PingFederateBaseUrlStage builder() { + return new Builder(); + } + + public interface PingFederateBaseUrlStage { + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ */ + _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl); + + Builder from(EventStreamCloudEventConnectionDeletedObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings); + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + _FinalStage cert(Optional cert); + + _FinalStage cert(String cert); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + _FinalStage digestAlgorithm( + Optional digestAlgorithm); + + _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum digestAlgorithm); + + /** + *

Domain aliases for the connection

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + _FinalStage entityId(Optional entityId); + + _FinalStage entityId(String entityId); + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + _FinalStage expires(Optional expires); + + _FinalStage expires(OffsetDateTime expires); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage idpinitiated( + Optional idpinitiated); + + _FinalStage idpinitiated(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated idpinitiated); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage protocolBinding( + Optional protocolBinding); + + _FinalStage protocolBinding( + EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm); + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + _FinalStage signInEndpoint(Optional signInEndpoint); + + _FinalStage signInEndpoint(String signInEndpoint); + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + _FinalStage signingCert(Optional signingCert); + + _FinalStage signingCert(String signingCert); + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + _FinalStage signSamlRequest(Optional signSamlRequest); + + _FinalStage signSamlRequest(Boolean signSamlRequest); + + _FinalStage subject(Optional subject); + + _FinalStage subject(EventStreamCloudEventConnectionDeletedObject3OptionsSubject subject); + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PingFederateBaseUrlStage, _FinalStage { + private String pingFederateBaseUrl; + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional + assertionDecryptionSettings = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + pingFederateBaseUrl(other.getPingFederateBaseUrl()); + return this; + } + + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ *

URL provided by PingFederate which returns information used for creating the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("pingFederateBaseUrl") + public _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl) { + this.pingFederateBaseUrl = + Objects.requireNonNull(pingFederateBaseUrl, "pingFederateBaseUrl must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage subject(EventStreamCloudEventConnectionDeletedObject3OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public _FinalStage subject(Optional subject) { + this.subject = subject; + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @java.lang.Override + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public _FinalStage signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @java.lang.Override + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public _FinalStage signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @java.lang.Override + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public _FinalStage signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + @java.lang.Override + public _FinalStage protocolBinding( + EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public _FinalStage protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public _FinalStage idpinitiated(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @java.lang.Override + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public _FinalStage idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @java.lang.Override + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public _FinalStage expires(Optional expires) { + this.expires = expires; + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public _FinalStage entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + /** + *

Domain aliases for the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public _FinalStage digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @java.lang.Override + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public _FinalStage cert(Optional cert) { + this.cert = cert; + return this; + } + + @java.lang.Override + public _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3Options build() { + return new EventStreamCloudEventConnectionDeletedObject3Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + pingFederateBaseUrl, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 00000000..b354f806 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 00000000..f63325d0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 00000000..7e81d5aa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.java new file mode 100644 index 00000000..b39a8bfe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 00000000..101516fe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum.java new file mode 100644 index 00000000..5de0aa20 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..d3f5ef73 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 00000000..8503b7ce --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSubject.java new file mode 100644 index 00000000..e9ba608b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionDeletedObject3OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3StrategyEnum.java new file mode 100644 index 00000000..a582b2e0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionDeletedObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PINGFEDERATE: + return visitor.visitPingfederate(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionDeletedObject3StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PINGFEDERATE, + + UNKNOWN + } + + public interface Visitor { + T visitPingfederate(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java new file mode 100644 index 00000000..1f6b5802 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4 + && equalTo((EventStreamCloudEventConnectionDeletedObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject4 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject4Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject4Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject4 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject4Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject4Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject4Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject4 build() { + return new EventStreamCloudEventConnectionDeletedObject4( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Authentication.java new file mode 100644 index 00000000..67b443a3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject4Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject4Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject4Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject4Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.java new file mode 100644 index 00000000..bd71b87c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Metadata.java new file mode 100644 index 00000000..9845b38d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject4Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject4Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Options.java new file mode 100644 index 00000000..a8c53116 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Options.java @@ -0,0 +1,564 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4Options { + private final Optional adfsServer; + + private final Optional certRolloverNotification; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional fedMetadataXml; + + private final Optional iconUrl; + + private final Optional> nonPersistentAttrs; + + private final Optional> prevThumbprints; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4Options( + Optional adfsServer, + Optional certRolloverNotification, + Optional> domainAliases, + Optional entityId, + Optional fedMetadataXml, + Optional iconUrl, + Optional> nonPersistentAttrs, + Optional> prevThumbprints, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional userIdAttribute, + Map additionalProperties) { + this.adfsServer = adfsServer; + this.certRolloverNotification = certRolloverNotification; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.fedMetadataXml = fedMetadataXml; + this.iconUrl = iconUrl; + this.nonPersistentAttrs = nonPersistentAttrs; + this.prevThumbprints = prevThumbprints; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + /** + * @return ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. + */ + @JsonProperty("adfs_server") + public Optional getAdfsServer() { + return adfsServer; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. + */ + @JsonProperty("fedMetadataXml") + public Optional getFedMetadataXml() { + return fedMetadataXml; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("prev_thumbprints") + public Optional> getPrevThumbprints() { + return prevThumbprints; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + /** + * @return Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4Options + && equalTo((EventStreamCloudEventConnectionDeletedObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4Options other) { + return adfsServer.equals(other.adfsServer) + && certRolloverNotification.equals(other.certRolloverNotification) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && fedMetadataXml.equals(other.fedMetadataXml) + && iconUrl.equals(other.iconUrl) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && prevThumbprints.equals(other.prevThumbprints) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adfsServer, + this.certRolloverNotification, + this.domainAliases, + this.entityId, + this.fedMetadataXml, + this.iconUrl, + this.nonPersistentAttrs, + this.prevThumbprints, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional adfsServer = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional fedMetadataXml = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional> prevThumbprints = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject4Options other) { + adfsServer(other.getAdfsServer()); + certRolloverNotification(other.getCertRolloverNotification()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + fedMetadataXml(other.getFedMetadataXml()); + iconUrl(other.getIconUrl()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + prevThumbprints(other.getPrevThumbprints()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + /** + *

ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent.

+ */ + @JsonSetter(value = "adfs_server", nulls = Nulls.SKIP) + public Builder adfsServer(Optional adfsServer) { + this.adfsServer = adfsServer; + return this; + } + + public Builder adfsServer(String adfsServer) { + this.adfsServer = Optional.ofNullable(adfsServer); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.

+ */ + @JsonSetter(value = "fedMetadataXml", nulls = Nulls.SKIP) + public Builder fedMetadataXml(Optional fedMetadataXml) { + this.fedMetadataXml = fedMetadataXml; + return this; + } + + public Builder fedMetadataXml(String fedMetadataXml) { + this.fedMetadataXml = Optional.ofNullable(fedMetadataXml); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "prev_thumbprints", nulls = Nulls.SKIP) + public Builder prevThumbprints(Optional> prevThumbprints) { + this.prevThumbprints = prevThumbprints; + return this; + } + + public Builder prevThumbprints(List prevThumbprints) { + this.prevThumbprints = Optional.ofNullable(prevThumbprints); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + /** + *

Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Tenant domain

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject4Options build() { + return new EventStreamCloudEventConnectionDeletedObject4Options( + adfsServer, + certRolloverNotification, + domainAliases, + entityId, + fedMetadataXml, + iconUrl, + nonPersistentAttrs, + prevThumbprints, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..53c9c1ce --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 00000000..fbee8844 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4StrategyEnum.java new file mode 100644 index 00000000..cd59a31d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject4StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionDeletedObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject4StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject4StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ADFS: + return visitor.visitAdfs(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionDeletedObject4StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ADFS, + + UNKNOWN + } + + public interface Visitor { + T visitAdfs(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java new file mode 100644 index 00000000..98eb21f8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java @@ -0,0 +1,515 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5 + && equalTo((EventStreamCloudEventConnectionDeletedObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject5 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject5Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy; + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject5 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject5Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject5Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject5Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject5 build() { + return new EventStreamCloudEventConnectionDeletedObject5( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Authentication.java new file mode 100644 index 00000000..c1137d47 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject5Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject5Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject5Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject5Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.java new file mode 100644 index 00000000..198d1a70 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Metadata.java new file mode 100644 index 00000000..71f3f57a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject5Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject5Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java new file mode 100644 index 00000000..44efba7a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java @@ -0,0 +1,657 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5Options { + private final Optional agentIp; + + private final Optional agentMode; + + private final Optional agentVersion; + + private final Optional bruteForceProtection; + + private final Optional certAuth; + + private final Optional> certs; + + private final Optional disableCache; + + private final Optional disableSelfServiceChangePassword; + + private final Optional> domainAliases; + + private final Optional iconUrl; + + private final Optional> ips; + + private final Optional kerberos; + + private final Optional> nonPersistentAttrs; + + private final Optional + setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5Options( + Optional agentIp, + Optional agentMode, + Optional agentVersion, + Optional bruteForceProtection, + Optional certAuth, + Optional> certs, + Optional disableCache, + Optional disableSelfServiceChangePassword, + Optional> domainAliases, + Optional iconUrl, + Optional> ips, + Optional kerberos, + Optional> nonPersistentAttrs, + Optional + setUserRootAttributes, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Map additionalProperties) { + this.agentIp = agentIp; + this.agentMode = agentMode; + this.agentVersion = agentVersion; + this.bruteForceProtection = bruteForceProtection; + this.certAuth = certAuth; + this.certs = certs; + this.disableCache = disableCache; + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + this.domainAliases = domainAliases; + this.iconUrl = iconUrl; + this.ips = ips; + this.kerberos = kerberos; + this.nonPersistentAttrs = nonPersistentAttrs; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). + */ + @JsonProperty("agentIP") + public Optional getAgentIp() { + return agentIp; + } + + /** + * @return When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). + */ + @JsonProperty("agentMode") + public Optional getAgentMode() { + return agentMode; + } + + /** + * @return Version identifier of the installed AD connector agent software (managed by the AD Connector agent). + */ + @JsonProperty("agentVersion") + public Optional getAgentVersion() { + return agentVersion; + } + + /** + * @return Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. + */ + @JsonProperty("brute_force_protection") + public Optional getBruteForceProtection() { + return bruteForceProtection; + } + + /** + * @return Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint + */ + @JsonProperty("certAuth") + public Optional getCertAuth() { + return certAuth; + } + + /** + * @return Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). + */ + @JsonProperty("certs") + public Optional> getCerts() { + return certs; + } + + /** + * @return When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory + */ + @JsonProperty("disable_cache") + public Optional getDisableCache() { + return disableCache; + } + + /** + * @return When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets + */ + @JsonProperty("disable_self_service_change_password") + public Optional getDisableSelfServiceChangePassword() { + return disableSelfServiceChangePassword; + } + + /** + * @return List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. + */ + @JsonProperty("ips") + public Optional> getIps() { + return ips; + } + + /** + * @return Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges + */ + @JsonProperty("kerberos") + public Optional getKerberos() { + return kerberos; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Primary AD domain hint used for HRD and discovery. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5Options + && equalTo((EventStreamCloudEventConnectionDeletedObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5Options other) { + return agentIp.equals(other.agentIp) + && agentMode.equals(other.agentMode) + && agentVersion.equals(other.agentVersion) + && bruteForceProtection.equals(other.bruteForceProtection) + && certAuth.equals(other.certAuth) + && certs.equals(other.certs) + && disableCache.equals(other.disableCache) + && disableSelfServiceChangePassword.equals(other.disableSelfServiceChangePassword) + && domainAliases.equals(other.domainAliases) + && iconUrl.equals(other.iconUrl) + && ips.equals(other.ips) + && kerberos.equals(other.kerberos) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.agentIp, + this.agentMode, + this.agentVersion, + this.bruteForceProtection, + this.certAuth, + this.certs, + this.disableCache, + this.disableSelfServiceChangePassword, + this.domainAliases, + this.iconUrl, + this.ips, + this.kerberos, + this.nonPersistentAttrs, + this.setUserRootAttributes, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional agentIp = Optional.empty(); + + private Optional agentMode = Optional.empty(); + + private Optional agentVersion = Optional.empty(); + + private Optional bruteForceProtection = Optional.empty(); + + private Optional certAuth = Optional.empty(); + + private Optional> certs = Optional.empty(); + + private Optional disableCache = Optional.empty(); + + private Optional disableSelfServiceChangePassword = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> ips = Optional.empty(); + + private Optional kerberos = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject5Options other) { + agentIp(other.getAgentIp()); + agentMode(other.getAgentMode()); + agentVersion(other.getAgentVersion()); + bruteForceProtection(other.getBruteForceProtection()); + certAuth(other.getCertAuth()); + certs(other.getCerts()); + disableCache(other.getDisableCache()); + disableSelfServiceChangePassword(other.getDisableSelfServiceChangePassword()); + domainAliases(other.getDomainAliases()); + iconUrl(other.getIconUrl()); + ips(other.getIps()); + kerberos(other.getKerberos()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentIP", nulls = Nulls.SKIP) + public Builder agentIp(Optional agentIp) { + this.agentIp = agentIp; + return this; + } + + public Builder agentIp(String agentIp) { + this.agentIp = Optional.ofNullable(agentIp); + return this; + } + + /** + *

When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentMode", nulls = Nulls.SKIP) + public Builder agentMode(Optional agentMode) { + this.agentMode = agentMode; + return this; + } + + public Builder agentMode(Boolean agentMode) { + this.agentMode = Optional.ofNullable(agentMode); + return this; + } + + /** + *

Version identifier of the installed AD connector agent software (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentVersion", nulls = Nulls.SKIP) + public Builder agentVersion(Optional agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + public Builder agentVersion(String agentVersion) { + this.agentVersion = Optional.ofNullable(agentVersion); + return this; + } + + /** + *

Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures.

+ */ + @JsonSetter(value = "brute_force_protection", nulls = Nulls.SKIP) + public Builder bruteForceProtection(Optional bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + public Builder bruteForceProtection(Boolean bruteForceProtection) { + this.bruteForceProtection = Optional.ofNullable(bruteForceProtection); + return this; + } + + /** + *

Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint

+ */ + @JsonSetter(value = "certAuth", nulls = Nulls.SKIP) + public Builder certAuth(Optional certAuth) { + this.certAuth = certAuth; + return this; + } + + public Builder certAuth(Boolean certAuth) { + this.certAuth = Optional.ofNullable(certAuth); + return this; + } + + /** + *

Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "certs", nulls = Nulls.SKIP) + public Builder certs(Optional> certs) { + this.certs = certs; + return this; + } + + public Builder certs(List certs) { + this.certs = Optional.ofNullable(certs); + return this; + } + + /** + *

When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory

+ */ + @JsonSetter(value = "disable_cache", nulls = Nulls.SKIP) + public Builder disableCache(Optional disableCache) { + this.disableCache = disableCache; + return this; + } + + public Builder disableCache(Boolean disableCache) { + this.disableCache = Optional.ofNullable(disableCache); + return this; + } + + /** + *

When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets

+ */ + @JsonSetter(value = "disable_self_service_change_password", nulls = Nulls.SKIP) + public Builder disableSelfServiceChangePassword(Optional disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + return this; + } + + public Builder disableSelfServiceChangePassword(Boolean disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = Optional.ofNullable(disableSelfServiceChangePassword); + return this; + } + + /** + *

List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication.

+ */ + @JsonSetter(value = "ips", nulls = Nulls.SKIP) + public Builder ips(Optional> ips) { + this.ips = ips; + return this; + } + + public Builder ips(List ips) { + this.ips = Optional.ofNullable(ips); + return this; + } + + /** + *

Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges

+ */ + @JsonSetter(value = "kerberos", nulls = Nulls.SKIP) + public Builder kerberos(Optional kerberos) { + this.kerberos = kerberos; + return this; + } + + public Builder kerberos(Boolean kerberos) { + this.kerberos = Optional.ofNullable(kerberos); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + /** + *

The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Primary AD domain hint used for HRD and discovery.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject5Options build() { + return new EventStreamCloudEventConnectionDeletedObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + nonPersistentAttrs, + setUserRootAttributes, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..92898fee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5StrategyEnum.java new file mode 100644 index 00000000..720d6e24 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject5StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject5StrategyEnum AD = + new EventStreamCloudEventConnectionDeletedObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject5StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject5StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AD: + return visitor.visitAd(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionDeletedObject5StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java new file mode 100644 index 00000000..ccba9865 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6 + && equalTo((EventStreamCloudEventConnectionDeletedObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject6 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject6Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject6Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject6Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject6Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject6Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6 build() { + return new EventStreamCloudEventConnectionDeletedObject6( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Authentication.java new file mode 100644 index 00000000..3b7995c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject6Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.java new file mode 100644 index 00000000..6db0e020 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Metadata.java new file mode 100644 index 00000000..768131cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject6Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject6Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java new file mode 100644 index 00000000..7904b2bb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java @@ -0,0 +1,1112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6Options { + private final Optional adminAccessTokenExpiresin; + + private final Optional allowSettingLoginScopes; + + private final Optional apiEnableGroups; + + private final Optional apiEnableUsers; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional email; + + private final Optional extAgreedTerms; + + private final Optional extGroups; + + private final Optional extGroupsExtended; + + private final Optional extIsAdmin; + + private final Optional extIsSuspended; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional handleLoginFromSocial; + + private final Optional iconUrl; + + private final Optional mapUserIdToId; + + private final Optional> nonPersistentAttrs; + + private final Optional profile; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6Options( + Optional adminAccessTokenExpiresin, + Optional allowSettingLoginScopes, + Optional apiEnableGroups, + Optional apiEnableUsers, + String clientId, + Optional domain, + Optional> domainAliases, + Optional email, + Optional extAgreedTerms, + Optional extGroups, + Optional extGroupsExtended, + Optional extIsAdmin, + Optional extIsSuspended, + Optional + federatedConnectionsAccessTokens, + Optional handleLoginFromSocial, + Optional iconUrl, + Optional mapUserIdToId, + Optional> nonPersistentAttrs, + Optional profile, + Optional> scope, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional> upstreamParams, + Map additionalProperties) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + this.allowSettingLoginScopes = allowSettingLoginScopes; + this.apiEnableGroups = apiEnableGroups; + this.apiEnableUsers = apiEnableUsers; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.email = email; + this.extAgreedTerms = extAgreedTerms; + this.extGroups = extGroups; + this.extGroupsExtended = extGroupsExtended; + this.extIsAdmin = extIsAdmin; + this.extIsSuspended = extIsSuspended; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.handleLoginFromSocial = handleLoginFromSocial; + this.iconUrl = iconUrl; + this.mapUserIdToId = mapUserIdToId; + this.nonPersistentAttrs = nonPersistentAttrs; + this.profile = profile; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. + */ + @JsonProperty("admin_access_token_expiresin") + public Optional getAdminAccessTokenExpiresin() { + return adminAccessTokenExpiresin; + } + + /** + * @return When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. + */ + @JsonProperty("allow_setting_login_scopes") + public Optional getAllowSettingLoginScopes() { + return allowSettingLoginScopes; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. + */ + @JsonProperty("api_enable_groups") + public Optional getApiEnableGroups() { + return apiEnableGroups; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return Primary Google Workspace domain name that users must belong to. + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return Whether the OAuth flow requests the email scope. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Fetches the agreedToTerms flag from the Google Directory profile. + */ + @JsonProperty("ext_agreed_terms") + public Optional getExtAgreedTerms() { + return extAgreedTerms; + } + + /** + * @return Enables enrichment with Google group memberships (required for ext_groups_extended). + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true. + */ + @JsonProperty("ext_groups_extended") + public Optional getExtGroupsExtended() { + return extGroupsExtended; + } + + /** + * @return Fetches the Google Directory admin flag for the signing-in user. + */ + @JsonProperty("ext_is_admin") + public Optional getExtIsAdmin() { + return extIsAdmin; + } + + /** + * @return Fetches the Google Directory suspended flag for the signing-in user. + */ + @JsonProperty("ext_is_suspended") + public Optional getExtIsSuspended() { + return extIsSuspended; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. + */ + @JsonProperty("handle_login_from_social") + public Optional getHandleLoginFromSocial() { + return handleLoginFromSocial; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. + */ + @JsonProperty("map_user_id_to_id") + public Optional getMapUserIdToId() { + return mapUserIdToId; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Whether the OAuth flow requests the profile scope. + */ + @JsonProperty("profile") + public Optional getProfile() { + return profile; + } + + /** + * @return Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The Google Workspace primary domain used to identify the organization during authentication. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6Options + && equalTo((EventStreamCloudEventConnectionDeletedObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6Options other) { + return adminAccessTokenExpiresin.equals(other.adminAccessTokenExpiresin) + && allowSettingLoginScopes.equals(other.allowSettingLoginScopes) + && apiEnableGroups.equals(other.apiEnableGroups) + && apiEnableUsers.equals(other.apiEnableUsers) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && email.equals(other.email) + && extAgreedTerms.equals(other.extAgreedTerms) + && extGroups.equals(other.extGroups) + && extGroupsExtended.equals(other.extGroupsExtended) + && extIsAdmin.equals(other.extIsAdmin) + && extIsSuspended.equals(other.extIsSuspended) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && handleLoginFromSocial.equals(other.handleLoginFromSocial) + && iconUrl.equals(other.iconUrl) + && mapUserIdToId.equals(other.mapUserIdToId) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && profile.equals(other.profile) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adminAccessTokenExpiresin, + this.allowSettingLoginScopes, + this.apiEnableGroups, + this.apiEnableUsers, + this.clientId, + this.domain, + this.domainAliases, + this.email, + this.extAgreedTerms, + this.extGroups, + this.extGroupsExtended, + this.extIsAdmin, + this.extIsSuspended, + this.federatedConnectionsAccessTokens, + this.handleLoginFromSocial, + this.iconUrl, + this.mapUserIdToId, + this.nonPersistentAttrs, + this.profile, + this.scope, + this.setUserRootAttributes, + this.tenantDomain, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin); + + _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin); + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes); + + _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + _FinalStage apiEnableGroups(Optional apiEnableGroups); + + _FinalStage apiEnableGroups(Boolean apiEnableGroups); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + _FinalStage email(Optional email); + + _FinalStage email(Boolean email); + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + _FinalStage extAgreedTerms(Optional extAgreedTerms); + + _FinalStage extAgreedTerms(Boolean extAgreedTerms); + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + _FinalStage extGroupsExtended(Optional extGroupsExtended); + + _FinalStage extGroupsExtended(Boolean extGroupsExtended); + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + _FinalStage extIsAdmin(Optional extIsAdmin); + + _FinalStage extIsAdmin(Boolean extIsAdmin); + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + _FinalStage extIsSuspended(Optional extIsSuspended); + + _FinalStage extIsSuspended(Boolean extIsSuspended); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); + + _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + _FinalStage mapUserIdToId(Optional mapUserIdToId); + + _FinalStage mapUserIdToId(Boolean mapUserIdToId); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + _FinalStage profile(Optional profile); + + _FinalStage profile(Boolean profile); + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional> upstreamParams = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional profile = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional mapUserIdToId = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional handleLoginFromSocial = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extIsSuspended = Optional.empty(); + + private Optional extIsAdmin = Optional.empty(); + + private Optional extGroupsExtended = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional extAgreedTerms = Optional.empty(); + + private Optional email = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + private Optional apiEnableGroups = Optional.empty(); + + private Optional allowSettingLoginScopes = Optional.empty(); + + private Optional adminAccessTokenExpiresin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6Options other) { + adminAccessTokenExpiresin(other.getAdminAccessTokenExpiresin()); + allowSettingLoginScopes(other.getAllowSettingLoginScopes()); + apiEnableGroups(other.getApiEnableGroups()); + apiEnableUsers(other.getApiEnableUsers()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + email(other.getEmail()); + extAgreedTerms(other.getExtAgreedTerms()); + extGroups(other.getExtGroups()); + extGroupsExtended(other.getExtGroupsExtended()); + extIsAdmin(other.getExtIsAdmin()); + extIsSuspended(other.getExtIsSuspended()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + handleLoginFromSocial(other.getHandleLoginFromSocial()); + iconUrl(other.getIconUrl()); + mapUserIdToId(other.getMapUserIdToId()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + profile(other.getProfile()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage profile(Boolean profile) { + this.profile = Optional.ofNullable(profile); + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + @java.lang.Override + @JsonSetter(value = "profile", nulls = Nulls.SKIP) + public _FinalStage profile(Optional profile) { + this.profile = profile; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage mapUserIdToId(Boolean mapUserIdToId) { + this.mapUserIdToId = Optional.ofNullable(mapUserIdToId); + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + @java.lang.Override + @JsonSetter(value = "map_user_id_to_id", nulls = Nulls.SKIP) + public _FinalStage mapUserIdToId(Optional mapUserIdToId) { + this.mapUserIdToId = mapUserIdToId; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial) { + this.handleLoginFromSocial = Optional.ofNullable(handleLoginFromSocial); + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + @java.lang.Override + @JsonSetter(value = "handle_login_from_social", nulls = Nulls.SKIP) + public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial) { + this.handleLoginFromSocial = handleLoginFromSocial; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsSuspended(Boolean extIsSuspended) { + this.extIsSuspended = Optional.ofNullable(extIsSuspended); + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) + public _FinalStage extIsSuspended(Optional extIsSuspended) { + this.extIsSuspended = extIsSuspended; + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsAdmin(Boolean extIsAdmin) { + this.extIsAdmin = Optional.ofNullable(extIsAdmin); + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_admin", nulls = Nulls.SKIP) + public _FinalStage extIsAdmin(Optional extIsAdmin) { + this.extIsAdmin = extIsAdmin; + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroupsExtended(Boolean extGroupsExtended) { + this.extGroupsExtended = Optional.ofNullable(extGroupsExtended); + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups_extended", nulls = Nulls.SKIP) + public _FinalStage extGroupsExtended(Optional extGroupsExtended) { + this.extGroupsExtended = extGroupsExtended; + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extAgreedTerms(Boolean extAgreedTerms) { + this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) + public _FinalStage extAgreedTerms(Optional extAgreedTerms) { + this.extAgreedTerms = extAgreedTerms; + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage email(Boolean email) { + this.email = Optional.ofNullable(email); + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableGroups(Boolean apiEnableGroups) { + this.apiEnableGroups = Optional.ofNullable(apiEnableGroups); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_groups", nulls = Nulls.SKIP) + public _FinalStage apiEnableGroups(Optional apiEnableGroups) { + this.apiEnableGroups = apiEnableGroups; + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes) { + this.allowSettingLoginScopes = Optional.ofNullable(allowSettingLoginScopes); + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + @java.lang.Override + @JsonSetter(value = "allow_setting_login_scopes", nulls = Nulls.SKIP) + public _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes) { + this.allowSettingLoginScopes = allowSettingLoginScopes; + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = Optional.ofNullable(adminAccessTokenExpiresin); + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + @java.lang.Override + @JsonSetter(value = "admin_access_token_expiresin", nulls = Nulls.SKIP) + public _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6Options build() { + return new EventStreamCloudEventConnectionDeletedObject6Options( + adminAccessTokenExpiresin, + allowSettingLoginScopes, + apiEnableGroups, + apiEnableUsers, + clientId, + domain, + domainAliases, + email, + extAgreedTerms, + extGroups, + extGroupsExtended, + extIsAdmin, + extIsSuspended, + federatedConnectionsAccessTokens, + handleLoginFromSocial, + iconUrl, + mapUserIdToId, + nonPersistentAttrs, + profile, + scope, + setUserRootAttributes, + tenantDomain, + upstreamParams, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..38900ced --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..67e83fdc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6StrategyEnum.java new file mode 100644 index 00000000..908c47be --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject6StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionDeletedObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject6StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject6StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionDeletedObject6StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + GOOGLE_APPS, + + UNKNOWN + } + + public interface Visitor { + T visitGoogleApps(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java new file mode 100644 index 00000000..4c72a540 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7 + && equalTo((EventStreamCloudEventConnectionDeletedObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject7 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject7Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject7Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject7Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject7Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject7Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7 build() { + return new EventStreamCloudEventConnectionDeletedObject7( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Authentication.java new file mode 100644 index 00000000..e98c2972 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject7Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.java new file mode 100644 index 00000000..22ee69c8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Metadata.java new file mode 100644 index 00000000..b290f82f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject7Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject7Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java new file mode 100644 index 00000000..cfd7eb1c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java @@ -0,0 +1,1297 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7Options { + private final Optional apiEnableUsers; + + private final Optional appDomain; + + private final Optional appId; + + private final Optional basicProfile; + + private final Optional certRolloverNotification; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional extGroups; + + private final Optional extNestedGroups; + + private final Optional extProfile; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional granted; + + private final Optional iconUrl; + + private final Optional identityApi; + + private final Optional maxGroupsToRetrieve; + + private final Optional> nonPersistentAttrs; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional tenantDomain; + + private final Optional tenantId; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional useWsfed; + + private final Optional useCommonEndpoint; + + private final Optional useridAttribute; + + private final Optional waadProtocol; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7Options( + Optional apiEnableUsers, + Optional appDomain, + Optional appId, + Optional basicProfile, + Optional certRolloverNotification, + String clientId, + Optional domain, + Optional> domainAliases, + Optional extGroups, + Optional extNestedGroups, + Optional extProfile, + Optional + federatedConnectionsAccessTokens, + Optional granted, + Optional iconUrl, + Optional identityApi, + Optional maxGroupsToRetrieve, + Optional> nonPersistentAttrs, + Optional> scope, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional tenantDomain, + Optional tenantId, + Optional> thumbprints, + Optional> upstreamParams, + Optional useWsfed, + Optional useCommonEndpoint, + Optional useridAttribute, + Optional waadProtocol, + Map additionalProperties) { + this.apiEnableUsers = apiEnableUsers; + this.appDomain = appDomain; + this.appId = appId; + this.basicProfile = basicProfile; + this.certRolloverNotification = certRolloverNotification; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.extGroups = extGroups; + this.extNestedGroups = extNestedGroups; + this.extProfile = extProfile; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.granted = granted; + this.iconUrl = iconUrl; + this.identityApi = identityApi; + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + this.nonPersistentAttrs = nonPersistentAttrs; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.tenantDomain = tenantDomain; + this.tenantId = tenantId; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.useWsfed = useWsfed; + this.useCommonEndpoint = useCommonEndpoint; + this.useridAttribute = useridAttribute; + this.waadProtocol = waadProtocol; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enable users API + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. + */ + @JsonProperty("app_domain") + public Optional getAppDomain() { + return appDomain; + } + + /** + * @return The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. + */ + @JsonProperty("app_id") + public Optional getAppId() { + return appId; + } + + /** + * @return Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. + */ + @JsonProperty("basic_profile") + public Optional getBasicProfile() { + return basicProfile; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. + */ + @JsonProperty("ext_nested_groups") + public Optional getExtNestedGroups() { + return extNestedGroups; + } + + /** + * @return When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. + */ + @JsonProperty("ext_profile") + public Optional getExtProfile() { + return extProfile; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. + */ + @JsonProperty("granted") + public Optional getGranted() { + return granted; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("identity_api") + public Optional getIdentityApi() { + return identityApi; + } + + /** + * @return Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. + */ + @JsonProperty("max_groups_to_retrieve") + public Optional getMaxGroupsToRetrieve() { + return maxGroupsToRetrieve; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. + */ + @JsonProperty("tenantId") + public Optional getTenantId() { + return tenantId; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. + */ + @JsonProperty("use_wsfed") + public Optional getUseWsfed() { + return useWsfed; + } + + /** + * @return When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. + */ + @JsonProperty("useCommonEndpoint") + public Optional getUseCommonEndpoint() { + return useCommonEndpoint; + } + + @JsonProperty("userid_attribute") + public Optional getUseridAttribute() { + return useridAttribute; + } + + @JsonProperty("waad_protocol") + public Optional getWaadProtocol() { + return waadProtocol; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7Options + && equalTo((EventStreamCloudEventConnectionDeletedObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7Options other) { + return apiEnableUsers.equals(other.apiEnableUsers) + && appDomain.equals(other.appDomain) + && appId.equals(other.appId) + && basicProfile.equals(other.basicProfile) + && certRolloverNotification.equals(other.certRolloverNotification) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && extGroups.equals(other.extGroups) + && extNestedGroups.equals(other.extNestedGroups) + && extProfile.equals(other.extProfile) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && granted.equals(other.granted) + && iconUrl.equals(other.iconUrl) + && identityApi.equals(other.identityApi) + && maxGroupsToRetrieve.equals(other.maxGroupsToRetrieve) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && tenantDomain.equals(other.tenantDomain) + && tenantId.equals(other.tenantId) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && useWsfed.equals(other.useWsfed) + && useCommonEndpoint.equals(other.useCommonEndpoint) + && useridAttribute.equals(other.useridAttribute) + && waadProtocol.equals(other.waadProtocol); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.apiEnableUsers, + this.appDomain, + this.appId, + this.basicProfile, + this.certRolloverNotification, + this.clientId, + this.domain, + this.domainAliases, + this.extGroups, + this.extNestedGroups, + this.extProfile, + this.federatedConnectionsAccessTokens, + this.granted, + this.iconUrl, + this.identityApi, + this.maxGroupsToRetrieve, + this.nonPersistentAttrs, + this.scope, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.tenantDomain, + this.tenantId, + this.thumbprints, + this.upstreamParams, + this.useWsfed, + this.useCommonEndpoint, + this.useridAttribute, + this.waadProtocol); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Enable users API

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + _FinalStage appDomain(Optional appDomain); + + _FinalStage appDomain(String appDomain); + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + _FinalStage appId(Optional appId); + + _FinalStage appId(String appId); + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + _FinalStage basicProfile(Optional basicProfile); + + _FinalStage basicProfile(Boolean basicProfile); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + _FinalStage extNestedGroups(Optional extNestedGroups); + + _FinalStage extNestedGroups(Boolean extNestedGroups); + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + _FinalStage extProfile(Optional extProfile); + + _FinalStage extProfile(Boolean extProfile); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + _FinalStage granted(Optional granted); + + _FinalStage granted(Boolean granted); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage identityApi( + Optional identityApi); + + _FinalStage identityApi(EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum identityApi); + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve); + + _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + _FinalStage tenantId(Optional tenantId); + + _FinalStage tenantId(String tenantId); + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + _FinalStage useWsfed(Optional useWsfed); + + _FinalStage useWsfed(Boolean useWsfed); + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + _FinalStage useCommonEndpoint(Optional useCommonEndpoint); + + _FinalStage useCommonEndpoint(Boolean useCommonEndpoint); + + _FinalStage useridAttribute( + Optional useridAttribute); + + _FinalStage useridAttribute( + EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol(EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum waadProtocol); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional waadProtocol = + Optional.empty(); + + private Optional useridAttribute = + Optional.empty(); + + private Optional useCommonEndpoint = Optional.empty(); + + private Optional useWsfed = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantId = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional maxGroupsToRetrieve = Optional.empty(); + + private Optional identityApi = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional granted = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extProfile = Optional.empty(); + + private Optional extNestedGroups = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional basicProfile = Optional.empty(); + + private Optional appId = Optional.empty(); + + private Optional appDomain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7Options other) { + apiEnableUsers(other.getApiEnableUsers()); + appDomain(other.getAppDomain()); + appId(other.getAppId()); + basicProfile(other.getBasicProfile()); + certRolloverNotification(other.getCertRolloverNotification()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + extGroups(other.getExtGroups()); + extNestedGroups(other.getExtNestedGroups()); + extProfile(other.getExtProfile()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + granted(other.getGranted()); + iconUrl(other.getIconUrl()); + identityApi(other.getIdentityApi()); + maxGroupsToRetrieve(other.getMaxGroupsToRetrieve()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + tenantDomain(other.getTenantDomain()); + tenantId(other.getTenantId()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + useWsfed(other.getUseWsfed()); + useCommonEndpoint(other.getUseCommonEndpoint()); + useridAttribute(other.getUseridAttribute()); + waadProtocol(other.getWaadProtocol()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage waadProtocol( + EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum waadProtocol) { + this.waadProtocol = Optional.ofNullable(waadProtocol); + return this; + } + + @java.lang.Override + @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) + public _FinalStage waadProtocol( + Optional waadProtocol) { + this.waadProtocol = waadProtocol; + return this; + } + + @java.lang.Override + public _FinalStage useridAttribute( + EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum useridAttribute) { + this.useridAttribute = Optional.ofNullable(useridAttribute); + return this; + } + + @java.lang.Override + @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) + public _FinalStage useridAttribute( + Optional useridAttribute) { + this.useridAttribute = useridAttribute; + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useCommonEndpoint(Boolean useCommonEndpoint) { + this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) + public _FinalStage useCommonEndpoint(Optional useCommonEndpoint) { + this.useCommonEndpoint = useCommonEndpoint; + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useWsfed(Boolean useWsfed) { + this.useWsfed = Optional.ofNullable(useWsfed); + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + @java.lang.Override + @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) + public _FinalStage useWsfed(Optional useWsfed) { + this.useWsfed = useWsfed; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantId(String tenantId) { + this.tenantId = Optional.ofNullable(tenantId); + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + @java.lang.Override + @JsonSetter(value = "tenantId", nulls = Nulls.SKIP) + public _FinalStage tenantId(Optional tenantId) { + this.tenantId = tenantId; + return this; + } + + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + @java.lang.Override + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + @java.lang.Override + @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) + public _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + return this; + } + + @java.lang.Override + public _FinalStage identityApi( + EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum identityApi) { + this.identityApi = Optional.ofNullable(identityApi); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) + public _FinalStage identityApi( + Optional identityApi) { + this.identityApi = identityApi; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage granted(Boolean granted) { + this.granted = Optional.ofNullable(granted); + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + @java.lang.Override + @JsonSetter(value = "granted", nulls = Nulls.SKIP) + public _FinalStage granted(Optional granted) { + this.granted = granted; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extProfile(Boolean extProfile) { + this.extProfile = Optional.ofNullable(extProfile); + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) + public _FinalStage extProfile(Optional extProfile) { + this.extProfile = extProfile; + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extNestedGroups(Boolean extNestedGroups) { + this.extNestedGroups = Optional.ofNullable(extNestedGroups); + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_nested_groups", nulls = Nulls.SKIP) + public _FinalStage extNestedGroups(Optional extNestedGroups) { + this.extNestedGroups = extNestedGroups; + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) + public _FinalStage basicProfile(Optional basicProfile) { + this.basicProfile = basicProfile; + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appId(String appId) { + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + @java.lang.Override + @JsonSetter(value = "app_id", nulls = Nulls.SKIP) + public _FinalStage appId(Optional appId) { + this.appId = appId; + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appDomain(String appDomain) { + this.appDomain = Optional.ofNullable(appDomain); + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + @java.lang.Override + @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) + public _FinalStage appDomain(Optional appDomain) { + this.appDomain = appDomain; + return this; + } + + /** + *

Enable users API

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enable users API

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7Options build() { + return new EventStreamCloudEventConnectionDeletedObject7Options( + apiEnableUsers, + appDomain, + appId, + basicProfile, + certRolloverNotification, + clientId, + domain, + domainAliases, + extGroups, + extNestedGroups, + extProfile, + federatedConnectionsAccessTokens, + granted, + iconUrl, + identityApi, + maxGroupsToRetrieve, + nonPersistentAttrs, + scope, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + tenantDomain, + tenantId, + thumbprints, + upstreamParams, + useWsfed, + useCommonEndpoint, + useridAttribute, + waadProtocol, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..0902bcd4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum.java new file mode 100644 index 00000000..ab3577ae --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = new EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AZURE_ACTIVE_DIRECTORY_V10: + return visitor.visitAzureActiveDirectoryV10(); + case MICROSOFT_IDENTITY_PLATFORM_V20: + return visitor.visitMicrosoftIdentityPlatformV20(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum valueOf(String value) { + switch (value) { + case "azure-active-directory-v1.0": + return AZURE_ACTIVE_DIRECTORY_V10; + case "microsoft-identity-platform-v2.0": + return MICROSOFT_IDENTITY_PLATFORM_V20; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + MICROSOFT_IDENTITY_PLATFORM_V20, + + AZURE_ACTIVE_DIRECTORY_V10, + + UNKNOWN + } + + public interface Visitor { + T visitMicrosoftIdentityPlatformV20(); + + T visitAzureActiveDirectoryV10(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..dba951e1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 00000000..3aed2c1c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum.java new file mode 100644 index 00000000..40911d83 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SUB: + return visitor.visitSub(); + case OID: + return visitor.visitOid(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum valueOf(String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OID, + + SUB, + + UNKNOWN + } + + public interface Visitor { + T visitOid(); + + T visitSub(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum.java new file mode 100644 index 00000000..2e0c4ba8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID_CONNECT: + return visitor.visitOpenidConnect(); + case WS_FEDERATION: + return visitor.visitWsFederation(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WS_FEDERATION, + + OPENID_CONNECT, + + UNKNOWN + } + + public interface Visitor { + T visitWsFederation(); + + T visitOpenidConnect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7StrategyEnum.java new file mode 100644 index 00000000..5ffde574 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionDeletedObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WAAD: + return visitor.visitWaad(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionDeletedObject7StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedTypeEnum.java new file mode 100644 index 00000000..e9f99505 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedTypeEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedTypeEnum { + public static final EventStreamCloudEventConnectionDeletedTypeEnum CONNECTION_DELETED = + new EventStreamCloudEventConnectionDeletedTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedTypeEnum + && this.string.equals(((EventStreamCloudEventConnectionDeletedTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedTypeEnum valueOf(String value) { + switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; + default: + return new EventStreamCloudEventConnectionDeletedTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_DELETED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionDeleted(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java new file mode 100644 index 00000000..28790617 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdated.Builder.class) +public final class EventStreamCloudEventConnectionUpdated { + private final String offset; + + private final EventStreamCloudEventConnectionUpdatedCloudEvent event; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdated( + String offset, + EventStreamCloudEventConnectionUpdatedCloudEvent event, + Map additionalProperties) { + this.offset = offset; + this.event = event; + this.additionalProperties = additionalProperties; + } + + /** + * @return Opaque cursor representing position in the stream. Pass as the from query parameter to resume. + */ + @JsonProperty("offset") + public String getOffset() { + return offset; + } + + @JsonProperty("event") + public EventStreamCloudEventConnectionUpdatedCloudEvent getEvent() { + return event; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdated + && equalTo((EventStreamCloudEventConnectionUpdated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdated other) { + return offset.equals(other.offset) && event.equals(other.event); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.offset, this.event); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OffsetStage builder() { + return new Builder(); + } + + public interface OffsetStage { + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ */ + EventStage offset(@NotNull String offset); + + Builder from(EventStreamCloudEventConnectionUpdated other); + } + + public interface EventStage { + _FinalStage event(@NotNull EventStreamCloudEventConnectionUpdatedCloudEvent event); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdated build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OffsetStage, EventStage, _FinalStage { + private String offset; + + private EventStreamCloudEventConnectionUpdatedCloudEvent event; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdated other) { + offset(other.getOffset()); + event(other.getEvent()); + return this; + } + + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("offset") + public EventStage offset(@NotNull String offset) { + this.offset = Objects.requireNonNull(offset, "offset must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("event") + public _FinalStage event(@NotNull EventStreamCloudEventConnectionUpdatedCloudEvent event) { + this.event = Objects.requireNonNull(event, "event must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdated build() { + return new EventStreamCloudEventConnectionUpdated(offset, event, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java new file mode 100644 index 00000000..3bbeb710 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java @@ -0,0 +1,396 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedCloudEvent.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedCloudEvent { + private final EventStreamCloudEventSpecVersionEnum specversion; + + private final EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type; + + private final String source; + + private final String id; + + private final OffsetDateTime time; + + private final EventStreamCloudEventConnectionUpdatedData data; + + private final String a0Tenant; + + private final String a0Stream; + + private final Optional a0Purpose; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedCloudEvent( + EventStreamCloudEventSpecVersionEnum specversion, + EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type, + String source, + String id, + OffsetDateTime time, + EventStreamCloudEventConnectionUpdatedData data, + String a0Tenant, + String a0Stream, + Optional a0Purpose, + Map additionalProperties) { + this.specversion = specversion; + this.type = type; + this.source = source; + this.id = id; + this.time = time; + this.data = data; + this.a0Tenant = a0Tenant; + this.a0Stream = a0Stream; + this.a0Purpose = a0Purpose; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("specversion") + public EventStreamCloudEventSpecVersionEnum getSpecversion() { + return specversion; + } + + @JsonProperty("type") + public EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum getType() { + return type; + } + + /** + * @return The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'. + */ + @JsonProperty("source") + public String getSource() { + return source; + } + + /** + * @return A unique identifier for the event. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return An ISO-8601 timestamp indicating when the event physically occurred. + */ + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + @JsonProperty("data") + public EventStreamCloudEventConnectionUpdatedData getData() { + return data; + } + + /** + * @return The auth0 tenant ID to which the event is associated. + */ + @JsonProperty("a0tenant") + public String getA0Tenant() { + return a0Tenant; + } + + /** + * @return The auth0 event stream ID of the stream the event was delivered on. + */ + @JsonProperty("a0stream") + public String getA0Stream() { + return a0Stream; + } + + @JsonProperty("a0purpose") + public Optional getA0Purpose() { + return a0Purpose; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedCloudEvent + && equalTo((EventStreamCloudEventConnectionUpdatedCloudEvent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedCloudEvent other) { + return specversion.equals(other.specversion) + && type.equals(other.type) + && source.equals(other.source) + && id.equals(other.id) + && time.equals(other.time) + && data.equals(other.data) + && a0Tenant.equals(other.a0Tenant) + && a0Stream.equals(other.a0Stream) + && a0Purpose.equals(other.a0Purpose); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.specversion, + this.type, + this.source, + this.id, + this.time, + this.data, + this.a0Tenant, + this.a0Stream, + this.a0Purpose); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static SpecversionStage builder() { + return new Builder(); + } + + public interface SpecversionStage { + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); + + Builder from(EventStreamCloudEventConnectionUpdatedCloudEvent other); + } + + public interface TypeStage { + SourceStage type(@NotNull EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type); + } + + public interface SourceStage { + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ */ + IdStage source(@NotNull String source); + } + + public interface IdStage { + /** + *

A unique identifier for the event.

+ */ + TimeStage id(@NotNull String id); + } + + public interface TimeStage { + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ */ + DataStage time(@NotNull OffsetDateTime time); + } + + public interface DataStage { + A0TenantStage data(@NotNull EventStreamCloudEventConnectionUpdatedData data); + } + + public interface A0TenantStage { + /** + *

The auth0 tenant ID to which the event is associated.

+ */ + A0StreamStage a0Tenant(@NotNull String a0Tenant); + } + + public interface A0StreamStage { + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ */ + _FinalStage a0Stream(@NotNull String a0Stream); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedCloudEvent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage a0Purpose(Optional a0Purpose); + + _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements SpecversionStage, + TypeStage, + SourceStage, + IdStage, + TimeStage, + DataStage, + A0TenantStage, + A0StreamStage, + _FinalStage { + private EventStreamCloudEventSpecVersionEnum specversion; + + private EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type; + + private String source; + + private String id; + + private OffsetDateTime time; + + private EventStreamCloudEventConnectionUpdatedData data; + + private String a0Tenant; + + private String a0Stream; + + private Optional a0Purpose = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedCloudEvent other) { + specversion(other.getSpecversion()); + type(other.getType()); + source(other.getSource()); + id(other.getId()); + time(other.getTime()); + data(other.getData()); + a0Tenant(other.getA0Tenant()); + a0Stream(other.getA0Stream()); + a0Purpose(other.getA0Purpose()); + return this; + } + + @java.lang.Override + @JsonSetter("specversion") + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { + this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public SourceStage type(@NotNull EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("source") + public IdStage source(@NotNull String source) { + this.source = Objects.requireNonNull(source, "source must not be null"); + return this; + } + + /** + *

A unique identifier for the event.

+ *

A unique identifier for the event.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public TimeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ *

An ISO-8601 timestamp indicating when the event physically occurred.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("time") + public DataStage time(@NotNull OffsetDateTime time) { + this.time = Objects.requireNonNull(time, "time must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("data") + public A0TenantStage data(@NotNull EventStreamCloudEventConnectionUpdatedData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); + return this; + } + + /** + *

The auth0 tenant ID to which the event is associated.

+ *

The auth0 tenant ID to which the event is associated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0tenant") + public A0StreamStage a0Tenant(@NotNull String a0Tenant) { + this.a0Tenant = Objects.requireNonNull(a0Tenant, "a0Tenant must not be null"); + return this; + } + + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ *

The auth0 event stream ID of the stream the event was delivered on.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0stream") + public _FinalStage a0Stream(@NotNull String a0Stream) { + this.a0Stream = Objects.requireNonNull(a0Stream, "a0Stream must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose) { + this.a0Purpose = Optional.ofNullable(a0Purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "a0purpose", nulls = Nulls.SKIP) + public _FinalStage a0Purpose(Optional a0Purpose) { + this.a0Purpose = a0Purpose; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedCloudEvent build() { + return new EventStreamCloudEventConnectionUpdatedCloudEvent( + specversion, type, source, id, time, data, a0Tenant, a0Stream, a0Purpose, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum.java new file mode 100644 index 00000000..f6b20385 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum.java @@ -0,0 +1,77 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum CONNECTION_UPDATED = + new EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum( + Value.CONNECTION_UPDATED, "connection.updated"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum valueOf(String value) { + switch (value) { + case "connection.updated": + return CONNECTION_UPDATED; + default: + return new EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_UPDATED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionUpdated(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java new file mode 100644 index 00000000..9c0ee247 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java @@ -0,0 +1,152 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedData.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedData { + private final EventStreamCloudEventConnectionUpdatedObject object; + + private final Optional context; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedData( + EventStreamCloudEventConnectionUpdatedObject object, + Optional context, + Map additionalProperties) { + this.object = object; + this.context = context; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("object") + public EventStreamCloudEventConnectionUpdatedObject getObject() { + return object; + } + + @JsonProperty("context") + public Optional getContext() { + return context; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedData + && equalTo((EventStreamCloudEventConnectionUpdatedData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedData other) { + return object.equals(other.object) && context.equals(other.context); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.object, this.context); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ObjectStage builder() { + return new Builder(); + } + + public interface ObjectStage { + _FinalStage object(@NotNull EventStreamCloudEventConnectionUpdatedObject object); + + Builder from(EventStreamCloudEventConnectionUpdatedData other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedData build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage context(Optional context); + + _FinalStage context(EventStreamCloudEventContext context); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ObjectStage, _FinalStage { + private EventStreamCloudEventConnectionUpdatedObject object; + + private Optional context = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedData other) { + object(other.getObject()); + context(other.getContext()); + return this; + } + + @java.lang.Override + @JsonSetter("object") + public _FinalStage object(@NotNull EventStreamCloudEventConnectionUpdatedObject object) { + this.object = Objects.requireNonNull(object, "object must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage context(EventStreamCloudEventContext context) { + this.context = Optional.ofNullable(context); + return this; + } + + @java.lang.Override + @JsonSetter(value = "context", nulls = Nulls.SKIP) + public _FinalStage context(Optional context) { + this.context = context; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedData build() { + return new EventStreamCloudEventConnectionUpdatedData(object, context, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject.java new file mode 100644 index 00000000..db70f490 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject.java @@ -0,0 +1,218 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Map; +import java.util.Objects; + +@JsonDeserialize(using = EventStreamCloudEventConnectionUpdatedObject.Deserializer.class) +public final class EventStreamCloudEventConnectionUpdatedObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionUpdatedObject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject7) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject + && equalTo((EventStreamCloudEventConnectionUpdatedObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject0 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 0); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject1 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 1); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject2 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 2); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject3 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 3); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject4 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 4); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject5 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 5); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject6 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 6); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject7 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionUpdatedObject0 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject1 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject2 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject3 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject4 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject5 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject6 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionUpdatedObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject2.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject3.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject4.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject5.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject6.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java new file mode 100644 index 00000000..7dc8afcd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0 { + private final Optional authentication; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional connectedAccounts; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.connectedAccounts = connectedAccounts; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0 + && equalTo((EventStreamCloudEventConnectionUpdatedObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0 other) { + return authentication.equals(other.authentication) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && connectedAccounts.equals(other.connectedAccounts) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.connectedAccounts, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject0Authentication authentication); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject0Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject0Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0 other) { + authentication(other.getAuthentication()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + connectedAccounts(other.getConnectedAccounts()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject0Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject0Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject0Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0 build() { + return new EventStreamCloudEventConnectionUpdatedObject0( + authentication, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + connectedAccounts, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Authentication.java new file mode 100644 index 00000000..17e19d1c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject0Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.java new file mode 100644 index 00000000..7baaa9d9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.java @@ -0,0 +1,150 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts( + boolean active, Optional crossAppAccess, Map additionalProperties) { + this.active = active; + this.crossAppAccess = crossAppAccess; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @JsonProperty("cross_app_access") + public Optional getCrossAppAccess() { + return crossAppAccess; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts other) { + return active == other.active && crossAppAccess.equals(other.crossAppAccess); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.crossAppAccess); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage crossAppAccess(Optional crossAppAccess); + + _FinalStage crossAppAccess(Boolean crossAppAccess); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + private Optional crossAppAccess = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts other) { + active(other.getActive()); + crossAppAccess(other.getCrossAppAccess()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccess(Boolean crossAppAccess) { + this.crossAppAccess = Optional.ofNullable(crossAppAccess); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access", nulls = Nulls.SKIP) + public _FinalStage crossAppAccess(Optional crossAppAccess) { + this.crossAppAccess = crossAppAccess; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts( + active, crossAppAccess, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Metadata.java new file mode 100644 index 00000000..cde119ee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject0Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject0Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java new file mode 100644 index 00000000..20cf83cc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional discoveryUrl, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.discoveryUrl = discoveryUrl; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && discoveryUrl.equals(other.discoveryUrl) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.discoveryUrl, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap attributeMap); + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + _FinalStage discoveryUrl(Optional discoveryUrl); + + _FinalStage discoveryUrl(String discoveryUrl); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + discoveryUrl(other.getDiscoveryUrl()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + @java.lang.Override + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public _FinalStage discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0Options build() { + return new EventStreamCloudEventConnectionUpdatedObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + discoveryUrl, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.java new file mode 100644 index 00000000..d32bae33 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 00000000..ee1209cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum BIND_ALL = + new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BIND_ALL: + return visitor.visitBindAll(); + case USE_MAP: + return visitor.visitUseMap(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BIND_ALL, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBindAll(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.java new file mode 100644 index 00000000..b1aa71c0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 00000000..ed860681 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 00000000..127691d7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..2b090aa4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 00000000..e438cacf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java new file mode 100644 index 00000000..fcabc733 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum.java new file mode 100644 index 00000000..7f7fee85 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..5d24645e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 00000000..0d39bfbb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 00000000..2ef74fe7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 00000000..0d621dc3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum.java new file mode 100644 index 00000000..639129c3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum.java @@ -0,0 +1,87 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FRONT_CHANNEL: + return visitor.visitFrontChannel(); + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + FRONT_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitFrontChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0StrategyEnum.java new file mode 100644 index 00000000..e42d29de --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionUpdatedObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedObject0StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java new file mode 100644 index 00000000..dd610e70 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1 + && equalTo((EventStreamCloudEventConnectionUpdatedObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject1Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject1Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject1Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject1Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject1Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1 build() { + return new EventStreamCloudEventConnectionUpdatedObject1( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Authentication.java new file mode 100644 index 00000000..dd46f52f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject1Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.java new file mode 100644 index 00000000..c5a82240 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Metadata.java new file mode 100644 index 00000000..9c091c47 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject1Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject1Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java new file mode 100644 index 00000000..ad642bbf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional domain, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.domain = domain; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && domain.equals(other.domain) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.domain, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap attributeMap); + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + domain(other.getDomain()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1Options build() { + return new EventStreamCloudEventConnectionUpdatedObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + domain, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.java new file mode 100644 index 00000000..44529741 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 00000000..95ef02f3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum BASIC_PROFILE = + new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USE_MAP: + return visitor.visitUseMap(); + case BASIC_PROFILE: + return visitor.visitBasicProfile(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BASIC_PROFILE, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBasicProfile(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.java new file mode 100644 index 00000000..75b94a43 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 00000000..d52cd1c0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 00000000..896f2e24 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..b4bb2e6b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 00000000..ef6eab78 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java new file mode 100644 index 00000000..b0d3080e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum.java new file mode 100644 index 00000000..22242231 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..4713ca52 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 00000000..efe6e232 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 00000000..30f068cc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 00000000..948efb55 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum.java new file mode 100644 index 00000000..f42ed018 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1StrategyEnum.java new file mode 100644 index 00000000..3af07bf6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionUpdatedObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OKTA: + return visitor.visitOkta(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionUpdatedObject1StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OKTA, + + UNKNOWN + } + + public interface Visitor { + T visitOkta(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java new file mode 100644 index 00000000..28309646 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2 + && equalTo((EventStreamCloudEventConnectionUpdatedObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject2Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject2Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject2Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject2Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject2Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2 build() { + return new EventStreamCloudEventConnectionUpdatedObject2( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Authentication.java new file mode 100644 index 00000000..08b9c64a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject2Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.java new file mode 100644 index 00000000..e936d850 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Metadata.java new file mode 100644 index 00000000..c7e8c124 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject2Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java new file mode 100644 index 00000000..6e4bd2b0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java @@ -0,0 +1,1086 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional debug; + + private final Optional deflate; + + private final Optional destinationUrl; + + private final Optional disableSignout; + + private final Optional> fieldsMap; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional debug, + Optional deflate, + Optional destinationUrl, + Optional disableSignout, + Optional> fieldsMap, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional recipientUrl, + Optional requestTemplate, + Optional signOutEndpoint, + Optional userIdAttribute, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.debug = debug; + this.deflate = deflate; + this.destinationUrl = destinationUrl; + this.disableSignout = disableSignout; + this.fieldsMap = fieldsMap; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.recipientUrl = recipientUrl; + this.requestTemplate = requestTemplate; + this.signOutEndpoint = signOutEndpoint; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. + */ + @JsonProperty("debug") + public Optional getDebug() { + return debug; + } + + /** + * @return When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. + */ + @JsonProperty("deflate") + public Optional getDeflate() { + return deflate; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("destinationUrl") + public Optional getDestinationUrl() { + return destinationUrl; + } + + /** + * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). + */ + @JsonProperty("disableSignout") + public Optional getDisableSignout() { + return disableSignout; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. + */ + @JsonProperty("global_token_revocation_jwt_iss") + public Optional getGlobalTokenRevocationJwtIss() { + return globalTokenRevocationJwtIss; + } + + /** + * @return Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. + */ + @JsonProperty("global_token_revocation_jwt_sub") + public Optional getGlobalTokenRevocationJwtSub() { + return globalTokenRevocationJwtSub; + } + + /** + * @return HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. + */ + @JsonProperty("metadataUrl") + public Optional getMetadataUrl() { + return metadataUrl; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("recipientUrl") + public Optional getRecipientUrl() { + return recipientUrl; + } + + /** + * @return Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template + */ + @JsonProperty("requestTemplate") + public Optional getRequestTemplate() { + return requestTemplate; + } + + /** + * @return Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. + */ + @JsonProperty("signOutEndpoint") + public Optional getSignOutEndpoint() { + return signOutEndpoint; + } + + /** + * @return Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && debug.equals(other.debug) + && deflate.equals(other.deflate) + && destinationUrl.equals(other.destinationUrl) + && disableSignout.equals(other.disableSignout) + && fieldsMap.equals(other.fieldsMap) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && recipientUrl.equals(other.recipientUrl) + && requestTemplate.equals(other.requestTemplate) + && signOutEndpoint.equals(other.signOutEndpoint) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.debug, + this.deflate, + this.destinationUrl, + this.disableSignout, + this.fieldsMap, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.recipientUrl, + this.requestTemplate, + this.signOutEndpoint, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional + assertionDecryptionSettings = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional debug = Optional.empty(); + + private Optional deflate = Optional.empty(); + + private Optional destinationUrl = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional recipientUrl = Optional.empty(); + + private Optional requestTemplate = Optional.empty(); + + private Optional signOutEndpoint = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + debug(other.getDebug()); + deflate(other.getDeflate()); + destinationUrl(other.getDestinationUrl()); + disableSignout(other.getDisableSignout()); + fieldsMap(other.getFieldsMap()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + recipientUrl(other.getRecipientUrl()); + requestTemplate(other.getRequestTemplate()); + signOutEndpoint(other.getSignOutEndpoint()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public Builder assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + public Builder assertionDecryptionSettings( + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm( + EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public Builder expires(Optional expires) { + this.expires = expires; + return this; + } + + public Builder expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding( + EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm( + EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public Builder signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + public Builder signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public Builder subject(Optional subject) { + this.subject = subject; + return this; + } + + public Builder subject(EventStreamCloudEventConnectionUpdatedObject2OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes.

+ */ + @JsonSetter(value = "debug", nulls = Nulls.SKIP) + public Builder debug(Optional debug) { + this.debug = debug; + return this; + } + + public Builder debug(Boolean debug) { + this.debug = Optional.ofNullable(debug); + return this; + } + + /** + *

When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding.

+ */ + @JsonSetter(value = "deflate", nulls = Nulls.SKIP) + public Builder deflate(Optional deflate) { + this.deflate = deflate; + return this; + } + + public Builder deflate(Boolean deflate) { + this.deflate = Optional.ofNullable(deflate); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "destinationUrl", nulls = Nulls.SKIP) + public Builder destinationUrl(Optional destinationUrl) { + this.destinationUrl = destinationUrl; + return this; + } + + public Builder destinationUrl(String destinationUrl) { + this.destinationUrl = Optional.ofNullable(destinationUrl); + return this; + } + + /** + *

When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).

+ */ + @JsonSetter(value = "disableSignout", nulls = Nulls.SKIP) + public Builder disableSignout(Optional disableSignout) { + this.disableSignout = disableSignout; + return this; + } + + public Builder disableSignout(Boolean disableSignout) { + this.disableSignout = Optional.ofNullable(disableSignout); + return this; + } + + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) + public Builder fieldsMap(Optional> fieldsMap) { + this.fieldsMap = fieldsMap; + return this; + } + + public Builder fieldsMap(Map fieldsMap) { + this.fieldsMap = Optional.ofNullable(fieldsMap); + return this; + } + + /** + *

Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_iss", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtIss(Optional globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + return this; + } + + public Builder globalTokenRevocationJwtIss(String globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = Optional.ofNullable(globalTokenRevocationJwtIss); + return this; + } + + /** + *

Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_sub", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtSub(Optional globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + return this; + } + + public Builder globalTokenRevocationJwtSub(String globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = Optional.ofNullable(globalTokenRevocationJwtSub); + return this; + } + + /** + *

HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.

+ */ + @JsonSetter(value = "metadataUrl", nulls = Nulls.SKIP) + public Builder metadataUrl(Optional metadataUrl) { + this.metadataUrl = metadataUrl; + return this; + } + + public Builder metadataUrl(String metadataUrl) { + this.metadataUrl = Optional.ofNullable(metadataUrl); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) + public Builder recipientUrl(Optional recipientUrl) { + this.recipientUrl = recipientUrl; + return this; + } + + public Builder recipientUrl(String recipientUrl) { + this.recipientUrl = Optional.ofNullable(recipientUrl); + return this; + } + + /** + *

Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template

+ */ + @JsonSetter(value = "requestTemplate", nulls = Nulls.SKIP) + public Builder requestTemplate(Optional requestTemplate) { + this.requestTemplate = requestTemplate; + return this; + } + + public Builder requestTemplate(String requestTemplate) { + this.requestTemplate = Optional.ofNullable(requestTemplate); + return this; + } + + /** + *

Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.

+ */ + @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) + public Builder signOutEndpoint(Optional signOutEndpoint) { + this.signOutEndpoint = signOutEndpoint; + return this; + } + + public Builder signOutEndpoint(String signOutEndpoint) { + this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); + return this; + } + + /** + *

Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2Options build() { + return new EventStreamCloudEventConnectionUpdatedObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableSignout, + fieldsMap, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + recipientUrl, + requestTemplate, + signOutEndpoint, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 00000000..b0c1e5a7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 00000000..644adefc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 00000000..3297ee82 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.java new file mode 100644 index 00000000..1374b262 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 00000000..7b2caa35 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum.java new file mode 100644 index 00000000..edd2b8df --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..9ffc6daa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 00000000..04dc4c76 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.java new file mode 100644 index 00000000..7eb6cabf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionUpdatedObject2OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2StrategyEnum.java new file mode 100644 index 00000000..ed2fd7cc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionUpdatedObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SAMLP: + return visitor.visitSamlp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionUpdatedObject2StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SAMLP, + + UNKNOWN + } + + public interface Visitor { + T visitSamlp(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java new file mode 100644 index 00000000..f2a06880 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3 + && equalTo((EventStreamCloudEventConnectionUpdatedObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject3Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject3Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject3Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject3Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject3Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3 build() { + return new EventStreamCloudEventConnectionUpdatedObject3( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Authentication.java new file mode 100644 index 00000000..d464f52e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject3Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.java new file mode 100644 index 00000000..a9d50ab6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Metadata.java new file mode 100644 index 00000000..e86c50a8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject3Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject3Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java new file mode 100644 index 00000000..ed6a007f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java @@ -0,0 +1,980 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final String pingFederateBaseUrl; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + String pingFederateBaseUrl, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.pingFederateBaseUrl = pingFederateBaseUrl; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return URL provided by PingFederate which returns information used for creating the connection + */ + @JsonProperty("pingFederateBaseUrl") + public String getPingFederateBaseUrl() { + return pingFederateBaseUrl; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && pingFederateBaseUrl.equals(other.pingFederateBaseUrl); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.pingFederateBaseUrl); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PingFederateBaseUrlStage builder() { + return new Builder(); + } + + public interface PingFederateBaseUrlStage { + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ */ + _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings); + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + _FinalStage cert(Optional cert); + + _FinalStage cert(String cert); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + _FinalStage digestAlgorithm( + Optional digestAlgorithm); + + _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum digestAlgorithm); + + /** + *

Domain aliases for the connection

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + _FinalStage entityId(Optional entityId); + + _FinalStage entityId(String entityId); + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + _FinalStage expires(Optional expires); + + _FinalStage expires(OffsetDateTime expires); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage idpinitiated( + Optional idpinitiated); + + _FinalStage idpinitiated(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated idpinitiated); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage protocolBinding( + Optional protocolBinding); + + _FinalStage protocolBinding( + EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm); + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + _FinalStage signInEndpoint(Optional signInEndpoint); + + _FinalStage signInEndpoint(String signInEndpoint); + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + _FinalStage signingCert(Optional signingCert); + + _FinalStage signingCert(String signingCert); + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + _FinalStage signSamlRequest(Optional signSamlRequest); + + _FinalStage signSamlRequest(Boolean signSamlRequest); + + _FinalStage subject(Optional subject); + + _FinalStage subject(EventStreamCloudEventConnectionUpdatedObject3OptionsSubject subject); + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PingFederateBaseUrlStage, _FinalStage { + private String pingFederateBaseUrl; + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional + assertionDecryptionSettings = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + pingFederateBaseUrl(other.getPingFederateBaseUrl()); + return this; + } + + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ *

URL provided by PingFederate which returns information used for creating the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("pingFederateBaseUrl") + public _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl) { + this.pingFederateBaseUrl = + Objects.requireNonNull(pingFederateBaseUrl, "pingFederateBaseUrl must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage subject(EventStreamCloudEventConnectionUpdatedObject3OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public _FinalStage subject(Optional subject) { + this.subject = subject; + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @java.lang.Override + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public _FinalStage signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @java.lang.Override + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public _FinalStage signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @java.lang.Override + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public _FinalStage signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + @java.lang.Override + public _FinalStage protocolBinding( + EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public _FinalStage protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public _FinalStage idpinitiated(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @java.lang.Override + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public _FinalStage idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @java.lang.Override + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public _FinalStage expires(Optional expires) { + this.expires = expires; + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public _FinalStage entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + /** + *

Domain aliases for the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public _FinalStage digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @java.lang.Override + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public _FinalStage cert(Optional cert) { + this.cert = cert; + return this; + } + + @java.lang.Override + public _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3Options build() { + return new EventStreamCloudEventConnectionUpdatedObject3Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + pingFederateBaseUrl, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 00000000..86b3f664 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 00000000..e9dbee16 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 00000000..8c80bb4b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.java new file mode 100644 index 00000000..978a7024 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 00000000..e4c22d5c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum.java new file mode 100644 index 00000000..39b5d04d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..1b6af939 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 00000000..41966b58 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.java new file mode 100644 index 00000000..d902994a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionUpdatedObject3OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3StrategyEnum.java new file mode 100644 index 00000000..590be737 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionUpdatedObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PINGFEDERATE: + return visitor.visitPingfederate(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionUpdatedObject3StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PINGFEDERATE, + + UNKNOWN + } + + public interface Visitor { + T visitPingfederate(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java new file mode 100644 index 00000000..7844ca7d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4 + && equalTo((EventStreamCloudEventConnectionUpdatedObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject4 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject4Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject4Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject4 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject4Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject4Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject4Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject4 build() { + return new EventStreamCloudEventConnectionUpdatedObject4( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Authentication.java new file mode 100644 index 00000000..c07297f5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject4Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject4Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject4Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject4Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.java new file mode 100644 index 00000000..1fda0355 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Metadata.java new file mode 100644 index 00000000..cbb89823 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject4Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject4Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Options.java new file mode 100644 index 00000000..2c919ba8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Options.java @@ -0,0 +1,564 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4Options { + private final Optional adfsServer; + + private final Optional certRolloverNotification; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional fedMetadataXml; + + private final Optional iconUrl; + + private final Optional> nonPersistentAttrs; + + private final Optional> prevThumbprints; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4Options( + Optional adfsServer, + Optional certRolloverNotification, + Optional> domainAliases, + Optional entityId, + Optional fedMetadataXml, + Optional iconUrl, + Optional> nonPersistentAttrs, + Optional> prevThumbprints, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional userIdAttribute, + Map additionalProperties) { + this.adfsServer = adfsServer; + this.certRolloverNotification = certRolloverNotification; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.fedMetadataXml = fedMetadataXml; + this.iconUrl = iconUrl; + this.nonPersistentAttrs = nonPersistentAttrs; + this.prevThumbprints = prevThumbprints; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + /** + * @return ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. + */ + @JsonProperty("adfs_server") + public Optional getAdfsServer() { + return adfsServer; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. + */ + @JsonProperty("fedMetadataXml") + public Optional getFedMetadataXml() { + return fedMetadataXml; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("prev_thumbprints") + public Optional> getPrevThumbprints() { + return prevThumbprints; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + /** + * @return Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4Options other) { + return adfsServer.equals(other.adfsServer) + && certRolloverNotification.equals(other.certRolloverNotification) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && fedMetadataXml.equals(other.fedMetadataXml) + && iconUrl.equals(other.iconUrl) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && prevThumbprints.equals(other.prevThumbprints) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adfsServer, + this.certRolloverNotification, + this.domainAliases, + this.entityId, + this.fedMetadataXml, + this.iconUrl, + this.nonPersistentAttrs, + this.prevThumbprints, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional adfsServer = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional fedMetadataXml = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional> prevThumbprints = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject4Options other) { + adfsServer(other.getAdfsServer()); + certRolloverNotification(other.getCertRolloverNotification()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + fedMetadataXml(other.getFedMetadataXml()); + iconUrl(other.getIconUrl()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + prevThumbprints(other.getPrevThumbprints()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + /** + *

ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent.

+ */ + @JsonSetter(value = "adfs_server", nulls = Nulls.SKIP) + public Builder adfsServer(Optional adfsServer) { + this.adfsServer = adfsServer; + return this; + } + + public Builder adfsServer(String adfsServer) { + this.adfsServer = Optional.ofNullable(adfsServer); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.

+ */ + @JsonSetter(value = "fedMetadataXml", nulls = Nulls.SKIP) + public Builder fedMetadataXml(Optional fedMetadataXml) { + this.fedMetadataXml = fedMetadataXml; + return this; + } + + public Builder fedMetadataXml(String fedMetadataXml) { + this.fedMetadataXml = Optional.ofNullable(fedMetadataXml); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "prev_thumbprints", nulls = Nulls.SKIP) + public Builder prevThumbprints(Optional> prevThumbprints) { + this.prevThumbprints = prevThumbprints; + return this; + } + + public Builder prevThumbprints(List prevThumbprints) { + this.prevThumbprints = Optional.ofNullable(prevThumbprints); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + /** + *

Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Tenant domain

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject4Options build() { + return new EventStreamCloudEventConnectionUpdatedObject4Options( + adfsServer, + certRolloverNotification, + domainAliases, + entityId, + fedMetadataXml, + iconUrl, + nonPersistentAttrs, + prevThumbprints, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..5de352f8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 00000000..6c76f8fd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4StrategyEnum.java new file mode 100644 index 00000000..873ea12c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject4StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionUpdatedObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject4StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject4StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ADFS: + return visitor.visitAdfs(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionUpdatedObject4StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ADFS, + + UNKNOWN + } + + public interface Visitor { + T visitAdfs(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java new file mode 100644 index 00000000..3e9a5f71 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java @@ -0,0 +1,515 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5 + && equalTo((EventStreamCloudEventConnectionUpdatedObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject5 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject5Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy; + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject5 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject5Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject5Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject5Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject5 build() { + return new EventStreamCloudEventConnectionUpdatedObject5( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Authentication.java new file mode 100644 index 00000000..cff88223 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject5Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject5Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject5Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject5Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.java new file mode 100644 index 00000000..c3f8825c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Metadata.java new file mode 100644 index 00000000..0e819a2e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject5Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject5Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java new file mode 100644 index 00000000..34485134 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java @@ -0,0 +1,657 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5Options { + private final Optional agentIp; + + private final Optional agentMode; + + private final Optional agentVersion; + + private final Optional bruteForceProtection; + + private final Optional certAuth; + + private final Optional> certs; + + private final Optional disableCache; + + private final Optional disableSelfServiceChangePassword; + + private final Optional> domainAliases; + + private final Optional iconUrl; + + private final Optional> ips; + + private final Optional kerberos; + + private final Optional> nonPersistentAttrs; + + private final Optional + setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5Options( + Optional agentIp, + Optional agentMode, + Optional agentVersion, + Optional bruteForceProtection, + Optional certAuth, + Optional> certs, + Optional disableCache, + Optional disableSelfServiceChangePassword, + Optional> domainAliases, + Optional iconUrl, + Optional> ips, + Optional kerberos, + Optional> nonPersistentAttrs, + Optional + setUserRootAttributes, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Map additionalProperties) { + this.agentIp = agentIp; + this.agentMode = agentMode; + this.agentVersion = agentVersion; + this.bruteForceProtection = bruteForceProtection; + this.certAuth = certAuth; + this.certs = certs; + this.disableCache = disableCache; + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + this.domainAliases = domainAliases; + this.iconUrl = iconUrl; + this.ips = ips; + this.kerberos = kerberos; + this.nonPersistentAttrs = nonPersistentAttrs; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). + */ + @JsonProperty("agentIP") + public Optional getAgentIp() { + return agentIp; + } + + /** + * @return When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). + */ + @JsonProperty("agentMode") + public Optional getAgentMode() { + return agentMode; + } + + /** + * @return Version identifier of the installed AD connector agent software (managed by the AD Connector agent). + */ + @JsonProperty("agentVersion") + public Optional getAgentVersion() { + return agentVersion; + } + + /** + * @return Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. + */ + @JsonProperty("brute_force_protection") + public Optional getBruteForceProtection() { + return bruteForceProtection; + } + + /** + * @return Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint + */ + @JsonProperty("certAuth") + public Optional getCertAuth() { + return certAuth; + } + + /** + * @return Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). + */ + @JsonProperty("certs") + public Optional> getCerts() { + return certs; + } + + /** + * @return When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory + */ + @JsonProperty("disable_cache") + public Optional getDisableCache() { + return disableCache; + } + + /** + * @return When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets + */ + @JsonProperty("disable_self_service_change_password") + public Optional getDisableSelfServiceChangePassword() { + return disableSelfServiceChangePassword; + } + + /** + * @return List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. + */ + @JsonProperty("ips") + public Optional> getIps() { + return ips; + } + + /** + * @return Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges + */ + @JsonProperty("kerberos") + public Optional getKerberos() { + return kerberos; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Primary AD domain hint used for HRD and discovery. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5Options other) { + return agentIp.equals(other.agentIp) + && agentMode.equals(other.agentMode) + && agentVersion.equals(other.agentVersion) + && bruteForceProtection.equals(other.bruteForceProtection) + && certAuth.equals(other.certAuth) + && certs.equals(other.certs) + && disableCache.equals(other.disableCache) + && disableSelfServiceChangePassword.equals(other.disableSelfServiceChangePassword) + && domainAliases.equals(other.domainAliases) + && iconUrl.equals(other.iconUrl) + && ips.equals(other.ips) + && kerberos.equals(other.kerberos) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.agentIp, + this.agentMode, + this.agentVersion, + this.bruteForceProtection, + this.certAuth, + this.certs, + this.disableCache, + this.disableSelfServiceChangePassword, + this.domainAliases, + this.iconUrl, + this.ips, + this.kerberos, + this.nonPersistentAttrs, + this.setUserRootAttributes, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional agentIp = Optional.empty(); + + private Optional agentMode = Optional.empty(); + + private Optional agentVersion = Optional.empty(); + + private Optional bruteForceProtection = Optional.empty(); + + private Optional certAuth = Optional.empty(); + + private Optional> certs = Optional.empty(); + + private Optional disableCache = Optional.empty(); + + private Optional disableSelfServiceChangePassword = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> ips = Optional.empty(); + + private Optional kerberos = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject5Options other) { + agentIp(other.getAgentIp()); + agentMode(other.getAgentMode()); + agentVersion(other.getAgentVersion()); + bruteForceProtection(other.getBruteForceProtection()); + certAuth(other.getCertAuth()); + certs(other.getCerts()); + disableCache(other.getDisableCache()); + disableSelfServiceChangePassword(other.getDisableSelfServiceChangePassword()); + domainAliases(other.getDomainAliases()); + iconUrl(other.getIconUrl()); + ips(other.getIps()); + kerberos(other.getKerberos()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentIP", nulls = Nulls.SKIP) + public Builder agentIp(Optional agentIp) { + this.agentIp = agentIp; + return this; + } + + public Builder agentIp(String agentIp) { + this.agentIp = Optional.ofNullable(agentIp); + return this; + } + + /** + *

When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentMode", nulls = Nulls.SKIP) + public Builder agentMode(Optional agentMode) { + this.agentMode = agentMode; + return this; + } + + public Builder agentMode(Boolean agentMode) { + this.agentMode = Optional.ofNullable(agentMode); + return this; + } + + /** + *

Version identifier of the installed AD connector agent software (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentVersion", nulls = Nulls.SKIP) + public Builder agentVersion(Optional agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + public Builder agentVersion(String agentVersion) { + this.agentVersion = Optional.ofNullable(agentVersion); + return this; + } + + /** + *

Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures.

+ */ + @JsonSetter(value = "brute_force_protection", nulls = Nulls.SKIP) + public Builder bruteForceProtection(Optional bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + public Builder bruteForceProtection(Boolean bruteForceProtection) { + this.bruteForceProtection = Optional.ofNullable(bruteForceProtection); + return this; + } + + /** + *

Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint

+ */ + @JsonSetter(value = "certAuth", nulls = Nulls.SKIP) + public Builder certAuth(Optional certAuth) { + this.certAuth = certAuth; + return this; + } + + public Builder certAuth(Boolean certAuth) { + this.certAuth = Optional.ofNullable(certAuth); + return this; + } + + /** + *

Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "certs", nulls = Nulls.SKIP) + public Builder certs(Optional> certs) { + this.certs = certs; + return this; + } + + public Builder certs(List certs) { + this.certs = Optional.ofNullable(certs); + return this; + } + + /** + *

When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory

+ */ + @JsonSetter(value = "disable_cache", nulls = Nulls.SKIP) + public Builder disableCache(Optional disableCache) { + this.disableCache = disableCache; + return this; + } + + public Builder disableCache(Boolean disableCache) { + this.disableCache = Optional.ofNullable(disableCache); + return this; + } + + /** + *

When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets

+ */ + @JsonSetter(value = "disable_self_service_change_password", nulls = Nulls.SKIP) + public Builder disableSelfServiceChangePassword(Optional disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + return this; + } + + public Builder disableSelfServiceChangePassword(Boolean disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = Optional.ofNullable(disableSelfServiceChangePassword); + return this; + } + + /** + *

List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication.

+ */ + @JsonSetter(value = "ips", nulls = Nulls.SKIP) + public Builder ips(Optional> ips) { + this.ips = ips; + return this; + } + + public Builder ips(List ips) { + this.ips = Optional.ofNullable(ips); + return this; + } + + /** + *

Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges

+ */ + @JsonSetter(value = "kerberos", nulls = Nulls.SKIP) + public Builder kerberos(Optional kerberos) { + this.kerberos = kerberos; + return this; + } + + public Builder kerberos(Boolean kerberos) { + this.kerberos = Optional.ofNullable(kerberos); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + /** + *

The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Primary AD domain hint used for HRD and discovery.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject5Options build() { + return new EventStreamCloudEventConnectionUpdatedObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + nonPersistentAttrs, + setUserRootAttributes, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..2d13c5c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5StrategyEnum.java new file mode 100644 index 00000000..aca91e39 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject5StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject5StrategyEnum AD = + new EventStreamCloudEventConnectionUpdatedObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject5StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject5StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AD: + return visitor.visitAd(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionUpdatedObject5StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java new file mode 100644 index 00000000..0a5cd562 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6 + && equalTo((EventStreamCloudEventConnectionUpdatedObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject6Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject6Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject6Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject6Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject6Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6 build() { + return new EventStreamCloudEventConnectionUpdatedObject6( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Authentication.java new file mode 100644 index 00000000..933d448b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject6Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.java new file mode 100644 index 00000000..b2d60b33 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Metadata.java new file mode 100644 index 00000000..a76007a1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject6Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject6Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java new file mode 100644 index 00000000..225f6acc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java @@ -0,0 +1,1112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6Options { + private final Optional adminAccessTokenExpiresin; + + private final Optional allowSettingLoginScopes; + + private final Optional apiEnableGroups; + + private final Optional apiEnableUsers; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional email; + + private final Optional extAgreedTerms; + + private final Optional extGroups; + + private final Optional extGroupsExtended; + + private final Optional extIsAdmin; + + private final Optional extIsSuspended; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional handleLoginFromSocial; + + private final Optional iconUrl; + + private final Optional mapUserIdToId; + + private final Optional> nonPersistentAttrs; + + private final Optional profile; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6Options( + Optional adminAccessTokenExpiresin, + Optional allowSettingLoginScopes, + Optional apiEnableGroups, + Optional apiEnableUsers, + String clientId, + Optional domain, + Optional> domainAliases, + Optional email, + Optional extAgreedTerms, + Optional extGroups, + Optional extGroupsExtended, + Optional extIsAdmin, + Optional extIsSuspended, + Optional + federatedConnectionsAccessTokens, + Optional handleLoginFromSocial, + Optional iconUrl, + Optional mapUserIdToId, + Optional> nonPersistentAttrs, + Optional profile, + Optional> scope, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional> upstreamParams, + Map additionalProperties) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + this.allowSettingLoginScopes = allowSettingLoginScopes; + this.apiEnableGroups = apiEnableGroups; + this.apiEnableUsers = apiEnableUsers; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.email = email; + this.extAgreedTerms = extAgreedTerms; + this.extGroups = extGroups; + this.extGroupsExtended = extGroupsExtended; + this.extIsAdmin = extIsAdmin; + this.extIsSuspended = extIsSuspended; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.handleLoginFromSocial = handleLoginFromSocial; + this.iconUrl = iconUrl; + this.mapUserIdToId = mapUserIdToId; + this.nonPersistentAttrs = nonPersistentAttrs; + this.profile = profile; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. + */ + @JsonProperty("admin_access_token_expiresin") + public Optional getAdminAccessTokenExpiresin() { + return adminAccessTokenExpiresin; + } + + /** + * @return When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. + */ + @JsonProperty("allow_setting_login_scopes") + public Optional getAllowSettingLoginScopes() { + return allowSettingLoginScopes; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. + */ + @JsonProperty("api_enable_groups") + public Optional getApiEnableGroups() { + return apiEnableGroups; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return Primary Google Workspace domain name that users must belong to. + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return Whether the OAuth flow requests the email scope. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Fetches the agreedToTerms flag from the Google Directory profile. + */ + @JsonProperty("ext_agreed_terms") + public Optional getExtAgreedTerms() { + return extAgreedTerms; + } + + /** + * @return Enables enrichment with Google group memberships (required for ext_groups_extended). + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true. + */ + @JsonProperty("ext_groups_extended") + public Optional getExtGroupsExtended() { + return extGroupsExtended; + } + + /** + * @return Fetches the Google Directory admin flag for the signing-in user. + */ + @JsonProperty("ext_is_admin") + public Optional getExtIsAdmin() { + return extIsAdmin; + } + + /** + * @return Fetches the Google Directory suspended flag for the signing-in user. + */ + @JsonProperty("ext_is_suspended") + public Optional getExtIsSuspended() { + return extIsSuspended; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. + */ + @JsonProperty("handle_login_from_social") + public Optional getHandleLoginFromSocial() { + return handleLoginFromSocial; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. + */ + @JsonProperty("map_user_id_to_id") + public Optional getMapUserIdToId() { + return mapUserIdToId; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Whether the OAuth flow requests the profile scope. + */ + @JsonProperty("profile") + public Optional getProfile() { + return profile; + } + + /** + * @return Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The Google Workspace primary domain used to identify the organization during authentication. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6Options other) { + return adminAccessTokenExpiresin.equals(other.adminAccessTokenExpiresin) + && allowSettingLoginScopes.equals(other.allowSettingLoginScopes) + && apiEnableGroups.equals(other.apiEnableGroups) + && apiEnableUsers.equals(other.apiEnableUsers) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && email.equals(other.email) + && extAgreedTerms.equals(other.extAgreedTerms) + && extGroups.equals(other.extGroups) + && extGroupsExtended.equals(other.extGroupsExtended) + && extIsAdmin.equals(other.extIsAdmin) + && extIsSuspended.equals(other.extIsSuspended) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && handleLoginFromSocial.equals(other.handleLoginFromSocial) + && iconUrl.equals(other.iconUrl) + && mapUserIdToId.equals(other.mapUserIdToId) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && profile.equals(other.profile) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adminAccessTokenExpiresin, + this.allowSettingLoginScopes, + this.apiEnableGroups, + this.apiEnableUsers, + this.clientId, + this.domain, + this.domainAliases, + this.email, + this.extAgreedTerms, + this.extGroups, + this.extGroupsExtended, + this.extIsAdmin, + this.extIsSuspended, + this.federatedConnectionsAccessTokens, + this.handleLoginFromSocial, + this.iconUrl, + this.mapUserIdToId, + this.nonPersistentAttrs, + this.profile, + this.scope, + this.setUserRootAttributes, + this.tenantDomain, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin); + + _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin); + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes); + + _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + _FinalStage apiEnableGroups(Optional apiEnableGroups); + + _FinalStage apiEnableGroups(Boolean apiEnableGroups); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + _FinalStage email(Optional email); + + _FinalStage email(Boolean email); + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + _FinalStage extAgreedTerms(Optional extAgreedTerms); + + _FinalStage extAgreedTerms(Boolean extAgreedTerms); + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + _FinalStage extGroupsExtended(Optional extGroupsExtended); + + _FinalStage extGroupsExtended(Boolean extGroupsExtended); + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + _FinalStage extIsAdmin(Optional extIsAdmin); + + _FinalStage extIsAdmin(Boolean extIsAdmin); + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + _FinalStage extIsSuspended(Optional extIsSuspended); + + _FinalStage extIsSuspended(Boolean extIsSuspended); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); + + _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + _FinalStage mapUserIdToId(Optional mapUserIdToId); + + _FinalStage mapUserIdToId(Boolean mapUserIdToId); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + _FinalStage profile(Optional profile); + + _FinalStage profile(Boolean profile); + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional> upstreamParams = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional profile = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional mapUserIdToId = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional handleLoginFromSocial = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extIsSuspended = Optional.empty(); + + private Optional extIsAdmin = Optional.empty(); + + private Optional extGroupsExtended = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional extAgreedTerms = Optional.empty(); + + private Optional email = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + private Optional apiEnableGroups = Optional.empty(); + + private Optional allowSettingLoginScopes = Optional.empty(); + + private Optional adminAccessTokenExpiresin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6Options other) { + adminAccessTokenExpiresin(other.getAdminAccessTokenExpiresin()); + allowSettingLoginScopes(other.getAllowSettingLoginScopes()); + apiEnableGroups(other.getApiEnableGroups()); + apiEnableUsers(other.getApiEnableUsers()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + email(other.getEmail()); + extAgreedTerms(other.getExtAgreedTerms()); + extGroups(other.getExtGroups()); + extGroupsExtended(other.getExtGroupsExtended()); + extIsAdmin(other.getExtIsAdmin()); + extIsSuspended(other.getExtIsSuspended()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + handleLoginFromSocial(other.getHandleLoginFromSocial()); + iconUrl(other.getIconUrl()); + mapUserIdToId(other.getMapUserIdToId()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + profile(other.getProfile()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage profile(Boolean profile) { + this.profile = Optional.ofNullable(profile); + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + @java.lang.Override + @JsonSetter(value = "profile", nulls = Nulls.SKIP) + public _FinalStage profile(Optional profile) { + this.profile = profile; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage mapUserIdToId(Boolean mapUserIdToId) { + this.mapUserIdToId = Optional.ofNullable(mapUserIdToId); + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + @java.lang.Override + @JsonSetter(value = "map_user_id_to_id", nulls = Nulls.SKIP) + public _FinalStage mapUserIdToId(Optional mapUserIdToId) { + this.mapUserIdToId = mapUserIdToId; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial) { + this.handleLoginFromSocial = Optional.ofNullable(handleLoginFromSocial); + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + @java.lang.Override + @JsonSetter(value = "handle_login_from_social", nulls = Nulls.SKIP) + public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial) { + this.handleLoginFromSocial = handleLoginFromSocial; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsSuspended(Boolean extIsSuspended) { + this.extIsSuspended = Optional.ofNullable(extIsSuspended); + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) + public _FinalStage extIsSuspended(Optional extIsSuspended) { + this.extIsSuspended = extIsSuspended; + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsAdmin(Boolean extIsAdmin) { + this.extIsAdmin = Optional.ofNullable(extIsAdmin); + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_admin", nulls = Nulls.SKIP) + public _FinalStage extIsAdmin(Optional extIsAdmin) { + this.extIsAdmin = extIsAdmin; + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroupsExtended(Boolean extGroupsExtended) { + this.extGroupsExtended = Optional.ofNullable(extGroupsExtended); + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups_extended", nulls = Nulls.SKIP) + public _FinalStage extGroupsExtended(Optional extGroupsExtended) { + this.extGroupsExtended = extGroupsExtended; + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extAgreedTerms(Boolean extAgreedTerms) { + this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) + public _FinalStage extAgreedTerms(Optional extAgreedTerms) { + this.extAgreedTerms = extAgreedTerms; + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage email(Boolean email) { + this.email = Optional.ofNullable(email); + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableGroups(Boolean apiEnableGroups) { + this.apiEnableGroups = Optional.ofNullable(apiEnableGroups); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_groups", nulls = Nulls.SKIP) + public _FinalStage apiEnableGroups(Optional apiEnableGroups) { + this.apiEnableGroups = apiEnableGroups; + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes) { + this.allowSettingLoginScopes = Optional.ofNullable(allowSettingLoginScopes); + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + @java.lang.Override + @JsonSetter(value = "allow_setting_login_scopes", nulls = Nulls.SKIP) + public _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes) { + this.allowSettingLoginScopes = allowSettingLoginScopes; + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = Optional.ofNullable(adminAccessTokenExpiresin); + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + @java.lang.Override + @JsonSetter(value = "admin_access_token_expiresin", nulls = Nulls.SKIP) + public _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6Options build() { + return new EventStreamCloudEventConnectionUpdatedObject6Options( + adminAccessTokenExpiresin, + allowSettingLoginScopes, + apiEnableGroups, + apiEnableUsers, + clientId, + domain, + domainAliases, + email, + extAgreedTerms, + extGroups, + extGroupsExtended, + extIsAdmin, + extIsSuspended, + federatedConnectionsAccessTokens, + handleLoginFromSocial, + iconUrl, + mapUserIdToId, + nonPersistentAttrs, + profile, + scope, + setUserRootAttributes, + tenantDomain, + upstreamParams, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..7c44fbfb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..ab19c742 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6StrategyEnum.java new file mode 100644 index 00000000..30097b57 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject6StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionUpdatedObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject6StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject6StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionUpdatedObject6StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + GOOGLE_APPS, + + UNKNOWN + } + + public interface Visitor { + T visitGoogleApps(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java new file mode 100644 index 00000000..5c06664c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7 + && equalTo((EventStreamCloudEventConnectionUpdatedObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject7Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject7Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject7Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject7Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject7Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7 build() { + return new EventStreamCloudEventConnectionUpdatedObject7( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Authentication.java new file mode 100644 index 00000000..1c0952f6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject7Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.java new file mode 100644 index 00000000..7de822a7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Metadata.java new file mode 100644 index 00000000..7dd0e869 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject7Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject7Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java new file mode 100644 index 00000000..efc2589a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java @@ -0,0 +1,1297 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7Options { + private final Optional apiEnableUsers; + + private final Optional appDomain; + + private final Optional appId; + + private final Optional basicProfile; + + private final Optional certRolloverNotification; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional extGroups; + + private final Optional extNestedGroups; + + private final Optional extProfile; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional granted; + + private final Optional iconUrl; + + private final Optional identityApi; + + private final Optional maxGroupsToRetrieve; + + private final Optional> nonPersistentAttrs; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional tenantDomain; + + private final Optional tenantId; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional useWsfed; + + private final Optional useCommonEndpoint; + + private final Optional useridAttribute; + + private final Optional waadProtocol; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7Options( + Optional apiEnableUsers, + Optional appDomain, + Optional appId, + Optional basicProfile, + Optional certRolloverNotification, + String clientId, + Optional domain, + Optional> domainAliases, + Optional extGroups, + Optional extNestedGroups, + Optional extProfile, + Optional + federatedConnectionsAccessTokens, + Optional granted, + Optional iconUrl, + Optional identityApi, + Optional maxGroupsToRetrieve, + Optional> nonPersistentAttrs, + Optional> scope, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional tenantDomain, + Optional tenantId, + Optional> thumbprints, + Optional> upstreamParams, + Optional useWsfed, + Optional useCommonEndpoint, + Optional useridAttribute, + Optional waadProtocol, + Map additionalProperties) { + this.apiEnableUsers = apiEnableUsers; + this.appDomain = appDomain; + this.appId = appId; + this.basicProfile = basicProfile; + this.certRolloverNotification = certRolloverNotification; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.extGroups = extGroups; + this.extNestedGroups = extNestedGroups; + this.extProfile = extProfile; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.granted = granted; + this.iconUrl = iconUrl; + this.identityApi = identityApi; + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + this.nonPersistentAttrs = nonPersistentAttrs; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.tenantDomain = tenantDomain; + this.tenantId = tenantId; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.useWsfed = useWsfed; + this.useCommonEndpoint = useCommonEndpoint; + this.useridAttribute = useridAttribute; + this.waadProtocol = waadProtocol; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enable users API + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. + */ + @JsonProperty("app_domain") + public Optional getAppDomain() { + return appDomain; + } + + /** + * @return The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. + */ + @JsonProperty("app_id") + public Optional getAppId() { + return appId; + } + + /** + * @return Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. + */ + @JsonProperty("basic_profile") + public Optional getBasicProfile() { + return basicProfile; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. + */ + @JsonProperty("ext_nested_groups") + public Optional getExtNestedGroups() { + return extNestedGroups; + } + + /** + * @return When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. + */ + @JsonProperty("ext_profile") + public Optional getExtProfile() { + return extProfile; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. + */ + @JsonProperty("granted") + public Optional getGranted() { + return granted; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("identity_api") + public Optional getIdentityApi() { + return identityApi; + } + + /** + * @return Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. + */ + @JsonProperty("max_groups_to_retrieve") + public Optional getMaxGroupsToRetrieve() { + return maxGroupsToRetrieve; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. + */ + @JsonProperty("tenantId") + public Optional getTenantId() { + return tenantId; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. + */ + @JsonProperty("use_wsfed") + public Optional getUseWsfed() { + return useWsfed; + } + + /** + * @return When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. + */ + @JsonProperty("useCommonEndpoint") + public Optional getUseCommonEndpoint() { + return useCommonEndpoint; + } + + @JsonProperty("userid_attribute") + public Optional getUseridAttribute() { + return useridAttribute; + } + + @JsonProperty("waad_protocol") + public Optional getWaadProtocol() { + return waadProtocol; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7Options other) { + return apiEnableUsers.equals(other.apiEnableUsers) + && appDomain.equals(other.appDomain) + && appId.equals(other.appId) + && basicProfile.equals(other.basicProfile) + && certRolloverNotification.equals(other.certRolloverNotification) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && extGroups.equals(other.extGroups) + && extNestedGroups.equals(other.extNestedGroups) + && extProfile.equals(other.extProfile) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && granted.equals(other.granted) + && iconUrl.equals(other.iconUrl) + && identityApi.equals(other.identityApi) + && maxGroupsToRetrieve.equals(other.maxGroupsToRetrieve) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && tenantDomain.equals(other.tenantDomain) + && tenantId.equals(other.tenantId) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && useWsfed.equals(other.useWsfed) + && useCommonEndpoint.equals(other.useCommonEndpoint) + && useridAttribute.equals(other.useridAttribute) + && waadProtocol.equals(other.waadProtocol); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.apiEnableUsers, + this.appDomain, + this.appId, + this.basicProfile, + this.certRolloverNotification, + this.clientId, + this.domain, + this.domainAliases, + this.extGroups, + this.extNestedGroups, + this.extProfile, + this.federatedConnectionsAccessTokens, + this.granted, + this.iconUrl, + this.identityApi, + this.maxGroupsToRetrieve, + this.nonPersistentAttrs, + this.scope, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.tenantDomain, + this.tenantId, + this.thumbprints, + this.upstreamParams, + this.useWsfed, + this.useCommonEndpoint, + this.useridAttribute, + this.waadProtocol); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Enable users API

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + _FinalStage appDomain(Optional appDomain); + + _FinalStage appDomain(String appDomain); + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + _FinalStage appId(Optional appId); + + _FinalStage appId(String appId); + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + _FinalStage basicProfile(Optional basicProfile); + + _FinalStage basicProfile(Boolean basicProfile); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + _FinalStage extNestedGroups(Optional extNestedGroups); + + _FinalStage extNestedGroups(Boolean extNestedGroups); + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + _FinalStage extProfile(Optional extProfile); + + _FinalStage extProfile(Boolean extProfile); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + _FinalStage granted(Optional granted); + + _FinalStage granted(Boolean granted); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage identityApi( + Optional identityApi); + + _FinalStage identityApi(EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum identityApi); + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve); + + _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + _FinalStage tenantId(Optional tenantId); + + _FinalStage tenantId(String tenantId); + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + _FinalStage useWsfed(Optional useWsfed); + + _FinalStage useWsfed(Boolean useWsfed); + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + _FinalStage useCommonEndpoint(Optional useCommonEndpoint); + + _FinalStage useCommonEndpoint(Boolean useCommonEndpoint); + + _FinalStage useridAttribute( + Optional useridAttribute); + + _FinalStage useridAttribute( + EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol(EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum waadProtocol); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional waadProtocol = + Optional.empty(); + + private Optional useridAttribute = + Optional.empty(); + + private Optional useCommonEndpoint = Optional.empty(); + + private Optional useWsfed = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantId = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional maxGroupsToRetrieve = Optional.empty(); + + private Optional identityApi = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional granted = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extProfile = Optional.empty(); + + private Optional extNestedGroups = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional basicProfile = Optional.empty(); + + private Optional appId = Optional.empty(); + + private Optional appDomain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7Options other) { + apiEnableUsers(other.getApiEnableUsers()); + appDomain(other.getAppDomain()); + appId(other.getAppId()); + basicProfile(other.getBasicProfile()); + certRolloverNotification(other.getCertRolloverNotification()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + extGroups(other.getExtGroups()); + extNestedGroups(other.getExtNestedGroups()); + extProfile(other.getExtProfile()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + granted(other.getGranted()); + iconUrl(other.getIconUrl()); + identityApi(other.getIdentityApi()); + maxGroupsToRetrieve(other.getMaxGroupsToRetrieve()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + tenantDomain(other.getTenantDomain()); + tenantId(other.getTenantId()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + useWsfed(other.getUseWsfed()); + useCommonEndpoint(other.getUseCommonEndpoint()); + useridAttribute(other.getUseridAttribute()); + waadProtocol(other.getWaadProtocol()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage waadProtocol( + EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum waadProtocol) { + this.waadProtocol = Optional.ofNullable(waadProtocol); + return this; + } + + @java.lang.Override + @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) + public _FinalStage waadProtocol( + Optional waadProtocol) { + this.waadProtocol = waadProtocol; + return this; + } + + @java.lang.Override + public _FinalStage useridAttribute( + EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum useridAttribute) { + this.useridAttribute = Optional.ofNullable(useridAttribute); + return this; + } + + @java.lang.Override + @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) + public _FinalStage useridAttribute( + Optional useridAttribute) { + this.useridAttribute = useridAttribute; + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useCommonEndpoint(Boolean useCommonEndpoint) { + this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) + public _FinalStage useCommonEndpoint(Optional useCommonEndpoint) { + this.useCommonEndpoint = useCommonEndpoint; + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useWsfed(Boolean useWsfed) { + this.useWsfed = Optional.ofNullable(useWsfed); + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + @java.lang.Override + @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) + public _FinalStage useWsfed(Optional useWsfed) { + this.useWsfed = useWsfed; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantId(String tenantId) { + this.tenantId = Optional.ofNullable(tenantId); + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + @java.lang.Override + @JsonSetter(value = "tenantId", nulls = Nulls.SKIP) + public _FinalStage tenantId(Optional tenantId) { + this.tenantId = tenantId; + return this; + } + + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + @java.lang.Override + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + @java.lang.Override + @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) + public _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + return this; + } + + @java.lang.Override + public _FinalStage identityApi( + EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum identityApi) { + this.identityApi = Optional.ofNullable(identityApi); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) + public _FinalStage identityApi( + Optional identityApi) { + this.identityApi = identityApi; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage granted(Boolean granted) { + this.granted = Optional.ofNullable(granted); + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + @java.lang.Override + @JsonSetter(value = "granted", nulls = Nulls.SKIP) + public _FinalStage granted(Optional granted) { + this.granted = granted; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extProfile(Boolean extProfile) { + this.extProfile = Optional.ofNullable(extProfile); + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) + public _FinalStage extProfile(Optional extProfile) { + this.extProfile = extProfile; + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extNestedGroups(Boolean extNestedGroups) { + this.extNestedGroups = Optional.ofNullable(extNestedGroups); + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_nested_groups", nulls = Nulls.SKIP) + public _FinalStage extNestedGroups(Optional extNestedGroups) { + this.extNestedGroups = extNestedGroups; + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) + public _FinalStage basicProfile(Optional basicProfile) { + this.basicProfile = basicProfile; + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appId(String appId) { + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + @java.lang.Override + @JsonSetter(value = "app_id", nulls = Nulls.SKIP) + public _FinalStage appId(Optional appId) { + this.appId = appId; + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appDomain(String appDomain) { + this.appDomain = Optional.ofNullable(appDomain); + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + @java.lang.Override + @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) + public _FinalStage appDomain(Optional appDomain) { + this.appDomain = appDomain; + return this; + } + + /** + *

Enable users API

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enable users API

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7Options build() { + return new EventStreamCloudEventConnectionUpdatedObject7Options( + apiEnableUsers, + appDomain, + appId, + basicProfile, + certRolloverNotification, + clientId, + domain, + domainAliases, + extGroups, + extNestedGroups, + extProfile, + federatedConnectionsAccessTokens, + granted, + iconUrl, + identityApi, + maxGroupsToRetrieve, + nonPersistentAttrs, + scope, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + tenantDomain, + tenantId, + thumbprints, + upstreamParams, + useWsfed, + useCommonEndpoint, + useridAttribute, + waadProtocol, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 00000000..b8d56c16 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum.java new file mode 100644 index 00000000..5168b193 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = new EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AZURE_ACTIVE_DIRECTORY_V10: + return visitor.visitAzureActiveDirectoryV10(); + case MICROSOFT_IDENTITY_PLATFORM_V20: + return visitor.visitMicrosoftIdentityPlatformV20(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum valueOf(String value) { + switch (value) { + case "azure-active-directory-v1.0": + return AZURE_ACTIVE_DIRECTORY_V10; + case "microsoft-identity-platform-v2.0": + return MICROSOFT_IDENTITY_PLATFORM_V20; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + MICROSOFT_IDENTITY_PLATFORM_V20, + + AZURE_ACTIVE_DIRECTORY_V10, + + UNKNOWN + } + + public interface Visitor { + T visitMicrosoftIdentityPlatformV20(); + + T visitAzureActiveDirectoryV10(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 00000000..1e167601 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 00000000..f89402fe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum.java new file mode 100644 index 00000000..e3dd1d95 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SUB: + return visitor.visitSub(); + case OID: + return visitor.visitOid(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum valueOf(String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OID, + + SUB, + + UNKNOWN + } + + public interface Visitor { + T visitOid(); + + T visitSub(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum.java new file mode 100644 index 00000000..2431a506 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID_CONNECT: + return visitor.visitOpenidConnect(); + case WS_FEDERATION: + return visitor.visitWsFederation(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WS_FEDERATION, + + OPENID_CONNECT, + + UNKNOWN + } + + public interface Visitor { + T visitWsFederation(); + + T visitOpenidConnect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7StrategyEnum.java new file mode 100644 index 00000000..7df1a7b7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionUpdatedObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WAAD: + return visitor.visitWaad(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionUpdatedObject7StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedTypeEnum.java new file mode 100644 index 00000000..3fd9a030 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedTypeEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedTypeEnum CONNECTION_UPDATED = + new EventStreamCloudEventConnectionUpdatedTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedTypeEnum + && this.string.equals(((EventStreamCloudEventConnectionUpdatedTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedTypeEnum valueOf(String value) { + switch (value) { + case "connection.updated": + return CONNECTION_UPDATED; + default: + return new EventStreamCloudEventConnectionUpdatedTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_UPDATED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionUpdated(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java index 2074d415..2239a6f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupCreatedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupCreatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupCreatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupCreatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupCreatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupCreatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupCreatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupCreatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupCreatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupCreatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java index f82090ff..90619039 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java index c0489f42..b878d37f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupMemberAddedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupMemberAddedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupMemberAddedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupMemberAddedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupMemberAddedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupMemberAddedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupMemberAddedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java index 0df4b6ed..f7c38e92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupMemberDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupMemberDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupMemberDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupMemberDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupMemberDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupMemberDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java index 15157990..e9687e44 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupRoleAssignedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupRoleAssignedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupRoleAssignedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupRoleAssignedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupRoleAssignedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupRoleAssignedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java index 8d2d1068..be6c90d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupRoleDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupRoleDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupRoleDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupRoleDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupRoleDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupRoleDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java index 0b5944f4..1eb3f372 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java index 315e2d04..5e24cd6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgConnectionAddedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgConnectionAddedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgConnectionAddedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgConnectionAddedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgConnectionAddedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgConnectionAddedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgConnectionAddedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java index c0d77abe..6f2c74f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgConnectionRemovedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgConnectionRemovedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgConnectionRemovedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgConnectionRemovedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgConnectionRemovedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgConnectionRemovedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgConnectionRemovedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java index 65604425..b17f9e89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgConnectionUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgConnectionUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgConnectionUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgConnectionUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgConnectionUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgConnectionUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java index a593ff35..a55870f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgCreatedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgCreatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgCreatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgCreatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgCreatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgCreatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgCreatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgCreatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgCreatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgCreatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java index ff7384e5..fc39b3d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java index 0e19d0dc..28c6122b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgGroupRoleAssignedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgGroupRoleAssignedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgGroupRoleAssignedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgGroupRoleAssignedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgGroupRoleAssignedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java index f506c84e..45e2e4a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgGroupRoleDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgGroupRoleDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgGroupRoleDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgGroupRoleDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgGroupRoleDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java index 6de1e761..fbfeade8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberAddedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberAddedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberAddedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberAddedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberAddedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberAddedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberAddedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java index d9a7700f..2671db41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java index 35765efa..1d64e351 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberRoleAssignedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberRoleAssignedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberRoleAssignedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberRoleAssignedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberRoleAssignedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedCloudEvent other) return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java index 2d732016..fc762f77 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberRoleDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberRoleDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberRoleDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberRoleDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberRoleDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java index ec5ebb95..0e265994 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventSpecVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventSpecVersionEnum.java new file mode 100644 index 00000000..c0b6d418 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventSpecVersionEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventSpecVersionEnum { + public static final EventStreamCloudEventSpecVersionEnum ONE0 = + new EventStreamCloudEventSpecVersionEnum(Value.ONE0, "1.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventSpecVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventSpecVersionEnum + && this.string.equals(((EventStreamCloudEventSpecVersionEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ONE0: + return visitor.visitOne0(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventSpecVersionEnum valueOf(String value) { + switch (value) { + case "1.0": + return ONE0; + default: + return new EventStreamCloudEventSpecVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ONE0, + + UNKNOWN + } + + public interface Visitor { + T visitOne0(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java index 031beeb5..dfa87310 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventUserCreatedCloudEvent.Builder.class) public final class EventStreamCloudEventUserCreatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventUserCreatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventUserCreatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventUserCreatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventUserCreatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventUserCreatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventUserCreatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventUserCreatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventUserCreatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java index 97064936..d7832e6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventUserDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventUserDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventUserDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventUserDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventUserDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventUserDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventUserDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventUserDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventUserDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventUserDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java index 74d7dbe6..d7feb673 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventUserUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventUserUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventUserUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventUserUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventUserUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventUserUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventUserUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventUserUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventUserUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventUserUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java index 4ee09102..7bebe6e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamDeliveryEventTypeEnum { + public static final EventStreamDeliveryEventTypeEnum CONNECTION_DELETED = + new EventStreamDeliveryEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamDeliveryEventTypeEnum GROUP_DELETED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -17,15 +20,9 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_CONNECTION_ADDED = new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamDeliveryEventTypeEnum USER_DELETED = - new EventStreamDeliveryEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamDeliveryEventTypeEnum GROUP_ROLE_DELETED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_CREATED = - new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -38,9 +35,8 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamDeliveryEventTypeEnum( - Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamDeliveryEventTypeEnum CONNECTION_CREATED = + new EventStreamDeliveryEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamDeliveryEventTypeEnum GROUP_CREATED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -52,6 +48,26 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum USER_CREATED = new EventStreamDeliveryEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_DELETED = + new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamDeliveryEventTypeEnum( + Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamDeliveryEventTypeEnum USER_DELETED = + new EventStreamDeliveryEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_CREATED = + new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamDeliveryEventTypeEnum( + Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamDeliveryEventTypeEnum CONNECTION_UPDATED = + new EventStreamDeliveryEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamDeliveryEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -61,9 +77,6 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_DELETED = - new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); @@ -71,10 +84,6 @@ public final class EventStreamDeliveryEventTypeEnum { new EventStreamDeliveryEventTypeEnum( Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamDeliveryEventTypeEnum( - Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamDeliveryEventTypeEnum( Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -112,18 +121,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -132,28 +139,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -165,18 +180,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamDeliveryEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -185,28 +198,36 @@ public static EventStreamDeliveryEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -215,6 +236,12 @@ public static EventStreamDeliveryEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -263,6 +290,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java index 4e9b5203..87a0f855 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamEventTypeEnum { + public static final EventStreamEventTypeEnum CONNECTION_DELETED = + new EventStreamEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamEventTypeEnum GROUP_DELETED = new EventStreamEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -16,15 +19,9 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum ORGANIZATION_CONNECTION_ADDED = new EventStreamEventTypeEnum(Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamEventTypeEnum USER_DELETED = - new EventStreamEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamEventTypeEnum GROUP_ROLE_DELETED = new EventStreamEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamEventTypeEnum ORGANIZATION_CREATED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -37,8 +34,8 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamEventTypeEnum CONNECTION_CREATED = + new EventStreamEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamEventTypeEnum GROUP_CREATED = new EventStreamEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -49,6 +46,24 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum USER_CREATED = new EventStreamEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamEventTypeEnum ORGANIZATION_DELETED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamEventTypeEnum USER_DELETED = + new EventStreamEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamEventTypeEnum ORGANIZATION_CREATED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamEventTypeEnum CONNECTION_UPDATED = + new EventStreamEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -58,18 +73,12 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamEventTypeEnum ORGANIZATION_DELETED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); public static final EventStreamEventTypeEnum ORGANIZATION_GROUP_ROLE_DELETED = new EventStreamEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -106,18 +115,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -126,28 +133,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -159,18 +174,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -179,28 +192,36 @@ public static EventStreamEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -209,6 +230,12 @@ public static EventStreamEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -257,6 +284,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java index d2ce6b2c..66de59fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamSubscribeEventsEventTypeEnum { + public static final EventStreamSubscribeEventsEventTypeEnum CONNECTION_DELETED = + new EventStreamSubscribeEventsEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamSubscribeEventsEventTypeEnum GROUP_DELETED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -18,15 +21,9 @@ public final class EventStreamSubscribeEventsEventTypeEnum { new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamSubscribeEventsEventTypeEnum USER_DELETED = - new EventStreamSubscribeEventsEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum GROUP_ROLE_DELETED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_CREATED = - new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -40,9 +37,8 @@ public final class EventStreamSubscribeEventsEventTypeEnum { public static final EventStreamSubscribeEventsEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamSubscribeEventsEventTypeEnum( - Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamSubscribeEventsEventTypeEnum CONNECTION_CREATED = + new EventStreamSubscribeEventsEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamSubscribeEventsEventTypeEnum GROUP_CREATED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -54,6 +50,26 @@ public final class EventStreamSubscribeEventsEventTypeEnum { public static final EventStreamSubscribeEventsEventTypeEnum USER_CREATED = new EventStreamSubscribeEventsEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_DELETED = + new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamSubscribeEventsEventTypeEnum( + Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamSubscribeEventsEventTypeEnum USER_DELETED = + new EventStreamSubscribeEventsEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_CREATED = + new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamSubscribeEventsEventTypeEnum( + Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamSubscribeEventsEventTypeEnum CONNECTION_UPDATED = + new EventStreamSubscribeEventsEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamSubscribeEventsEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -63,9 +79,6 @@ public final class EventStreamSubscribeEventsEventTypeEnum { public static final EventStreamSubscribeEventsEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_DELETED = - new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); @@ -73,10 +86,6 @@ public final class EventStreamSubscribeEventsEventTypeEnum { new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamSubscribeEventsEventTypeEnum( - Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -114,18 +123,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -134,28 +141,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -167,18 +182,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamSubscribeEventsEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -187,28 +200,36 @@ public static EventStreamSubscribeEventsEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -217,6 +238,12 @@ public static EventStreamSubscribeEventsEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -265,6 +292,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java index f129c61e..97b728ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java @@ -26,6 +26,21 @@ public T visit(Visitor visitor) { return value.visit(visitor); } + public static EventStreamSubscribeEventsResponseContent connectionCreated( + EventStreamCloudEventConnectionCreated value) { + return new EventStreamSubscribeEventsResponseContent(new ConnectionCreatedValue(value)); + } + + public static EventStreamSubscribeEventsResponseContent connectionDeleted( + EventStreamCloudEventConnectionDeleted value) { + return new EventStreamSubscribeEventsResponseContent(new ConnectionDeletedValue(value)); + } + + public static EventStreamSubscribeEventsResponseContent connectionUpdated( + EventStreamCloudEventConnectionUpdated value) { + return new EventStreamSubscribeEventsResponseContent(new ConnectionUpdatedValue(value)); + } + public static EventStreamSubscribeEventsResponseContent groupCreated(EventStreamCloudEventGroupCreated value) { return new EventStreamSubscribeEventsResponseContent(new GroupCreatedValue(value)); } @@ -135,6 +150,18 @@ public static EventStreamSubscribeEventsResponseContent offsetOnly(EventStreamCl return new EventStreamSubscribeEventsResponseContent(new OffsetOnlyValue(value)); } + public boolean isConnectionCreated() { + return value instanceof ConnectionCreatedValue; + } + + public boolean isConnectionDeleted() { + return value instanceof ConnectionDeletedValue; + } + + public boolean isConnectionUpdated() { + return value instanceof ConnectionUpdatedValue; + } + public boolean isGroupCreated() { return value instanceof GroupCreatedValue; } @@ -235,6 +262,27 @@ public boolean _isUnknown() { return value instanceof _UnknownValue; } + public Optional getConnectionCreated() { + if (isConnectionCreated()) { + return Optional.of(((ConnectionCreatedValue) value).value); + } + return Optional.empty(); + } + + public Optional getConnectionDeleted() { + if (isConnectionDeleted()) { + return Optional.of(((ConnectionDeletedValue) value).value); + } + return Optional.empty(); + } + + public Optional getConnectionUpdated() { + if (isConnectionUpdated()) { + return Optional.of(((ConnectionUpdatedValue) value).value); + } + return Optional.empty(); + } + public Optional getGroupCreated() { if (isGroupCreated()) { return Optional.of(((GroupCreatedValue) value).value); @@ -433,6 +481,12 @@ private Value getValue() { } public interface Visitor { + T visitConnectionCreated(EventStreamCloudEventConnectionCreated connectionCreated); + + T visitConnectionDeleted(EventStreamCloudEventConnectionDeleted connectionDeleted); + + T visitConnectionUpdated(EventStreamCloudEventConnectionUpdated connectionUpdated); + T visitGroupCreated(EventStreamCloudEventGroupCreated groupCreated); T visitGroupDeleted(EventStreamCloudEventGroupDeleted groupDeleted); @@ -487,6 +541,9 @@ T visitOrganizationMemberRoleAssigned( @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true, defaultImpl = _UnknownValue.class) @JsonSubTypes({ + @JsonSubTypes.Type(ConnectionCreatedValue.class), + @JsonSubTypes.Type(ConnectionDeletedValue.class), + @JsonSubTypes.Type(ConnectionUpdatedValue.class), @JsonSubTypes.Type(GroupCreatedValue.class), @JsonSubTypes.Type(GroupDeletedValue.class), @JsonSubTypes.Type(GroupMemberAddedValue.class), @@ -517,6 +574,126 @@ private interface Value { T visit(Visitor visitor); } + @JsonTypeName("connection.created") + @JsonIgnoreProperties("type") + private static final class ConnectionCreatedValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "type", allowSetters = true) + private EventStreamCloudEventConnectionCreated value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private ConnectionCreatedValue() {} + + private ConnectionCreatedValue(EventStreamCloudEventConnectionCreated value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitConnectionCreated(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionCreatedValue && equalTo((ConnectionCreatedValue) other); + } + + private boolean equalTo(ConnectionCreatedValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "EventStreamSubscribeEventsResponseContent{" + "value: " + value + "}"; + } + } + + @JsonTypeName("connection.deleted") + @JsonIgnoreProperties("type") + private static final class ConnectionDeletedValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "type", allowSetters = true) + private EventStreamCloudEventConnectionDeleted value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private ConnectionDeletedValue() {} + + private ConnectionDeletedValue(EventStreamCloudEventConnectionDeleted value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitConnectionDeleted(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionDeletedValue && equalTo((ConnectionDeletedValue) other); + } + + private boolean equalTo(ConnectionDeletedValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "EventStreamSubscribeEventsResponseContent{" + "value: " + value + "}"; + } + } + + @JsonTypeName("connection.updated") + @JsonIgnoreProperties("type") + private static final class ConnectionUpdatedValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "type", allowSetters = true) + private EventStreamCloudEventConnectionUpdated value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private ConnectionUpdatedValue() {} + + private ConnectionUpdatedValue(EventStreamCloudEventConnectionUpdated value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitConnectionUpdated(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionUpdatedValue && equalTo((ConnectionUpdatedValue) other); + } + + private boolean equalTo(ConnectionUpdatedValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "EventStreamSubscribeEventsResponseContent{" + "value: " + value + "}"; + } + } + @JsonTypeName("group.created") @JsonIgnoreProperties("type") private static final class GroupCreatedValue implements Value { diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java index 78998f84..f7edcf7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamTestEventTypeEnum { + public static final EventStreamTestEventTypeEnum CONNECTION_DELETED = + new EventStreamTestEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamTestEventTypeEnum GROUP_DELETED = new EventStreamTestEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -16,15 +19,9 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum ORGANIZATION_CONNECTION_ADDED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamTestEventTypeEnum USER_DELETED = - new EventStreamTestEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamTestEventTypeEnum GROUP_ROLE_DELETED = new EventStreamTestEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_CREATED = - new EventStreamTestEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -37,9 +34,8 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamTestEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamTestEventTypeEnum( - Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamTestEventTypeEnum CONNECTION_CREATED = + new EventStreamTestEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamTestEventTypeEnum GROUP_CREATED = new EventStreamTestEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -50,6 +46,26 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum USER_CREATED = new EventStreamTestEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamTestEventTypeEnum ORGANIZATION_DELETED = + new EventStreamTestEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamTestEventTypeEnum( + Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamTestEventTypeEnum USER_DELETED = + new EventStreamTestEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamTestEventTypeEnum ORGANIZATION_CREATED = + new EventStreamTestEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamTestEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamTestEventTypeEnum( + Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamTestEventTypeEnum CONNECTION_UPDATED = + new EventStreamTestEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamTestEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamTestEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -59,19 +75,12 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamTestEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_DELETED = - new EventStreamTestEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); public static final EventStreamTestEventTypeEnum ORGANIZATION_GROUP_ROLE_DELETED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamTestEventTypeEnum( - Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamTestEventTypeEnum( Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -109,18 +118,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -129,28 +136,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -162,18 +177,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamTestEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -182,28 +195,36 @@ public static EventStreamTestEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -212,6 +233,12 @@ public static EventStreamTestEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -260,6 +287,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java index 830fddfa..4cdc3960 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java @@ -33,6 +33,8 @@ public final class GetOrganizationByNameResponseContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private GetOrganizationByNameResponseContent( @@ -42,6 +44,7 @@ private GetOrganizationByNameResponseContent( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private GetOrganizationByNameResponseContent( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -109,12 +118,20 @@ private boolean equalTo(GetOrganizationByNameResponseContent other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -140,6 +157,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -152,6 +171,7 @@ public Builder from(GetOrganizationByNameResponseContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -230,9 +250,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public GetOrganizationByNameResponseContent build() { return new GetOrganizationByNameResponseContent( - id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java index ef3e0106..61d72f70 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java @@ -33,6 +33,8 @@ public final class GetOrganizationResponseContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private GetOrganizationResponseContent( @@ -42,6 +44,7 @@ private GetOrganizationResponseContent( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private GetOrganizationResponseContent( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -108,12 +117,20 @@ private boolean equalTo(GetOrganizationResponseContent other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -139,6 +156,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -151,6 +170,7 @@ public Builder from(GetOrganizationResponseContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -229,9 +249,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public GetOrganizationResponseContent build() { return new GetOrganizationResponseContent( - id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleMembersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleMembersResponseContent.java new file mode 100644 index 00000000..6ae09718 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleMembersResponseContent.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListOrganizationRoleMembersResponseContent.Builder.class) +public final class ListOrganizationRoleMembersResponseContent { + private final List members; + + private final Optional next; + + private final Map additionalProperties; + + private ListOrganizationRoleMembersResponseContent( + List members, Optional next, Map additionalProperties) { + this.members = members; + this.next = next; + this.additionalProperties = additionalProperties; + } + + /** + * @return List of members assigned to the role within the organization. + */ + @JsonProperty("members") + public List getMembers() { + return members; + } + + /** + * @return Cursor for the next page of results. Absent when there are no more results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListOrganizationRoleMembersResponseContent + && equalTo((ListOrganizationRoleMembersResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListOrganizationRoleMembersResponseContent other) { + return members.equals(other.members) && next.equals(other.next); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.members, this.next); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private List members = new ArrayList<>(); + + private Optional next = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListOrganizationRoleMembersResponseContent other) { + members(other.getMembers()); + next(other.getNext()); + return this; + } + + /** + *

List of members assigned to the role within the organization.

+ */ + @JsonSetter(value = "members", nulls = Nulls.SKIP) + public Builder members(List members) { + this.members.clear(); + if (members != null) { + this.members.addAll(members); + } + return this; + } + + public Builder addMembers(RoleMember members) { + this.members.add(members); + return this; + } + + public Builder addAllMembers(List members) { + if (members != null) { + this.members.addAll(members); + } + return this; + } + + /** + *

Cursor for the next page of results. Absent when there are no more results.

+ */ + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + + public ListOrganizationRoleMembersResponseContent build() { + return new ListOrganizationRoleMembersResponseContent(members, next, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java index 17f27c3d..956ffe08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java @@ -21,20 +21,20 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListRolesOffsetPaginatedResponseContent.Builder.class) public final class ListRolesOffsetPaginatedResponseContent { - private final Optional start; + private final double start; - private final Optional limit; + private final double limit; - private final Optional total; + private final double total; private final Optional> roles; private final Map additionalProperties; private ListRolesOffsetPaginatedResponseContent( - Optional start, - Optional limit, - Optional total, + double start, + double limit, + double total, Optional> roles, Map additionalProperties) { this.start = start; @@ -45,17 +45,17 @@ private ListRolesOffsetPaginatedResponseContent( } @JsonProperty("start") - public Optional getStart() { + public double getStart() { return start; } @JsonProperty("limit") - public Optional getLimit() { + public double getLimit() { return limit; } @JsonProperty("total") - public Optional getTotal() { + public double getTotal() { return total; } @@ -77,10 +77,7 @@ public Map getAdditionalProperties() { } private boolean equalTo(ListRolesOffsetPaginatedResponseContent other) { - return start.equals(other.start) - && limit.equals(other.limit) - && total.equals(other.total) - && roles.equals(other.roles); + return start == other.start && limit == other.limit && total == other.total && roles.equals(other.roles); } @java.lang.Override @@ -93,17 +90,43 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static StartStage builder() { return new Builder(); } + public interface StartStage { + LimitStage start(double start); + + Builder from(ListRolesOffsetPaginatedResponseContent other); + } + + public interface LimitStage { + TotalStage limit(double limit); + } + + public interface TotalStage { + _FinalStage total(double total); + } + + public interface _FinalStage { + ListRolesOffsetPaginatedResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage roles(Optional> roles); + + _FinalStage roles(List roles); + } + @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional start = Optional.empty(); + public static final class Builder implements StartStage, LimitStage, TotalStage, _FinalStage { + private double start; - private Optional limit = Optional.empty(); + private double limit; - private Optional total = Optional.empty(); + private double total; private Optional> roles = Optional.empty(); @@ -112,6 +135,7 @@ public static final class Builder { private Builder() {} + @java.lang.Override public Builder from(ListRolesOffsetPaginatedResponseContent other) { start(other.getStart()); limit(other.getLimit()); @@ -120,59 +144,52 @@ public Builder from(ListRolesOffsetPaginatedResponseContent other) { return this; } - @JsonSetter(value = "start", nulls = Nulls.SKIP) - public Builder start(Optional start) { + @java.lang.Override + @JsonSetter("start") + public LimitStage start(double start) { this.start = start; return this; } - public Builder start(Double start) { - this.start = Optional.ofNullable(start); - return this; - } - - @JsonSetter(value = "limit", nulls = Nulls.SKIP) - public Builder limit(Optional limit) { + @java.lang.Override + @JsonSetter("limit") + public TotalStage limit(double limit) { this.limit = limit; return this; } - public Builder limit(Double limit) { - this.limit = Optional.ofNullable(limit); - return this; - } - - @JsonSetter(value = "total", nulls = Nulls.SKIP) - public Builder total(Optional total) { + @java.lang.Override + @JsonSetter("total") + public _FinalStage total(double total) { this.total = total; return this; } - public Builder total(Double total) { - this.total = Optional.ofNullable(total); + @java.lang.Override + public _FinalStage roles(List roles) { + this.roles = Optional.ofNullable(roles); return this; } + @java.lang.Override @JsonSetter(value = "roles", nulls = Nulls.SKIP) - public Builder roles(Optional> roles) { + public _FinalStage roles(Optional> roles) { this.roles = roles; return this; } - public Builder roles(List roles) { - this.roles = Optional.ofNullable(roles); - return this; - } - + @java.lang.Override public ListRolesOffsetPaginatedResponseContent build() { return new ListRolesOffsetPaginatedResponseContent(start, limit, total, roles, additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBody.java b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBody.java new file mode 100644 index 00000000..22f929a9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBody.java @@ -0,0 +1,163 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = NotFoundErrorBody.Builder.class) +public final class NotFoundErrorBody { + private final String message; + + private final String statusCode; + + private final NotFoundErrorBodyError error; + + private final Map additionalProperties; + + private NotFoundErrorBody( + String message, String statusCode, NotFoundErrorBodyError error, Map additionalProperties) { + this.message = message; + this.statusCode = statusCode; + this.error = error; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("message") + public String getMessage() { + return message; + } + + @JsonProperty("statusCode") + public String getStatusCode() { + return statusCode; + } + + @JsonProperty("error") + public NotFoundErrorBodyError getError() { + return error; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof NotFoundErrorBody && equalTo((NotFoundErrorBody) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(NotFoundErrorBody other) { + return message.equals(other.message) && statusCode.equals(other.statusCode) && error.equals(other.error); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.message, this.statusCode, this.error); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MessageStage builder() { + return new Builder(); + } + + public interface MessageStage { + StatusCodeStage message(@NotNull String message); + + Builder from(NotFoundErrorBody other); + } + + public interface StatusCodeStage { + ErrorStage statusCode(@NotNull String statusCode); + } + + public interface ErrorStage { + _FinalStage error(@NotNull NotFoundErrorBodyError error); + } + + public interface _FinalStage { + NotFoundErrorBody build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MessageStage, StatusCodeStage, ErrorStage, _FinalStage { + private String message; + + private String statusCode; + + private NotFoundErrorBodyError error; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(NotFoundErrorBody other) { + message(other.getMessage()); + statusCode(other.getStatusCode()); + error(other.getError()); + return this; + } + + @java.lang.Override + @JsonSetter("message") + public StatusCodeStage message(@NotNull String message) { + this.message = Objects.requireNonNull(message, "message must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("statusCode") + public ErrorStage statusCode(@NotNull String statusCode) { + this.statusCode = Objects.requireNonNull(statusCode, "statusCode must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("error") + public _FinalStage error(@NotNull NotFoundErrorBodyError error) { + this.error = Objects.requireNonNull(error, "error must not be null"); + return this; + } + + @java.lang.Override + public NotFoundErrorBody build() { + return new NotFoundErrorBody(message, statusCode, error, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBodyError.java b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBodyError.java new file mode 100644 index 00000000..b4929ff5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBodyError.java @@ -0,0 +1,74 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class NotFoundErrorBodyError { + public static final NotFoundErrorBodyError NOT_FOUND = new NotFoundErrorBodyError(Value.NOT_FOUND, "Not Found"); + + private final Value value; + + private final String string; + + NotFoundErrorBodyError(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof NotFoundErrorBodyError + && this.string.equals(((NotFoundErrorBodyError) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NOT_FOUND: + return visitor.visitNotFound(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static NotFoundErrorBodyError valueOf(String value) { + switch (value) { + case "Not Found": + return NOT_FOUND; + default: + return new NotFoundErrorBodyError(Value.UNKNOWN, value); + } + } + + public enum Value { + NOT_FOUND, + + UNKNOWN + } + + public interface Visitor { + T visitNotFound(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/Organization.java b/src/main/java/com/auth0/client/mgmt/types/Organization.java index d72df1ae..1b8dafcb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Organization.java +++ b/src/main/java/com/auth0/client/mgmt/types/Organization.java @@ -33,6 +33,8 @@ public final class Organization { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private Organization( @@ -42,6 +44,7 @@ private Organization( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private Organization( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -108,12 +117,20 @@ private boolean equalTo(Organization other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -139,6 +156,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -151,6 +170,7 @@ public Builder from(Organization other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -229,8 +249,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public Organization build() { - return new Organization(id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + return new Organization( + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationThirdPartyClientAccessEnum.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationThirdPartyClientAccessEnum.java new file mode 100644 index 00000000..93140a9e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationThirdPartyClientAccessEnum.java @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class OrganizationThirdPartyClientAccessEnum { + public static final OrganizationThirdPartyClientAccessEnum BLOCK = + new OrganizationThirdPartyClientAccessEnum(Value.BLOCK, "block"); + + public static final OrganizationThirdPartyClientAccessEnum ALLOW = + new OrganizationThirdPartyClientAccessEnum(Value.ALLOW, "allow"); + + private final Value value; + + private final String string; + + OrganizationThirdPartyClientAccessEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof OrganizationThirdPartyClientAccessEnum + && this.string.equals(((OrganizationThirdPartyClientAccessEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BLOCK: + return visitor.visitBlock(); + case ALLOW: + return visitor.visitAllow(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static OrganizationThirdPartyClientAccessEnum valueOf(String value) { + switch (value) { + case "block": + return BLOCK; + case "allow": + return ALLOW; + default: + return new OrganizationThirdPartyClientAccessEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BLOCK, + + ALLOW, + + UNKNOWN + } + + public interface Visitor { + T visitBlock(); + + T visitAllow(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java b/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java index acf3de7a..e3ef5e1b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java @@ -29,6 +29,8 @@ public final class PartialGroupsEnum { public static final PartialGroupsEnum PASSKEYS = new PartialGroupsEnum(Value.PASSKEYS, "passkeys"); + public static final PartialGroupsEnum CONFIRMATION = new PartialGroupsEnum(Value.CONFIRMATION, "confirmation"); + private final Value value; private final String string; @@ -79,6 +81,8 @@ public T visit(Visitor visitor) { return visitor.visitLoginPasswordless(); case PASSKEYS: return visitor.visitPasskeys(); + case CONFIRMATION: + return visitor.visitConfirmation(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -106,6 +110,8 @@ public static PartialGroupsEnum valueOf(String value) { return LOGIN_PASSWORDLESS; case "passkeys": return PASSKEYS; + case "confirmation": + return CONFIRMATION; default: return new PartialGroupsEnum(Value.UNKNOWN, value); } @@ -130,6 +136,8 @@ public enum Value { PASSKEYS, + CONFIRMATION, + UNKNOWN } @@ -152,6 +160,8 @@ public interface Visitor { T visitPasskeys(); + T visitConfirmation(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java index 080c3e3e..673766e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java @@ -20,7 +20,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PhoneAttribute.Builder.class) public final class PhoneAttribute { - private final Optional identifier; + private final Optional identifier; private final Optional profileRequired; @@ -29,7 +29,7 @@ public final class PhoneAttribute { private final Map additionalProperties; private PhoneAttribute( - Optional identifier, + Optional identifier, Optional profileRequired, Optional signup, Map additionalProperties) { @@ -40,7 +40,7 @@ private PhoneAttribute( } @JsonProperty("identifier") - public Optional getIdentifier() { + public Optional getIdentifier() { return identifier; } @@ -90,7 +90,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); private Optional profileRequired = Optional.empty(); @@ -109,12 +109,12 @@ public Builder from(PhoneAttribute other) { } @JsonSetter(value = "identifier", nulls = Nulls.SKIP) - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { this.identifier = identifier; return this; } - public Builder identifier(ConnectionAttributeIdentifier identifier) { + public Builder identifier(PhoneAttributeIdentifier identifier) { this.identifier = Optional.ofNullable(identifier); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneAttributeIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/PhoneAttributeIdentifier.java new file mode 100644 index 00000000..2fa14c77 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneAttributeIdentifier.java @@ -0,0 +1,136 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PhoneAttributeIdentifier.Builder.class) +public final class PhoneAttributeIdentifier { + private final Optional active; + + private final Optional defaultMethod; + + private final Map additionalProperties; + + private PhoneAttributeIdentifier( + Optional active, + Optional defaultMethod, + Map additionalProperties) { + this.active = active; + this.defaultMethod = defaultMethod; + this.additionalProperties = additionalProperties; + } + + /** + * @return Determines if the attribute is used for identification + */ + @JsonProperty("active") + public Optional getActive() { + return active; + } + + @JsonProperty("default_method") + public Optional getDefaultMethod() { + return defaultMethod; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PhoneAttributeIdentifier && equalTo((PhoneAttributeIdentifier) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PhoneAttributeIdentifier other) { + return active.equals(other.active) && defaultMethod.equals(other.defaultMethod); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.defaultMethod); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional active = Optional.empty(); + + private Optional defaultMethod = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(PhoneAttributeIdentifier other) { + active(other.getActive()); + defaultMethod(other.getDefaultMethod()); + return this; + } + + /** + *

Determines if the attribute is used for identification

+ */ + @JsonSetter(value = "active", nulls = Nulls.SKIP) + public Builder active(Optional active) { + this.active = active; + return this; + } + + public Builder active(Boolean active) { + this.active = Optional.ofNullable(active); + return this; + } + + @JsonSetter(value = "default_method", nulls = Nulls.SKIP) + public Builder defaultMethod(Optional defaultMethod) { + this.defaultMethod = defaultMethod; + return this; + } + + public Builder defaultMethod(DefaultMethodPhoneNumberIdentifierEnum defaultMethod) { + this.defaultMethod = Optional.ofNullable(defaultMethod); + return this; + } + + public PhoneAttributeIdentifier build() { + return new PhoneAttributeIdentifier(active, defaultMethod, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java index 201e9ada..39daeb27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java @@ -7,12 +7,12 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class PhoneProviderProtectionBackoffStrategyEnum { + public static final PhoneProviderProtectionBackoffStrategyEnum DEFAULT = + new PhoneProviderProtectionBackoffStrategyEnum(Value.DEFAULT, "default"); + public static final PhoneProviderProtectionBackoffStrategyEnum EXPONENTIAL = new PhoneProviderProtectionBackoffStrategyEnum(Value.EXPONENTIAL, "exponential"); - public static final PhoneProviderProtectionBackoffStrategyEnum NONE = - new PhoneProviderProtectionBackoffStrategyEnum(Value.NONE, "none"); - private final Value value; private final String string; @@ -46,10 +46,10 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case DEFAULT: + return visitor.visitDefault(); case EXPONENTIAL: return visitor.visitExponential(); - case NONE: - return visitor.visitNone(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -59,10 +59,10 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static PhoneProviderProtectionBackoffStrategyEnum valueOf(String value) { switch (value) { + case "default": + return DEFAULT; case "exponential": return EXPONENTIAL; - case "none": - return NONE; default: return new PhoneProviderProtectionBackoffStrategyEnum(Value.UNKNOWN, value); } @@ -71,7 +71,7 @@ public static PhoneProviderProtectionBackoffStrategyEnum valueOf(String value) { public enum Value { EXPONENTIAL, - NONE, + DEFAULT, UNKNOWN } @@ -79,7 +79,7 @@ public enum Value { public interface Visitor { T visitExponential(); - T visitNone(); + T visitDefault(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/RoleMember.java b/src/main/java/com/auth0/client/mgmt/types/RoleMember.java new file mode 100644 index 00000000..ce3aa2c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/RoleMember.java @@ -0,0 +1,203 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = RoleMember.Builder.class) +public final class RoleMember { + private final Optional userId; + + private final Optional picture; + + private final Optional name; + + private final Optional email; + + private final Map additionalProperties; + + private RoleMember( + Optional userId, + Optional picture, + Optional name, + Optional email, + Map additionalProperties) { + this.userId = userId; + this.picture = picture; + this.name = name; + this.email = email; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of this user. + */ + @JsonProperty("user_id") + public Optional getUserId() { + return userId; + } + + /** + * @return URL to a picture for this user. + */ + @JsonProperty("picture") + public Optional getPicture() { + return picture; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof RoleMember && equalTo((RoleMember) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(RoleMember other) { + return userId.equals(other.userId) + && picture.equals(other.picture) + && name.equals(other.name) + && email.equals(other.email); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.userId, this.picture, this.name, this.email); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional userId = Optional.empty(); + + private Optional picture = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional email = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(RoleMember other) { + userId(other.getUserId()); + picture(other.getPicture()); + name(other.getName()); + email(other.getEmail()); + return this; + } + + /** + *

ID of this user.

+ */ + @JsonSetter(value = "user_id", nulls = Nulls.SKIP) + public Builder userId(Optional userId) { + this.userId = userId; + return this; + } + + public Builder userId(String userId) { + this.userId = Optional.ofNullable(userId); + return this; + } + + /** + *

URL to a picture for this user.

+ */ + @JsonSetter(value = "picture", nulls = Nulls.SKIP) + public Builder picture(Optional picture) { + this.picture = picture; + return this; + } + + public Builder picture(String picture) { + this.picture = Optional.ofNullable(picture); + return this; + } + + /** + *

Name of this user.

+ */ + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public Builder name(Optional name) { + this.name = name; + return this; + } + + public Builder name(String name) { + this.name = Optional.ofNullable(name); + return this; + } + + /** + *

Email address of this user.

+ */ + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public Builder email(Optional email) { + this.email = email; + return this; + } + + public Builder email(String email) { + this.email = Optional.ofNullable(email); + return this; + } + + public RoleMember build() { + return new RoleMember(userId, picture, name, email, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenVaultPrivilegedAccessGrant.java b/src/main/java/com/auth0/client/mgmt/types/TokenVaultPrivilegedAccessGrant.java new file mode 100644 index 00000000..97a2c8a3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/TokenVaultPrivilegedAccessGrant.java @@ -0,0 +1,163 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = TokenVaultPrivilegedAccessGrant.Builder.class) +public final class TokenVaultPrivilegedAccessGrant { + private final String connection; + + private final List scopes; + + private final Map additionalProperties; + + private TokenVaultPrivilegedAccessGrant( + String connection, List scopes, Map additionalProperties) { + this.connection = connection; + this.scopes = scopes; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("scopes") + public List getScopes() { + return scopes; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TokenVaultPrivilegedAccessGrant && equalTo((TokenVaultPrivilegedAccessGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(TokenVaultPrivilegedAccessGrant other) { + return connection.equals(other.connection) && scopes.equals(other.scopes); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.scopes); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + _FinalStage connection(@NotNull String connection); + + Builder from(TokenVaultPrivilegedAccessGrant other); + } + + public interface _FinalStage { + TokenVaultPrivilegedAccessGrant build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage scopes(List scopes); + + _FinalStage addScopes(String scopes); + + _FinalStage addAllScopes(List scopes); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ConnectionStage, _FinalStage { + private String connection; + + private List scopes = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(TokenVaultPrivilegedAccessGrant other) { + connection(other.getConnection()); + scopes(other.getScopes()); + return this; + } + + @java.lang.Override + @JsonSetter("connection") + public _FinalStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage addAllScopes(List scopes) { + if (scopes != null) { + this.scopes.addAll(scopes); + } + return this; + } + + @java.lang.Override + public _FinalStage addScopes(String scopes) { + this.scopes.add(scopes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "scopes", nulls = Nulls.SKIP) + public _FinalStage scopes(List scopes) { + this.scopes.clear(); + if (scopes != null) { + this.scopes.addAll(scopes); + } + return this; + } + + @java.lang.Override + public TokenVaultPrivilegedAccessGrant build() { + return new TokenVaultPrivilegedAccessGrant(connection, scopes, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBody.java b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBody.java new file mode 100644 index 00000000..cbe79de4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBody.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = TooManyRequestsErrorBody.Builder.class) +public final class TooManyRequestsErrorBody { + private final String message; + + private final String statusCode; + + private final TooManyRequestsErrorBodyError error; + + private final Map additionalProperties; + + private TooManyRequestsErrorBody( + String message, + String statusCode, + TooManyRequestsErrorBodyError error, + Map additionalProperties) { + this.message = message; + this.statusCode = statusCode; + this.error = error; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("message") + public String getMessage() { + return message; + } + + @JsonProperty("statusCode") + public String getStatusCode() { + return statusCode; + } + + @JsonProperty("error") + public TooManyRequestsErrorBodyError getError() { + return error; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TooManyRequestsErrorBody && equalTo((TooManyRequestsErrorBody) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(TooManyRequestsErrorBody other) { + return message.equals(other.message) && statusCode.equals(other.statusCode) && error.equals(other.error); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.message, this.statusCode, this.error); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MessageStage builder() { + return new Builder(); + } + + public interface MessageStage { + StatusCodeStage message(@NotNull String message); + + Builder from(TooManyRequestsErrorBody other); + } + + public interface StatusCodeStage { + ErrorStage statusCode(@NotNull String statusCode); + } + + public interface ErrorStage { + _FinalStage error(@NotNull TooManyRequestsErrorBodyError error); + } + + public interface _FinalStage { + TooManyRequestsErrorBody build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MessageStage, StatusCodeStage, ErrorStage, _FinalStage { + private String message; + + private String statusCode; + + private TooManyRequestsErrorBodyError error; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(TooManyRequestsErrorBody other) { + message(other.getMessage()); + statusCode(other.getStatusCode()); + error(other.getError()); + return this; + } + + @java.lang.Override + @JsonSetter("message") + public StatusCodeStage message(@NotNull String message) { + this.message = Objects.requireNonNull(message, "message must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("statusCode") + public ErrorStage statusCode(@NotNull String statusCode) { + this.statusCode = Objects.requireNonNull(statusCode, "statusCode must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("error") + public _FinalStage error(@NotNull TooManyRequestsErrorBodyError error) { + this.error = Objects.requireNonNull(error, "error must not be null"); + return this; + } + + @java.lang.Override + public TooManyRequestsErrorBody build() { + return new TooManyRequestsErrorBody(message, statusCode, error, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBodyError.java b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBodyError.java new file mode 100644 index 00000000..45fd6527 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBodyError.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class TooManyRequestsErrorBodyError { + public static final TooManyRequestsErrorBodyError TOO_MANY_REQUESTS = + new TooManyRequestsErrorBodyError(Value.TOO_MANY_REQUESTS, "Too Many Requests"); + + private final Value value; + + private final String string; + + TooManyRequestsErrorBodyError(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof TooManyRequestsErrorBodyError + && this.string.equals(((TooManyRequestsErrorBodyError) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TOO_MANY_REQUESTS: + return visitor.visitTooManyRequests(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static TooManyRequestsErrorBodyError valueOf(String value) { + switch (value) { + case "Too Many Requests": + return TOO_MANY_REQUESTS; + default: + return new TooManyRequestsErrorBodyError(Value.UNKNOWN, value); + } + } + + public enum Value { + TOO_MANY_REQUESTS, + + UNKNOWN + } + + public interface Visitor { + T visitTooManyRequests(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java index e2c953d0..4032c879 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -101,6 +101,10 @@ public final class UpdateConnectionOptions { private final Optional idTokenSessionExpirySupported; + private final OptionalNullable discoveryUrl; + + private final OptionalNullable oidcMetadata; + private final Map additionalProperties; private UpdateConnectionOptions( @@ -142,6 +146,8 @@ private UpdateConnectionOptions( OptionalNullable tokenEndpointAuthSigningAlg, Optional tokenEndpointJwtcaAudFormat, Optional idTokenSessionExpirySupported, + OptionalNullable discoveryUrl, + OptionalNullable oidcMetadata, Map additionalProperties) { this.validation = validation; this.nonPersistentAttrs = nonPersistentAttrs; @@ -181,6 +187,8 @@ private UpdateConnectionOptions( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.discoveryUrl = discoveryUrl; + this.oidcMetadata = oidcMetadata; this.additionalProperties = additionalProperties; } @@ -456,6 +464,24 @@ public Optional getIdTokenSessionExpirySupported() { return idTokenSessionExpirySupported; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("discovery_url") + public OptionalNullable getDiscoveryUrl() { + if (discoveryUrl == null) { + return OptionalNullable.absent(); + } + return discoveryUrl; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("oidc_metadata") + public OptionalNullable getOidcMetadata() { + if (oidcMetadata == null) { + return OptionalNullable.absent(); + } + return oidcMetadata; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("validation") private OptionalNullable _getValidation() { @@ -553,6 +579,18 @@ private OptionalNullable _getTokenEnd return tokenEndpointAuthSigningAlg; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("discovery_url") + private OptionalNullable _getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("oidc_metadata") + private OptionalNullable _getOidcMetadata() { + return oidcMetadata; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -602,7 +640,9 @@ private boolean equalTo(UpdateConnectionOptions other) { && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) - && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported); + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && discoveryUrl.equals(other.discoveryUrl) + && oidcMetadata.equals(other.oidcMetadata); } @java.lang.Override @@ -645,7 +685,9 @@ public int hashCode() { this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, - this.idTokenSessionExpirySupported); + this.idTokenSessionExpirySupported, + this.discoveryUrl, + this.oidcMetadata); } @java.lang.Override @@ -742,6 +784,10 @@ public static final class Builder { private Optional idTokenSessionExpirySupported = Optional.empty(); + private OptionalNullable discoveryUrl = OptionalNullable.absent(); + + private OptionalNullable oidcMetadata = OptionalNullable.absent(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -786,6 +832,8 @@ public Builder from(UpdateConnectionOptions other) { tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + discoveryUrl(other.getDiscoveryUrl()); + oidcMetadata(other.getOidcMetadata()); return this; } @@ -1590,6 +1638,68 @@ public Builder idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupport return this; } + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(@Nullable OptionalNullable discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = OptionalNullable.of(discoveryUrl); + return this; + } + + public Builder discoveryUrl(Optional discoveryUrl) { + if (discoveryUrl.isPresent()) { + this.discoveryUrl = OptionalNullable.of(discoveryUrl.get()); + } else { + this.discoveryUrl = OptionalNullable.absent(); + } + return this; + } + + public Builder discoveryUrl(com.auth0.client.mgmt.core.Nullable discoveryUrl) { + if (discoveryUrl.isNull()) { + this.discoveryUrl = OptionalNullable.ofNull(); + } else if (discoveryUrl.isEmpty()) { + this.discoveryUrl = OptionalNullable.absent(); + } else { + this.discoveryUrl = OptionalNullable.of(discoveryUrl.get()); + } + return this; + } + + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata(@Nullable OptionalNullable oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata(ConnectionsOidcMetadata oidcMetadata) { + this.oidcMetadata = OptionalNullable.of(oidcMetadata); + return this; + } + + public Builder oidcMetadata(Optional oidcMetadata) { + if (oidcMetadata.isPresent()) { + this.oidcMetadata = OptionalNullable.of(oidcMetadata.get()); + } else { + this.oidcMetadata = OptionalNullable.absent(); + } + return this; + } + + public Builder oidcMetadata(com.auth0.client.mgmt.core.Nullable oidcMetadata) { + if (oidcMetadata.isNull()) { + this.oidcMetadata = OptionalNullable.ofNull(); + } else if (oidcMetadata.isEmpty()) { + this.oidcMetadata = OptionalNullable.absent(); + } else { + this.oidcMetadata = OptionalNullable.of(oidcMetadata.get()); + } + return this; + } + public UpdateConnectionOptions build() { return new UpdateConnectionOptions( validation, @@ -1630,6 +1740,8 @@ public UpdateConnectionOptions build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, idTokenSessionExpirySupported, + discoveryUrl, + oidcMetadata, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java index 64d4b0d4..e7395296 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java @@ -33,6 +33,8 @@ public final class UpdateOrganizationRequestContent { private final OptionalNullable tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private UpdateOrganizationRequestContent( @@ -41,12 +43,14 @@ private UpdateOrganizationRequestContent( Optional branding, Optional>> metadata, OptionalNullable tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.displayName = displayName; this.name = name; this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -85,6 +89,11 @@ public OptionalNullable getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("token_quota") private OptionalNullable _getTokenQuota() { @@ -107,12 +116,19 @@ private boolean equalTo(UpdateOrganizationRequestContent other) { && name.equals(other.name) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.displayName, this.name, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.displayName, + this.name, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -136,6 +152,8 @@ public static final class Builder { private OptionalNullable tokenQuota = OptionalNullable.absent(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -147,6 +165,7 @@ public Builder from(UpdateOrganizationRequestContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -231,9 +250,20 @@ public Builder tokenQuota(com.auth0.client.mgmt.core.Nullable return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public UpdateOrganizationRequestContent build() { return new UpdateOrganizationRequestContent( - displayName, name, branding, metadata, tokenQuota, additionalProperties); + displayName, name, branding, metadata, tokenQuota, thirdPartyClientAccess, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java index 79f93b23..6c8c41eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java @@ -33,6 +33,8 @@ public final class UpdateOrganizationResponseContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private UpdateOrganizationResponseContent( @@ -42,6 +44,7 @@ private UpdateOrganizationResponseContent( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private UpdateOrganizationResponseContent( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -108,12 +117,20 @@ private boolean equalTo(UpdateOrganizationResponseContent other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -139,6 +156,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -151,6 +170,7 @@ public Builder from(UpdateOrganizationResponseContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -229,9 +249,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public UpdateOrganizationResponseContent build() { return new UpdateOrganizationResponseContent( - id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java index 28306e2e..66f974c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java @@ -31,6 +31,8 @@ public final class UserGrant { private final Optional> scope; + private final Optional organizationId; + private final Map additionalProperties; private UserGrant( @@ -39,12 +41,14 @@ private UserGrant( Optional userId, Optional audience, Optional> scope, + Optional organizationId, Map additionalProperties) { this.id = id; this.clientId = clientId; this.userId = userId; this.audience = audience; this.scope = scope; + this.organizationId = organizationId; this.additionalProperties = additionalProperties; } @@ -88,6 +92,14 @@ public Optional> getScope() { return scope; } + /** + * @return ID of the organization associated with the grant. + */ + @JsonProperty("organization_id") + public Optional getOrganizationId() { + return organizationId; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -104,12 +116,13 @@ private boolean equalTo(UserGrant other) { && clientId.equals(other.clientId) && userId.equals(other.userId) && audience.equals(other.audience) - && scope.equals(other.scope); + && scope.equals(other.scope) + && organizationId.equals(other.organizationId); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.clientId, this.userId, this.audience, this.scope); + return Objects.hash(this.id, this.clientId, this.userId, this.audience, this.scope, this.organizationId); } @java.lang.Override @@ -133,6 +146,8 @@ public static final class Builder { private Optional> scope = Optional.empty(); + private Optional organizationId = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -144,6 +159,7 @@ public Builder from(UserGrant other) { userId(other.getUserId()); audience(other.getAudience()); scope(other.getScope()); + organizationId(other.getOrganizationId()); return this; } @@ -217,8 +233,22 @@ public Builder scope(List scope) { return this; } + /** + *

ID of the organization associated with the grant.

+ */ + @JsonSetter(value = "organization_id", nulls = Nulls.SKIP) + public Builder organizationId(Optional organizationId) { + this.organizationId = organizationId; + return this; + } + + public Builder organizationId(String organizationId) { + this.organizationId = Optional.ofNullable(organizationId); + return this; + } + public UserGrant build() { - return new UserGrant(id, clientId, userId, audience, scope, additionalProperties); + return new UserGrant(id, clientId, userId, audience, scope, organizationId, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java index 63bb140c..f9553305 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java @@ -20,7 +20,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UsernameAttribute.Builder.class) public final class UsernameAttribute { - private final Optional identifier; + private final Optional identifier; private final Optional profileRequired; @@ -31,7 +31,7 @@ public final class UsernameAttribute { private final Map additionalProperties; private UsernameAttribute( - Optional identifier, + Optional identifier, Optional profileRequired, Optional signup, Optional validation, @@ -44,7 +44,7 @@ private UsernameAttribute( } @JsonProperty("identifier") - public Optional getIdentifier() { + public Optional getIdentifier() { return identifier; } @@ -100,7 +100,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); private Optional profileRequired = Optional.empty(); @@ -122,12 +122,12 @@ public Builder from(UsernameAttribute other) { } @JsonSetter(value = "identifier", nulls = Nulls.SKIP) - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { this.identifier = identifier; return this; } - public Builder identifier(ConnectionAttributeIdentifier identifier) { + public Builder identifier(UsernameAttributeIdentifier identifier) { this.identifier = Optional.ofNullable(identifier); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAttributeIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAttributeIdentifier.java new file mode 100644 index 00000000..7807c30a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAttributeIdentifier.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UsernameAttributeIdentifier.Builder.class) +public final class UsernameAttributeIdentifier { + private final Optional active; + + private final Map additionalProperties; + + private UsernameAttributeIdentifier(Optional active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Determines if the attribute is used for identification + */ + @JsonProperty("active") + public Optional getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UsernameAttributeIdentifier && equalTo((UsernameAttributeIdentifier) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UsernameAttributeIdentifier other) { + return active.equals(other.active); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional active = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UsernameAttributeIdentifier other) { + active(other.getActive()); + return this; + } + + /** + *

Determines if the attribute is used for identification

+ */ + @JsonSetter(value = "active", nulls = Nulls.SKIP) + public Builder active(Optional active) { + this.active = active; + return this; + } + + public Builder active(Boolean active) { + this.active = Optional.ofNullable(active); + return this; + } + + public UsernameAttributeIdentifier build() { + return new UsernameAttributeIdentifier(active, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java index ba082da0..e6979f83 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java @@ -41,7 +41,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}}}]}")); + "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.clientGrants() .organizations() .list( diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java index 6584e049..c5750f9c 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java @@ -42,7 +42,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "[{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"group.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}]")); + "[{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"connection.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}]")); List response = client.eventStreams() .deliveries() .list( @@ -68,7 +68,7 @@ public void testList() throws Exception { + " \"id\": \"id\",\n" + " \"event_stream_id\": \"event_stream_id\",\n" + " \"status\": \"failed\",\n" - + " \"event_type\": \"group.created\",\n" + + " \"event_type\": \"connection.created\",\n" + " \"attempts\": [\n" + " {\n" + " \"status\": \"failed\",\n" @@ -122,7 +122,7 @@ public void testGetHistory() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"group.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); + "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"connection.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); GetEventStreamDeliveryHistoryResponseContent response = client.eventStreams().deliveries().getHistory("id", "event_id"); RecordedRequest request = server.takeRequest(); @@ -137,7 +137,7 @@ public void testGetHistory() throws Exception { + " \"id\": \"id\",\n" + " \"event_stream_id\": \"event_stream_id\",\n" + " \"status\": \"failed\",\n" - + " \"event_type\": \"group.created\",\n" + + " \"event_type\": \"connection.created\",\n" + " \"attempts\": [\n" + " {\n" + " \"status\": \"failed\",\n" diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java index 143fee3a..ea61b142 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java @@ -39,7 +39,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"date_from\":\"2024-01-15T09:30:00Z\",\"date_to\":\"2024-01-15T09:30:00Z\",\"statuses\":[\"failed\"],\"event_types\":[\"group.created\"]}")); + "{\"date_from\":\"2024-01-15T09:30:00Z\",\"date_to\":\"2024-01-15T09:30:00Z\",\"statuses\":[\"failed\"],\"event_types\":[\"connection.created\"]}")); CreateEventStreamRedeliveryResponseContent response = client.eventStreams() .redeliveries() .create( @@ -89,7 +89,7 @@ else if (actualJson.has("kind")) + " \"failed\"\n" + " ],\n" + " \"event_types\": [\n" - + " \"group.created\"\n" + + " \"connection.created\"\n" + " ]\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java index cef67a0d..56f4e7da 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java @@ -378,19 +378,19 @@ public void testTest() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"group.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); + "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"connection.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); CreateEventStreamTestEventResponseContent response = client.eventStreams() .test( "id", CreateEventStreamTestEventRequestContent.builder() - .eventType(EventStreamTestEventTypeEnum.GROUP_CREATED) + .eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); // Validate request body String actualRequestBody = request.getBody().readUtf8(); - String expectedRequestBody = "" + "{\n" + " \"event_type\": \"group.created\"\n" + "}"; + String expectedRequestBody = "" + "{\n" + " \"event_type\": \"connection.created\"\n" + "}"; JsonNode actualJson = objectMapper.readTree(actualRequestBody); JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); @@ -426,7 +426,7 @@ else if (actualJson.has("kind")) + " \"id\": \"id\",\n" + " \"event_stream_id\": \"event_stream_id\",\n" + " \"status\": \"failed\",\n" - + " \"event_type\": \"group.created\",\n" + + " \"event_type\": \"connection.created\",\n" + " \"attempts\": [\n" + " {\n" + " \"status\": \"failed\",\n" diff --git a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java index 67b9037a..28b8c35a 100644 --- a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java @@ -43,7 +43,7 @@ public void testSubscribe() throws Exception { .subscribe(SubscribeEventsRequestParameters.builder() .from(OptionalNullable.of("from")) .fromTimestamp(OptionalNullable.of("from_timestamp")) - .eventType(Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)) + .eventType(Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED)) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java new file mode 100644 index 00000000..a1656a2e --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java @@ -0,0 +1,98 @@ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.RoleMember; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class OrganizationsRolesMembersWireTest { + private MockWebServer server; + private ManagementApi client; + private ObjectMapper objectMapper = ObjectMappers.JSON_MAPPER; + + @BeforeEach + public void setup() throws Exception { + server = new MockWebServer(); + server.start(); + client = ManagementApi.builder() + .url(server.url("/").toString()) + .token("test-token") + .build(); + } + + @AfterEach + public void teardown() throws Exception { + server.shutdown(); + } + + @Test + public void testList() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"members\":[{\"user_id\":\"user_id\",\"picture\":\"picture\",\"name\":\"name\",\"email\":\"email\"}],\"next\":\"next\"}")); + SyncPagingIterable response = client.organizations() + .roles() + .members() + .list( + "id", + "role_id", + ListOrganizationRoleMembersRequestParameters.builder() + .from(OptionalNullable.of("from")) + .take(OptionalNullable.of(1)) + .fields(OptionalNullable.of("fields")) + .includeFields(OptionalNullable.of(true)) + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + // Pagination response validated via MockWebServer + // The SDK correctly parses the response into a SyncPagingIterable + } + + /** + * Compares two JsonNodes with numeric equivalence and null safety. + * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. + * Allows 'actual' to have extra fields (e.g., default values added during serialization). + */ + private boolean jsonEquals(JsonNode expected, JsonNode actual) { + if (expected == null && actual == null) return true; + if (expected == null || actual == null) return false; + if (expected.equals(actual)) return true; + if (expected.isNumber() && actual.isNumber()) + return Math.abs(expected.doubleValue() - actual.doubleValue()) < 1e-10; + if (expected.isObject() && actual.isObject()) { + java.util.Iterator> iter = expected.fields(); + while (iter.hasNext()) { + java.util.Map.Entry entry = iter.next(); + JsonNode actualValue = actual.get(entry.getKey()); + if (actualValue == null) { + if (!entry.getValue().isNull()) return false; + } else if (!jsonEquals(entry.getValue(), actualValue)) return false; + } + return true; + } + if (expected.isArray() && actual.isArray()) { + if (expected.size() != actual.size()) return false; + for (int i = 0; i < expected.size(); i++) { + if (!jsonEquals(expected.get(i), actual.get(i))) return false; + } + return true; + } + return false; + } +} diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java index 42cba106..5330fd23 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java @@ -47,7 +47,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}}}]}")); + "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.organizations() .list(ListOrganizationsRequestParameters.builder() .from(OptionalNullable.of("from")) @@ -70,7 +70,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"enabled_connections\":[{\"connection_id\":\"connection_id\",\"assign_membership_on_login\":true,\"show_as_button\":true,\"is_signup_enabled\":true}]}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\",\"enabled_connections\":[{\"connection_id\":\"connection_id\",\"assign_membership_on_login\":true,\"show_as_button\":true,\"is_signup_enabled\":true}]}")); CreateOrganizationResponseContent response = client.organizations() .create(CreateOrganizationRequestContent.builder().name("name").build()); RecordedRequest request = server.takeRequest(); @@ -131,6 +131,7 @@ else if (actualJson.has("kind")) + " \"per_hour\": 1\n" + " }\n" + " },\n" + + " \"third_party_client_access\": \"block\",\n" + " \"enabled_connections\": [\n" + " {\n" + " \"connection_id\": \"connection_id\",\n" @@ -177,7 +178,7 @@ public void testGetByName() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}}}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\"}")); GetOrganizationByNameResponseContent response = client.organizations().getByName("name"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -207,7 +208,8 @@ public void testGetByName() throws Exception { + " \"per_day\": 1,\n" + " \"per_hour\": 1\n" + " }\n" - + " }\n" + + " },\n" + + " \"third_party_client_access\": \"block\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); @@ -246,7 +248,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}}}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\"}")); GetOrganizationResponseContent response = client.organizations().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -276,7 +278,8 @@ public void testGet() throws Exception { + " \"per_day\": 1,\n" + " \"per_hour\": 1\n" + " }\n" - + " }\n" + + " },\n" + + " \"third_party_client_access\": \"block\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); @@ -324,7 +327,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}}}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\"}")); UpdateOrganizationResponseContent response = client.organizations() .update("id", UpdateOrganizationRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -384,7 +387,8 @@ else if (actualJson.has("kind")) + " \"per_day\": 1,\n" + " \"per_hour\": 1\n" + " }\n" - + " }\n" + + " },\n" + + " \"third_party_client_access\": \"block\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); diff --git a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java index 672f5c68..6a8bb629 100644 --- a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java @@ -42,7 +42,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"grants\":[{\"id\":\"id\",\"clientID\":\"clientID\",\"user_id\":\"user_id\",\"audience\":\"audience\",\"scope\":[\"scope\"]}]}")); + "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"grants\":[{\"id\":\"id\",\"clientID\":\"clientID\",\"user_id\":\"user_id\",\"audience\":\"audience\",\"scope\":[\"scope\"],\"organization_id\":\"organization_id\"}]}")); SyncPagingIterable response = client.userGrants() .list(ListUserGrantsRequestParameters.builder() .perPage(OptionalNullable.of(1)) diff --git a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java index 95b65b68..be1a82cf 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java @@ -41,7 +41,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}}}]}")); + "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.users() .organizations() .list( diff --git a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json index e2eb8eb2..c02c3063 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json index e2eb8eb2..c02c3063 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json index e2eb8eb2..c02c3063 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json index e2eb8eb2..c02c3063 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none", From 5d18b5f40275142b7fdc7bb2c1a8f5b7565e1cbc Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 12:49:50 +0530 Subject: [PATCH 03/13] SDK regeneration (#899) Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Kunal Dawar --- .fern/replay.lock | 8 +- CONTRIBUTING.md | 114 ++ reference.md | 1288 ++++------------- .../client/mgmt/AsyncRawActionsClient.java | 85 ++ .../client/mgmt/AsyncRawBrandingClient.java | 25 + .../mgmt/AsyncRawClientGrantsClient.java | 61 + .../client/mgmt/AsyncRawClientsClient.java | 97 ++ .../AsyncRawConnectionProfilesClient.java | 85 ++ .../mgmt/AsyncRawConnectionsClient.java | 73 + .../mgmt/AsyncRawCustomDomainsClient.java | 109 ++ .../mgmt/AsyncRawDeviceCredentialsClient.java | 37 + .../mgmt/AsyncRawEmailTemplatesClient.java | 49 + .../mgmt/AsyncRawEventStreamsClient.java | 73 + .../client/mgmt/AsyncRawEventsClient.java | 18 +- .../client/mgmt/AsyncRawFlowsClient.java | 61 + .../client/mgmt/AsyncRawFormsClient.java | 61 + .../client/mgmt/AsyncRawGroupsClient.java | 37 + .../client/mgmt/AsyncRawHooksClient.java | 61 + .../auth0/client/mgmt/AsyncRawJobsClient.java | 13 + .../client/mgmt/AsyncRawLogStreamsClient.java | 61 + .../auth0/client/mgmt/AsyncRawLogsClient.java | 25 + .../mgmt/AsyncRawNetworkAclsClient.java | 73 + .../mgmt/AsyncRawOrganizationsClient.java | 73 + .../client/mgmt/AsyncRawPromptsClient.java | 25 + .../mgmt/AsyncRawRateLimitPoliciesClient.java | 61 + .../mgmt/AsyncRawRefreshTokensClient.java | 61 + .../mgmt/AsyncRawResourceServersClient.java | 61 + .../client/mgmt/AsyncRawRolesClient.java | 61 + .../client/mgmt/AsyncRawRulesClient.java | 61 + .../mgmt/AsyncRawRulesConfigsClient.java | 37 + .../AsyncRawSelfServiceProfilesClient.java | 61 + .../client/mgmt/AsyncRawSessionsClient.java | 49 + .../client/mgmt/AsyncRawStatsClient.java | 25 + .../AsyncRawSupplementalSignalsClient.java | 25 + .../client/mgmt/AsyncRawTicketsClient.java | 25 + .../AsyncRawTokenExchangeProfilesClient.java | 61 + .../AsyncRawUserAttributeProfilesClient.java | 85 ++ .../client/mgmt/AsyncRawUserBlocksClient.java | 49 + .../client/mgmt/AsyncRawUserGrantsClient.java | 37 + .../client/mgmt/AsyncRawUsersClient.java | 97 ++ .../auth0/client/mgmt/AsyncUsersClient.java | 9 - .../auth0/client/mgmt/RawActionsClient.java | 78 + .../auth0/client/mgmt/RawBrandingClient.java | 23 + .../client/mgmt/RawClientGrantsClient.java | 56 + .../auth0/client/mgmt/RawClientsClient.java | 89 ++ .../mgmt/RawConnectionProfilesClient.java | 78 + .../client/mgmt/RawConnectionsClient.java | 67 + .../client/mgmt/RawCustomDomainsClient.java | 100 ++ .../mgmt/RawDeviceCredentialsClient.java | 34 + .../client/mgmt/RawEmailTemplatesClient.java | 45 + .../client/mgmt/RawEventStreamsClient.java | 67 + .../auth0/client/mgmt/RawEventsClient.java | 18 +- .../com/auth0/client/mgmt/RawFlowsClient.java | 56 + .../com/auth0/client/mgmt/RawFormsClient.java | 56 + .../auth0/client/mgmt/RawGroupsClient.java | 34 + .../com/auth0/client/mgmt/RawHooksClient.java | 56 + .../com/auth0/client/mgmt/RawJobsClient.java | 12 + .../client/mgmt/RawLogStreamsClient.java | 56 + .../com/auth0/client/mgmt/RawLogsClient.java | 23 + .../client/mgmt/RawNetworkAclsClient.java | 67 + .../client/mgmt/RawOrganizationsClient.java | 67 + .../auth0/client/mgmt/RawPromptsClient.java | 23 + .../mgmt/RawRateLimitPoliciesClient.java | 56 + .../client/mgmt/RawRefreshTokensClient.java | 56 + .../client/mgmt/RawResourceServersClient.java | 56 + .../com/auth0/client/mgmt/RawRolesClient.java | 56 + .../com/auth0/client/mgmt/RawRulesClient.java | 56 + .../client/mgmt/RawRulesConfigsClient.java | 34 + .../mgmt/RawSelfServiceProfilesClient.java | 56 + .../auth0/client/mgmt/RawSessionsClient.java | 45 + .../com/auth0/client/mgmt/RawStatsClient.java | 23 + .../mgmt/RawSupplementalSignalsClient.java | 23 + .../auth0/client/mgmt/RawTicketsClient.java | 23 + .../mgmt/RawTokenExchangeProfilesClient.java | 56 + .../mgmt/RawUserAttributeProfilesClient.java | 78 + .../client/mgmt/RawUserBlocksClient.java | 45 + .../client/mgmt/RawUserGrantsClient.java | 34 + .../com/auth0/client/mgmt/RawUsersClient.java | 89 ++ .../com/auth0/client/mgmt/UsersClient.java | 9 - .../actions/AsyncRawExecutionsClient.java | 13 + .../mgmt/actions/AsyncRawModulesClient.java | 85 ++ .../mgmt/actions/AsyncRawTriggersClient.java | 13 + .../mgmt/actions/AsyncRawVersionsClient.java | 37 + .../mgmt/actions/RawExecutionsClient.java | 12 + .../client/mgmt/actions/RawModulesClient.java | 78 + .../mgmt/actions/RawTriggersClient.java | 12 + .../mgmt/actions/RawVersionsClient.java | 34 + .../modules/AsyncRawVersionsClient.java | 37 + .../actions/modules/RawVersionsClient.java | 34 + ...ActionModuleVersionsRequestParameters.java | 21 +- .../triggers/AsyncRawBindingsClient.java | 25 + .../actions/triggers/RawBindingsClient.java | 23 + ...ctionTriggerBindingsRequestParameters.java | 21 +- .../CreateActionModuleRequestContent.java | 2 - ...tActionModuleActionsRequestParameters.java | 21 +- .../GetActionModulesRequestParameters.java | 21 +- .../ListActionVersionsRequestParameters.java | 21 +- ...RollbackActionModuleRequestParameters.java | 1 - .../mgmt/anomaly/AsyncRawBlocksClient.java | 25 + .../client/mgmt/anomaly/RawBlocksClient.java | 23 + .../AsyncRawBotDetectionClient.java | 25 + ...yncRawBreachedPasswordDetectionClient.java | 25 + .../AsyncRawBruteForceProtectionClient.java | 25 + .../AsyncRawCaptchaClient.java | 25 + ...AsyncRawPhoneProviderProtectionClient.java | 25 + .../AsyncRawSuspiciousIpThrottlingClient.java | 25 + .../RawBotDetectionClient.java | 23 + .../RawBreachedPasswordDetectionClient.java | 23 + .../RawBruteForceProtectionClient.java | 23 + .../attackprotection/RawCaptchaClient.java | 23 + .../RawPhoneProviderProtectionClient.java | 23 + .../RawSuspiciousIpThrottlingClient.java | 23 + .../branding/AsyncRawTemplatesClient.java | 37 + .../mgmt/branding/AsyncRawThemesClient.java | 61 + .../mgmt/branding/RawTemplatesClient.java | 34 + .../client/mgmt/branding/RawThemesClient.java | 56 + .../phone/AsyncRawProvidersClient.java | 73 + .../phone/AsyncRawTemplatesClient.java | 85 ++ .../branding/phone/RawProvidersClient.java | 67 + .../branding/phone/RawTemplatesClient.java | 78 + ...tePhoneProviderSendTestRequestContent.java | 1 - ...emplateTestNotificationRequestContent.java | 1 - ...andingPhoneProvidersRequestParameters.java | 12 +- .../ListPhoneTemplatesRequestParameters.java | 12 +- .../AsyncRawOrganizationsClient.java | 13 + .../clientgrants/RawOrganizationsClient.java | 12 + ...ntGrantOrganizationsRequestParameters.java | 21 +- .../clients/AsyncRawConnectionsClient.java | 13 + .../clients/AsyncRawCredentialsClient.java | 61 + .../mgmt/clients/RawConnectionsClient.java | 12 + .../mgmt/clients/RawCredentialsClient.java | 56 + .../clients/types/ConnectionsGetRequest.java | 44 +- .../connections/AsyncRawClientsClient.java | 25 + .../AsyncRawDirectoryProvisioningClient.java | 97 ++ .../mgmt/connections/AsyncRawKeysClient.java | 37 + .../AsyncRawScimConfigurationClient.java | 73 + .../mgmt/connections/AsyncRawUsersClient.java | 13 + .../mgmt/connections/RawClientsClient.java | 23 + .../RawDirectoryProvisioningClient.java | 89 ++ .../mgmt/connections/RawKeysClient.java | 34 + .../RawScimConfigurationClient.java | 67 + .../mgmt/connections/RawUsersClient.java | 12 + .../AsyncRawSynchronizationsClient.java | 13 + .../RawSynchronizationsClient.java | 12 + .../AsyncRawTokensClient.java | 37 + .../scimconfiguration/RawTokensClient.java | 34 + ...ConnectionUsersByEmailQueryParameters.java | 5 +- ...ectionEnabledClientsRequestParameters.java | 21 +- ...rectoryProvisioningsRequestParameters.java | 21 +- ...stScimConfigurationsRequestParameters.java | 21 +- ...stSynchronizedGroupsRequestParameters.java | 21 +- ...UpdateScimConfigurationRequestContent.java | 1 - .../mgmt/core/DateTimeDeserializer.java | 21 +- .../client/mgmt/core/RequestOptions.java | 16 + .../client/mgmt/core/RetryInterceptor.java | 33 +- .../mgmt/emails/AsyncRawProviderClient.java | 49 + .../client/mgmt/emails/RawProviderClient.java | 45 + .../GetEmailProviderRequestParameters.java | 21 +- .../AsyncRawDeliveriesClient.java | 25 + .../AsyncRawRedeliveriesClient.java | 25 + .../eventstreams/RawDeliveriesClient.java | 23 + .../eventstreams/RawRedeliveriesClient.java | 23 + ...ventStreamDeliveriesRequestParameters.java | 57 +- .../mgmt/flows/AsyncRawExecutionsClient.java | 37 + .../mgmt/flows/RawExecutionsClient.java | 34 + .../GetFlowExecutionRequestParameters.java | 8 + .../ListFlowExecutionsRequestParameters.java | 21 +- .../vault/AsyncRawConnectionsClient.java | 61 + .../flows/vault/RawConnectionsClient.java | 56 + ...lowsVaultConnectionsRequestParameters.java | 30 +- .../mgmt/groups/AsyncRawMembersClient.java | 13 + .../mgmt/groups/AsyncRawRolesClient.java | 37 + .../client/mgmt/groups/RawMembersClient.java | 12 + .../client/mgmt/groups/RawRolesClient.java | 34 + .../GetGroupMembersRequestParameters.java | 39 +- .../ListGroupRolesRequestParameters.java | 21 +- .../guardian/AsyncRawEnrollmentsClient.java | 37 + .../mgmt/guardian/AsyncRawFactorsClient.java | 25 + .../mgmt/guardian/AsyncRawPoliciesClient.java | 25 + .../mgmt/guardian/RawEnrollmentsClient.java | 34 + .../mgmt/guardian/RawFactorsClient.java | 23 + .../mgmt/guardian/RawPoliciesClient.java | 23 + .../guardian/factors/AsyncRawPhoneClient.java | 97 ++ .../AsyncRawPushNotificationClient.java | 145 ++ .../guardian/factors/AsyncRawSmsClient.java | 87 +- .../mgmt/guardian/factors/AsyncSmsClient.java | 6 +- .../mgmt/guardian/factors/RawPhoneClient.java | 89 ++ .../factors/RawPushNotificationClient.java | 133 ++ .../mgmt/guardian/factors/RawSmsClient.java | 76 +- .../mgmt/guardian/factors/SmsClient.java | 5 +- .../factors/duo/AsyncRawSettingsClient.java | 37 + .../factors/duo/RawSettingsClient.java | 34 + ...ianFactorPhoneTemplatesRequestContent.java | 2 - ...rdianFactorSmsTemplatesRequestContent.java | 2 - ...uardianEnrollmentTicketRequestContent.java | 1 - .../SetGuardianFactorRequestContent.java | 1 - .../mgmt/hooks/AsyncRawSecretsClient.java | 49 + .../client/mgmt/hooks/RawSecretsClient.java | 45 + .../client/mgmt/jobs/AsyncErrorsClient.java | 5 +- .../mgmt/jobs/AsyncRawErrorsClient.java | 24 +- .../mgmt/jobs/AsyncRawUsersExportsClient.java | 13 + .../mgmt/jobs/AsyncRawUsersImportsClient.java | 47 +- .../jobs/AsyncRawVerificationEmailClient.java | 13 + .../auth0/client/mgmt/jobs/ErrorsClient.java | 5 +- .../client/mgmt/jobs/RawErrorsClient.java | 22 +- .../mgmt/jobs/RawUsersExportsClient.java | 12 + .../mgmt/jobs/RawUsersImportsClient.java | 42 +- .../mgmt/jobs/RawVerificationEmailClient.java | 12 + .../CreateImportUsersRequestContent.java | 1 - ...CreateVerificationEmailRequestContent.java | 1 - .../mgmt/jobs/types/ErrorsGetResponse.java | 10 +- .../keys/AsyncRawCustomSigningClient.java | 37 + .../mgmt/keys/AsyncRawEncryptionClient.java | 85 ++ .../mgmt/keys/AsyncRawSigningClient.java | 49 + .../mgmt/keys/RawCustomSigningClient.java | 34 + .../client/mgmt/keys/RawEncryptionClient.java | 78 + .../client/mgmt/keys/RawSigningClient.java | 45 + .../ImportEncryptionKeyRequestContent.java | 1 - .../ListEncryptionKeysRequestParameters.java | 30 +- .../AsyncRawClientGrantsClient.java | 37 + .../AsyncRawConnectionsClient.java | 61 + .../AsyncRawDiscoveryDomainsClient.java | 73 + .../AsyncRawEnabledConnectionsClient.java | 61 + .../organizations/AsyncRawGroupsClient.java | 13 + .../AsyncRawInvitationsClient.java | 49 + .../organizations/AsyncRawMembersClient.java | 37 + .../organizations/RawClientGrantsClient.java | 34 + .../organizations/RawConnectionsClient.java | 56 + .../RawDiscoveryDomainsClient.java | 67 + .../RawEnabledConnectionsClient.java | 56 + .../mgmt/organizations/RawGroupsClient.java | 12 + .../organizations/RawInvitationsClient.java | 45 + .../mgmt/organizations/RawMembersClient.java | 34 + .../groups/AsyncRawRolesClient.java | 37 + .../organizations/groups/RawRolesClient.java | 34 + ...ganizationGroupRolesRequestParameters.java | 21 +- .../members/AsyncRawEffectiveRolesClient.java | 13 + .../members/AsyncRawRolesClient.java | 37 + .../members/RawEffectiveRolesClient.java | 12 + .../organizations/members/RawRolesClient.java | 34 + .../sources/AsyncRawGroupsClient.java | 13 + .../sources/RawGroupsClient.java | 12 + ...mberRoleSourceGroupsRequestParameters.java | 24 +- ...MemberEffectiveRolesRequestParameters.java | 21 +- ...anizationMemberRolesRequestParameters.java | 30 +- .../roles/AsyncRawMembersClient.java | 13 + .../organizations/roles/RawMembersClient.java | 12 + ...anizationRoleMembersRequestParameters.java | 39 +- ...dOrganizationConnectionRequestContent.java | 1 - ...OrganizationClientGrantRequestContent.java | 1 - ...izationAllConnectionRequestParameters.java | 1 - ...nizationDiscoveryDomainRequestContent.java | 1 - ...eOrganizationInvitationRequestContent.java | 1 - ...ganizationInvitationRequestParameters.java | 21 +- ...zationAllConnectionsRequestParameters.java | 39 +- ...nizationClientGrantsRequestParameters.java | 53 +- ...anizationConnectionsRequestParameters.java | 30 +- ...tionDiscoveryDomainsRequestParameters.java | 21 +- ...stOrganizationGroupsRequestParameters.java | 21 +- ...anizationInvitationsRequestParameters.java | 57 +- ...tOrganizationMembersRequestParameters.java | 39 +- .../prompts/AsyncRawCustomTextClient.java | 25 + .../mgmt/prompts/AsyncRawPartialsClient.java | 25 + .../mgmt/prompts/AsyncRawRenderingClient.java | 49 + .../mgmt/prompts/RawCustomTextClient.java | 23 + .../mgmt/prompts/RawPartialsClient.java | 23 + .../mgmt/prompts/RawRenderingClient.java | 45 + .../types/ListAculsRequestParameters.java | 75 +- .../AsyncRawSettingsClient.java | 25 + .../riskassessments/RawSettingsClient.java | 23 + .../settings/AsyncRawNewDeviceClient.java | 25 + .../settings/RawNewDeviceClient.java | 23 + ...smentsSettingsNewDeviceRequestContent.java | 1 - ...RiskAssessmentsSettingsRequestContent.java | 1 - .../mgmt/roles/AsyncRawGroupsClient.java | 37 + .../mgmt/roles/AsyncRawPermissionsClient.java | 37 + .../mgmt/roles/AsyncRawUsersClient.java | 25 + .../client/mgmt/roles/RawGroupsClient.java | 34 + .../mgmt/roles/RawPermissionsClient.java | 34 + .../client/mgmt/roles/RawUsersClient.java | 23 + .../roles/types/ListRoleGroupsParameters.java | 21 +- .../ListRolePermissionsRequestParameters.java | 30 +- .../types/ListRoleUsersRequestParameters.java | 21 +- .../AsyncRawCustomTextClient.java | 25 + .../AsyncRawSsoTicketClient.java | 25 + .../RawCustomTextClient.java | 23 + .../RawSsoTicketClient.java | 23 + .../mgmt/tenants/AsyncRawSettingsClient.java | 25 + .../mgmt/tenants/RawSettingsClient.java | 23 + .../GetTenantSettingsRequestParameters.java | 21 +- .../types/ActionModuleDependencyRequest.java | 2 - .../mgmt/types/ActionModuleSecretRequest.java | 2 - .../types/ActionTriggerCompatibleTrigger.java | 1 - .../mgmt/types/AculClientFilterById.java | 1 - .../mgmt/types/AculDomainFilterById.java | 1 - .../types/AculOrganizationFilterById.java | 1 - ...ProtectionCaptchaAuthChallengeRequest.java | 1 - .../AttackProtectionUpdateCaptchaArkose.java | 2 - ...rotectionUpdateCaptchaFriendlyCaptcha.java | 2 - ...AttackProtectionUpdateCaptchaHcaptcha.java | 2 - ...ctionUpdateCaptchaRecaptchaEnterprise.java | 3 - ...ackProtectionUpdateCaptchaRecaptchaV2.java | 2 - .../mgmt/types/BrandingThemeBorders.java | 7 - .../mgmt/types/BrandingThemeColors.java | 16 - .../mgmt/types/BrandingThemeFontBodyText.java | 2 - .../types/BrandingThemeFontButtonsText.java | 2 - .../types/BrandingThemeFontInputLabels.java | 2 - .../mgmt/types/BrandingThemeFontLinks.java | 2 - .../mgmt/types/BrandingThemeFontSubtitle.java | 2 - .../mgmt/types/BrandingThemeFontTitle.java | 2 - .../client/mgmt/types/BrandingThemeFonts.java | 2 - .../types/BrandingThemePageBackground.java | 2 - .../mgmt/types/BrandingThemeWidget.java | 2 - .../types/ChangePasswordTicketIdentity.java | 1 - .../ChangePasswordTicketResponseContent.java | 1 - .../CimdMappedPrivateKeyJwtCredential.java | 3 - .../mgmt/types/CimdValidationResult.java | 1 - .../client/mgmt/types/ClientAddonLayer.java | 3 - .../client/mgmt/types/ClientAddonMscrm.java | 1 - .../client/mgmt/types/ClientAddonRms.java | 1 - .../client/mgmt/types/ClientAddonSlack.java | 1 - .../mgmt/types/ClientDefaultOrganization.java | 1 - .../mgmt/types/ClientRefreshTokenPolicy.java | 1 - ...onTransferDelegationDeviceBindingEnum.java | 11 - .../client/mgmt/types/ConnectedAccount.java | 5 - .../mgmt/types/ConnectionEnabledClient.java | 1 - ...ctionFederatedConnectionsAccessTokens.java | 113 -- .../mgmt/types/ConnectionForOrganization.java | 1 - .../ConnectionGatewayAuthentication.java | 3 - .../ConnectionGatewayAuthenticationSms.java | 1 - .../client/mgmt/types/ConnectionKey.java | 4 - .../mgmt/types/ConnectionOptionsAzureAd.java | 81 -- .../types/ConnectionOptionsCommonOidc.java | 82 -- .../mgmt/types/ConnectionOptionsEmail.java | 1 - .../types/ConnectionOptionsGoogleApps.java | 81 -- .../mgmt/types/ConnectionOptionsOidc.java | 82 -- .../mgmt/types/ConnectionOptionsOkta.java | 82 -- .../types/ConnectionPropertiesOptions.java | 63 - .../types/CreateActionRequestContent.java | 1 - .../CreateBrandingThemeResponseContent.java | 2 - .../CreateClientGrantRequestContent.java | 1 - .../types/CreateClientRequestContent.java | 1 - .../types/CreateConnectionRequestContent.java | 1 - .../CreateCustomDomainRequestContent.java | 1 - .../CreateCustomDomainResponseContent.java | 3 - ...eDirectoryProvisioningResponseContent.java | 6 - ...rectorySynchronizationResponseContent.java | 3 - ...ptionKeyPublicWrappingResponseContent.java | 1 - .../CreateEncryptionKeyResponseContent.java | 3 - ...teEventStreamTestEventResponseContent.java | 2 - .../mgmt/types/CreateExportUsersFields.java | 1 - .../CreateExportUsersResponseContent.java | 3 - ...wsVaultConnectionActivecampaignApiKey.java | 1 - ...ConnectionActivecampaignUninitialized.java | 1 - ...ateFlowsVaultConnectionAirtableApiKey.java | 1 - ...sVaultConnectionAirtableUninitialized.java | 1 - ...eateFlowsVaultConnectionAuth0OauthApp.java | 1 - ...lowsVaultConnectionAuth0Uninitialized.java | 1 - ...CreateFlowsVaultConnectionBigqueryJwt.java | 1 - ...sVaultConnectionBigqueryUninitialized.java | 1 - ...ateFlowsVaultConnectionClearbitApiKey.java | 1 - ...sVaultConnectionClearbitUninitialized.java | 1 - ...FlowsVaultConnectionDocusignOauthCode.java | 1 - ...sVaultConnectionDocusignUninitialized.java | 1 - ...sVaultConnectionGoogleSheetsOauthCode.java | 1 - ...ltConnectionGoogleSheetsUninitialized.java | 1 - .../CreateFlowsVaultConnectionHttpApiKey.java | 1 - ...eateFlowsVaultConnectionHttpBasicAuth.java | 1 - .../CreateFlowsVaultConnectionHttpBearer.java | 1 - ...tConnectionHttpOauthClientCredentials.java | 1 - ...FlowsVaultConnectionHttpUninitialized.java | 1 - ...eateFlowsVaultConnectionHubspotApiKey.java | 1 - ...eFlowsVaultConnectionHubspotOauthCode.java | 1 - ...wsVaultConnectionHubspotUninitialized.java | 1 - .../CreateFlowsVaultConnectionJwtJwt.java | 1 - ...eFlowsVaultConnectionJwtUninitialized.java | 1 - ...teFlowsVaultConnectionMailchimpApiKey.java | 1 - ...lowsVaultConnectionMailchimpOauthCode.java | 1 - ...VaultConnectionMailchimpUninitialized.java | 1 - ...eateFlowsVaultConnectionMailjetApiKey.java | 1 - ...wsVaultConnectionMailjetUninitialized.java | 1 - ...lowsVaultConnectionPipedriveOauthCode.java | 1 - ...ateFlowsVaultConnectionPipedriveToken.java | 1 - ...VaultConnectionPipedriveUninitialized.java | 1 - ...teFlowsVaultConnectionResponseContent.java | 6 - ...owsVaultConnectionSalesforceOauthCode.java | 1 - ...aultConnectionSalesforceUninitialized.java | 1 - ...ateFlowsVaultConnectionSendgridApiKey.java | 1 - ...sVaultConnectionSendgridUninitialized.java | 1 - ...ateFlowsVaultConnectionSlackOauthCode.java | 1 - ...lowsVaultConnectionSlackUninitialized.java | 1 - ...reateFlowsVaultConnectionSlackWebhook.java | 1 - ...eateFlowsVaultConnectionStripeKeyPair.java | 1 - ...teFlowsVaultConnectionStripeOauthCode.java | 1 - ...owsVaultConnectionStripeUninitialized.java | 1 - ...eateFlowsVaultConnectionTelegramToken.java | 1 - ...sVaultConnectionTelegramUninitialized.java | 1 - ...reateFlowsVaultConnectionTwilioApiKey.java | 1 - ...owsVaultConnectionTwilioUninitialized.java | 1 - ...eateFlowsVaultConnectionWhatsappToken.java | 1 - ...sVaultConnectionWhatsappUninitialized.java | 1 - ...owsVaultConnectionZapierUninitialized.java | 1 - ...eateFlowsVaultConnectionZapierWebhook.java | 1 - .../mgmt/types/CreateHookRequestContent.java | 3 - .../CreateImportUsersResponseContent.java | 5 - .../types/CreateNetworkAclRequestContent.java | 1 - ...anizationAllConnectionResponseContent.java | 1 - ...izationDiscoveryDomainResponseContent.java | 4 - .../CreateOrganizationRequestContent.java | 1 - .../CreatePhoneTemplateResponseContent.java | 1 - ...blicKeyDeviceCredentialRequestContent.java | 3 - ...licKeyDeviceCredentialResponseContent.java | 1 - .../CreateRateLimitPolicyRequestContent.java | 1 - .../CreateRateLimitPolicyResponseContent.java | 2 - .../CreateResourceServerRequestContent.java | 1 - .../mgmt/types/CreateRoleRequestContent.java | 1 - .../mgmt/types/CreateRuleRequestContent.java | 2 - ...reateScimConfigurationResponseContent.java | 7 - ...reateSelfServiceProfileRequestContent.java | 1 - ...ateTokenExchangeProfileRequestContent.java | 3 - .../mgmt/types/CreateUserRequestContent.java | 1 - ...reateVerificationEmailResponseContent.java | 3 - .../auth0/client/mgmt/types/CredentialId.java | 1 - .../types/CrossAppAccessRequestingApp.java | 1 - .../auth0/client/mgmt/types/CustomDomain.java | 3 - .../types/DeleteActionRequestParameters.java | 12 +- ...erBlocksByIdentifierRequestParameters.java | 5 +- ...eteUserGrantByUserIdRequestParameters.java | 5 +- ...DeleteUserIdentityResponseContentItem.java | 3 - .../mgmt/types/DirectoryProvisioning.java | 6 - .../DirectoryProvisioningMappingItem.java | 2 - .../mgmt/types/DomainVerificationMethod.java | 1 - .../EmailProviderCredentialsSchemaZero.java | 1 - .../client/mgmt/types/EncryptionKey.java | 3 - .../types/EventStreamActionConfiguration.java | 1 - ...ventStreamCloudEventConnectionCreated.java | 1 - ...CloudEventConnectionCreatedCloudEvent.java | 5 - ...eamCloudEventConnectionCreatedObject0.java | 2 - ...dEventConnectionCreatedObject0Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionCreatedObject0OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionCreatedObject1.java | 2 - ...dEventConnectionCreatedObject1Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionCreatedObject1OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionCreatedObject2.java | 2 - ...eamCloudEventConnectionCreatedObject3.java | 2 - ...dEventConnectionCreatedObject3Options.java | 1 - ...eamCloudEventConnectionCreatedObject4.java | 2 - ...eamCloudEventConnectionCreatedObject5.java | 2 - ...eamCloudEventConnectionCreatedObject6.java | 2 - ...dEventConnectionCreatedObject6Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...eamCloudEventConnectionCreatedObject7.java | 2 - ...dEventConnectionCreatedObject7Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...ventStreamCloudEventConnectionDeleted.java | 1 - ...CloudEventConnectionDeletedCloudEvent.java | 5 - ...eamCloudEventConnectionDeletedObject0.java | 2 - ...dEventConnectionDeletedObject0Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionDeletedObject0OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionDeletedObject1.java | 2 - ...dEventConnectionDeletedObject1Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionDeletedObject1OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionDeletedObject2.java | 2 - ...eamCloudEventConnectionDeletedObject3.java | 2 - ...dEventConnectionDeletedObject3Options.java | 1 - ...eamCloudEventConnectionDeletedObject4.java | 2 - ...eamCloudEventConnectionDeletedObject5.java | 2 - ...eamCloudEventConnectionDeletedObject6.java | 2 - ...dEventConnectionDeletedObject6Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...eamCloudEventConnectionDeletedObject7.java | 2 - ...dEventConnectionDeletedObject7Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...ventStreamCloudEventConnectionUpdated.java | 1 - ...CloudEventConnectionUpdatedCloudEvent.java | 5 - ...eamCloudEventConnectionUpdatedObject0.java | 2 - ...dEventConnectionUpdatedObject0Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionUpdatedObject0OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionUpdatedObject1.java | 2 - ...dEventConnectionUpdatedObject1Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionUpdatedObject1OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionUpdatedObject2.java | 2 - ...eamCloudEventConnectionUpdatedObject3.java | 2 - ...dEventConnectionUpdatedObject3Options.java | 1 - ...eamCloudEventConnectionUpdatedObject4.java | 2 - ...eamCloudEventConnectionUpdatedObject5.java | 2 - ...eamCloudEventConnectionUpdatedObject6.java | 2 - ...dEventConnectionUpdatedObject6Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...eamCloudEventConnectionUpdatedObject7.java | 2 - ...dEventConnectionUpdatedObject7Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - .../EventStreamCloudEventContextClient.java | 2 - ...ventStreamCloudEventContextConnection.java | 3 - .../EventStreamCloudEventContextRequest.java | 4 - .../EventStreamCloudEventContextTenant.java | 1 - .../EventStreamCloudEventErrorDetail.java | 1 - .../EventStreamCloudEventGroupCreated.java | 1 - ...treamCloudEventGroupCreatedCloudEvent.java | 5 - ...ntStreamCloudEventGroupCreatedObject0.java | 4 - ...ntStreamCloudEventGroupCreatedObject1.java | 4 - ...ntStreamCloudEventGroupCreatedObject2.java | 3 - .../EventStreamCloudEventGroupDeleted.java | 1 - ...treamCloudEventGroupDeletedCloudEvent.java | 5 - ...ntStreamCloudEventGroupDeletedObject0.java | 5 - ...ntStreamCloudEventGroupDeletedObject1.java | 5 - ...ntStreamCloudEventGroupDeletedObject2.java | 4 - ...EventStreamCloudEventGroupMemberAdded.java | 1 - ...mCloudEventGroupMemberAddedCloudEvent.java | 5 - ...loudEventGroupMemberAddedObjectGroup0.java | 2 - ...loudEventGroupMemberAddedObjectGroup1.java | 2 - ...loudEventGroupMemberAddedObjectGroup2.java | 1 - ...oudEventGroupMemberAddedObjectMember0.java | 1 - ...oudEventGroupMemberAddedObjectMember1.java | 3 - ...entStreamCloudEventGroupMemberDeleted.java | 1 - ...loudEventGroupMemberDeletedCloudEvent.java | 5 - ...udEventGroupMemberDeletedObjectGroup0.java | 2 - ...udEventGroupMemberDeletedObjectGroup1.java | 2 - ...udEventGroupMemberDeletedObjectGroup2.java | 1 - ...dEventGroupMemberDeletedObjectMember0.java | 1 - ...dEventGroupMemberDeletedObjectMember1.java | 3 - ...ventStreamCloudEventGroupRoleAssigned.java | 1 - ...CloudEventGroupRoleAssignedCloudEvent.java | 5 - ...reamCloudEventGroupRoleAssignedObject.java | 1 - ...oudEventGroupRoleAssignedObjectGroup0.java | 2 - ...oudEventGroupRoleAssignedObjectGroup1.java | 2 - ...oudEventGroupRoleAssignedObjectGroup2.java | 1 - ...CloudEventGroupRoleAssignedObjectRole.java | 2 - ...EventStreamCloudEventGroupRoleDeleted.java | 1 - ...mCloudEventGroupRoleDeletedCloudEvent.java | 5 - ...treamCloudEventGroupRoleDeletedObject.java | 1 - ...loudEventGroupRoleDeletedObjectGroup0.java | 2 - ...loudEventGroupRoleDeletedObjectGroup1.java | 2 - ...loudEventGroupRoleDeletedObjectGroup2.java | 1 - ...mCloudEventGroupRoleDeletedObjectRole.java | 1 - .../EventStreamCloudEventGroupUpdated.java | 1 - ...treamCloudEventGroupUpdatedCloudEvent.java | 5 - ...ntStreamCloudEventGroupUpdatedObject0.java | 5 - ...ntStreamCloudEventGroupUpdatedObject1.java | 5 - ...ntStreamCloudEventGroupUpdatedObject2.java | 4 - ...ventStreamCloudEventOffsetOnlyMessage.java | 1 - ...entStreamCloudEventOrgConnectionAdded.java | 1 - ...loudEventOrgConnectionAddedCloudEvent.java | 5 - ...entOrgConnectionAddedObjectConnection.java | 1 - ...tOrgConnectionAddedObjectOrganization.java | 1 - ...tStreamCloudEventOrgConnectionRemoved.java | 1 - ...udEventOrgConnectionRemovedCloudEvent.java | 5 - ...tOrgConnectionRemovedObjectConnection.java | 1 - ...rgConnectionRemovedObjectOrganization.java | 1 - ...tStreamCloudEventOrgConnectionUpdated.java | 1 - ...udEventOrgConnectionUpdatedCloudEvent.java | 5 - ...tOrgConnectionUpdatedObjectConnection.java | 1 - ...rgConnectionUpdatedObjectOrganization.java | 1 - .../EventStreamCloudEventOrgCreated.java | 1 - ...tStreamCloudEventOrgCreatedCloudEvent.java | 5 - ...EventStreamCloudEventOrgCreatedObject.java | 1 - .../EventStreamCloudEventOrgDeleted.java | 1 - ...tStreamCloudEventOrgDeletedCloudEvent.java | 5 - ...EventStreamCloudEventOrgDeletedObject.java | 1 - ...tStreamCloudEventOrgGroupRoleAssigned.java | 1 - ...udEventOrgGroupRoleAssignedCloudEvent.java | 5 - ...mCloudEventOrgGroupRoleAssignedObject.java | 1 - ...EventOrgGroupRoleAssignedObjectGroup0.java | 2 - ...EventOrgGroupRoleAssignedObjectGroup1.java | 2 - ...EventOrgGroupRoleAssignedObjectGroup2.java | 1 - ...rgGroupRoleAssignedObjectOrganization.java | 1 - ...udEventOrgGroupRoleAssignedObjectRole.java | 2 - ...ntStreamCloudEventOrgGroupRoleDeleted.java | 1 - ...oudEventOrgGroupRoleDeletedCloudEvent.java | 5 - ...amCloudEventOrgGroupRoleDeletedObject.java | 1 - ...dEventOrgGroupRoleDeletedObjectGroup0.java | 2 - ...dEventOrgGroupRoleDeletedObjectGroup1.java | 2 - ...dEventOrgGroupRoleDeletedObjectGroup2.java | 1 - ...OrgGroupRoleDeletedObjectOrganization.java | 1 - ...oudEventOrgGroupRoleDeletedObjectRole.java | 1 - .../EventStreamCloudEventOrgMemberAdded.java | 1 - ...eamCloudEventOrgMemberAddedCloudEvent.java | 5 - ...EventOrgMemberAddedObjectOrganization.java | 1 - ...eamCloudEventOrgMemberAddedObjectUser.java | 1 - ...EventStreamCloudEventOrgMemberDeleted.java | 1 - ...mCloudEventOrgMemberDeletedCloudEvent.java | 5 - ...entOrgMemberDeletedObjectOrganization.java | 1 - ...mCloudEventOrgMemberDeletedObjectUser.java | 1 - ...StreamCloudEventOrgMemberRoleAssigned.java | 1 - ...dEventOrgMemberRoleAssignedCloudEvent.java | 5 - ...gMemberRoleAssignedObjectOrganization.java | 1 - ...dEventOrgMemberRoleAssignedObjectRole.java | 2 - ...dEventOrgMemberRoleAssignedObjectUser.java | 1 - ...tStreamCloudEventOrgMemberRoleDeleted.java | 1 - ...udEventOrgMemberRoleDeletedCloudEvent.java | 5 - ...rgMemberRoleDeletedObjectOrganization.java | 1 - ...udEventOrgMemberRoleDeletedObjectRole.java | 2 - ...udEventOrgMemberRoleDeletedObjectUser.java | 1 - .../EventStreamCloudEventOrgUpdated.java | 1 - ...tStreamCloudEventOrgUpdatedCloudEvent.java | 5 - ...EventStreamCloudEventOrgUpdatedObject.java | 1 - .../EventStreamCloudEventUserCreated.java | 1 - ...StreamCloudEventUserCreatedCloudEvent.java | 5 - ...ventStreamCloudEventUserCreatedObject.java | 3 - ...UserCreatedObjectIdentitiesItemCustom.java | 1 - ...erCreatedObjectIdentitiesItemDatabase.java | 1 - ...CreatedObjectIdentitiesItemEnterprise.java | 1 - ...eatedObjectIdentitiesItemPasswordless.java | 1 - ...UserCreatedObjectIdentitiesItemSocial.java | 1 - .../EventStreamCloudEventUserDeleted.java | 1 - ...StreamCloudEventUserDeletedCloudEvent.java | 5 - ...ventStreamCloudEventUserDeletedObject.java | 4 - ...UserDeletedObjectIdentitiesItemCustom.java | 1 - ...erDeletedObjectIdentitiesItemDatabase.java | 1 - ...DeletedObjectIdentitiesItemEnterprise.java | 1 - ...letedObjectIdentitiesItemPasswordless.java | 1 - ...UserDeletedObjectIdentitiesItemSocial.java | 1 - .../EventStreamCloudEventUserUpdated.java | 1 - ...StreamCloudEventUserUpdatedCloudEvent.java | 5 - ...ventStreamCloudEventUserUpdatedObject.java | 3 - ...UserUpdatedObjectIdentitiesItemCustom.java | 1 - ...erUpdatedObjectIdentitiesItemDatabase.java | 1 - ...UpdatedObjectIdentitiesItemEnterprise.java | 1 - ...datedObjectIdentitiesItemPasswordless.java | 1 - ...UserUpdatedObjectIdentitiesItemSocial.java | 1 - .../mgmt/types/EventStreamDelivery.java | 2 - .../types/EventStreamDeliveryAttempt.java | 1 - .../EventStreamEventBridgeConfiguration.java | 1 - .../types/EventStreamWebhookBasicAuth.java | 1 - .../EventStreamWebhookConfiguration.java | 1 - .../EventStreamWebhookCustomHeaderAuth.java | 1 - .../mgmt/types/ExpressConfiguration.java | 7 - .../types/ExpressConfigurationOrNull.java | 7 - .../types/FederatedConnectionTokenSet.java | 292 ---- .../auth0/client/mgmt/types/FlowAction.java | 112 +- .../mgmt/types/FlowExecutionSummary.java | 5 - .../types/FlowsVaultConnectionSummary.java | 6 - ...etBrandingDefaultThemeResponseContent.java | 2 - .../GetBrandingThemeResponseContent.java | 2 - .../types/GetClientRequestParameters.java | 21 +- .../types/GetConnectionRequestParameters.java | 21 +- .../types/GetCustomDomainResponseContent.java | 3 - .../types/GetDailyStatsRequestParameters.java | 21 +- ...DefaultCanonicalDomainResponseContent.java | 1 - ...GetDefaultCustomDomainResponseContent.java | 3 - ...tDirectoryProvisioningResponseContent.java | 6 - .../GetEncryptionKeyResponseContent.java | 3 - ...tStreamDeliveryHistoryResponseContent.java | 2 - .../GetFlowExecutionResponseContent.java | 5 - .../mgmt/types/GetFlowRequestParameters.java | 8 + ...etFlowsVaultConnectionResponseContent.java | 6 - .../mgmt/types/GetFormRequestParameters.java | 8 + .../mgmt/types/GetGroupResponseContent.java | 5 - .../GetGuardianEnrollmentResponseContent.java | 1 - ...anFactorPhoneTemplatesResponseContent.java | 2 - ...dianFactorSmsTemplatesResponseContent.java | 2 - .../mgmt/types/GetHookRequestParameters.java | 12 +- .../GetJobGenericErrorResponseContent.java | 3 - .../mgmt/types/GetJobResponseContent.java | 3 - ...anizationAllConnectionResponseContent.java | 1 - ...nDiscoveryDomainByNameResponseContent.java | 4 - ...izationDiscoveryDomainResponseContent.java | 4 - .../GetPhoneTemplateResponseContent.java | 1 - .../GetRateLimitPolicyResponseContent.java | 2 - .../GetRefreshTokensRequestParameters.java | 51 +- .../GetResourceServerRequestParameters.java | 12 +- ...mentsSettingsNewDeviceResponseContent.java | 1 - ...iskAssessmentsSettingsResponseContent.java | 1 - .../mgmt/types/GetRuleRequestParameters.java | 21 +- .../GetScimConfigurationResponseContent.java | 7 - .../types/GetSigningKeysResponseContent.java | 4 - ...erAuthenticationMethodResponseContent.java | 2 - .../mgmt/types/GetUserRequestParameters.java | 21 +- .../client/mgmt/types/GuardianFactor.java | 1 - .../types/IConnectionOptionsCommonOidc.java | 2 - .../com/auth0/client/mgmt/types/Identity.java | 1 - .../ImportEncryptionKeyResponseContent.java | 3 - .../mgmt/types/LinkedClientConfiguration.java | 1 - .../types/ListActionsRequestParameters.java | 57 +- .../ListClientGrantsRequestParameters.java | 66 +- .../types/ListClientsRequestParameters.java | 93 +- ...istConnectionProfileRequestParameters.java | 21 +- .../types/ListConnectionsQueryParameters.java | 53 +- .../ListCustomDomainsRequestParameters.java | 39 +- ...istDeviceCredentialsRequestParameters.java | 75 +- .../ListEventStreamsRequestParameters.java | 21 +- .../types/ListFlowsRequestParameters.java | 44 +- .../types/ListFormsRequestParameters.java | 35 +- .../types/ListGroupsRequestParameters.java | 75 +- .../types/ListHooksRequestParameters.java | 57 +- .../mgmt/types/ListLogsRequestParameters.java | 66 +- .../ListNetworkAclsRequestParameters.java | 30 +- .../ListOrganizationsRequestParameters.java | 30 +- ...istRateLimitPoliciesRequestParameters.java | 48 +- .../ListResourceServerRequestParameters.java | 44 +- .../types/ListRolesRequestParameters.java | 39 +- .../types/ListRulesRequestParameters.java | 57 +- ...tSelfServiceProfilesRequestParameters.java | 30 +- ...UserAttributeProfileRequestParameters.java | 21 +- ...erBlocksByIdentifierRequestParameters.java | 15 +- .../ListUserBlocksRequestParameters.java | 12 +- .../ListUserGrantsRequestParameters.java | 57 +- .../ListUsersByEmailRequestParameters.java | 24 +- .../types/ListUsersRequestParameters.java | 93 +- .../mgmt/types/LogStreamDatadogSink.java | 1 - .../mgmt/types/LogStreamEventBridgeSink.java | 1 - .../mgmt/types/LogStreamEventGridSink.java | 2 - .../client/mgmt/types/LogStreamHttpSink.java | 1 - .../mgmt/types/LogStreamMixpanelSink.java | 3 - .../types/LogStreamMixpanelSinkPatch.java | 2 - .../types/LogStreamSegmentSinkWriteKey.java | 1 - .../client/mgmt/types/LogStreamSinkPatch.java | 8 +- .../mgmt/types/LogStreamSplunkSink.java | 4 - .../client/mgmt/types/LogStreamSumoSink.java | 1 - .../client/mgmt/types/NetworkAclMatch.java | 26 + .../auth0/client/mgmt/types/OauthScope.java | 22 - .../types/OrganizationAllConnectionPost.java | 1 - .../types/OrganizationBrandingColors.java | 2 - .../types/OrganizationDiscoveryDomain.java | 4 - .../types/OrganizationInvitationInvitee.java | 1 - .../types/OrganizationInvitationInviter.java | 1 - .../OrganizationMemberEffectiveRole.java | 3 - ...licyConfigurationRequestContentAction.java | 3 - ...tPolicyConfigurationRequestContentOne.java | 2 - ...PolicyConfigurationRequestContentZero.java | 1 - .../mgmt/types/PermissionRequestPayload.java | 2 - .../client/mgmt/types/PhoneTemplate.java | 1 - ...ostConnectionsKeysResponseContentItem.java | 4 - .../PreviewCimdMetadataRequestContent.java | 1 - .../mgmt/types/PublicKeyCredential.java | 1 - .../client/mgmt/types/RateLimitPolicy.java | 2 - .../RateLimitPolicyConfigurationAction.java | 3 - .../RateLimitPolicyConfigurationOne.java | 2 - .../RateLimitPolicyConfigurationZero.java | 1 - .../RegisterCimdClientRequestContent.java | 1 - .../RegisterCimdClientResponseContent.java | 1 - .../ResetPhoneTemplateResponseContent.java | 1 - .../ResourceServerAuthorizationPolicy.java | 1 - .../ResourceServerProofOfPossession.java | 1 - .../mgmt/types/ResourceServerScope.java | 1 - .../ResourceServerTokenEncryptionKey.java | 1 - .../RevokedSigningKeysResponseContent.java | 2 - .../RotateConnectionsKeysResponseContent.java | 4 - .../RotateSigningKeysResponseContent.java | 2 - .../client/mgmt/types/ScimConfiguration.java | 7 - ...rviceProfileSsoTicketConnectionConfig.java | 1 - ...ceProfileSsoTicketEnabledOrganization.java | 1 - ...ProfileSsoTicketGoogleWorkspaceConfig.java | 1 - .../SelfServiceProfileUserAttribute.java | 3 - .../SetDefaultCustomDomainRequestContent.java | 1 - ...anFactorPhoneTemplatesResponseContent.java | 2 - .../SetGuardianFactorResponseContent.java | 1 - ...dianFactorSmsTemplatesResponseContent.java | 2 - .../types/SetNetworkAclRequestContent.java | 1 - .../types/SetRulesConfigRequestContent.java | 1 - .../types/SetRulesConfigResponseContent.java | 2 - .../auth0/client/mgmt/types/SigningKeys.java | 4 - .../SubscribeEventsRequestParameters.java | 26 +- .../mgmt/types/SynchronizedGroupPayload.java | 1 - .../TestCustomDomainResponseContent.java | 1 - .../TokenExchangeProfilesListRequest.java | 21 +- .../UpdateBrandingThemeResponseContent.java | 2 - .../mgmt/types/UpdateConnectionOptions.java | 63 - .../UpdateCustomDomainResponseContent.java | 3 - ...DefaultCanonicalDomainResponseContent.java | 1 - ...ateDefaultCustomDomainResponseContent.java | 3 - ...eDirectoryProvisioningResponseContent.java | 6 - ...edClientConnectionsRequestContentItem.java | 2 - ...teFlowsVaultConnectionResponseContent.java | 6 - .../UpdateFlowsVaultConnectionSetup.java | 18 +- ...anizationAllConnectionResponseContent.java | 1 - ...izationDiscoveryDomainResponseContent.java | 4 - .../UpdatePhoneTemplateResponseContent.java | 1 - .../UpdateRateLimitPolicyResponseContent.java | 2 - ...mentsSettingsNewDeviceResponseContent.java | 1 - ...iskAssessmentsSettingsResponseContent.java | 1 - ...pdateScimConfigurationResponseContent.java | 7 - ...dateSupplementalSignalsRequestContent.java | 1 - ...eUniversalLoginTemplateRequestContent.java | 8 +- .../UserAttributeProfileOidcMapping.java | 1 - ...fileUserAttributeAdditionalProperties.java | 4 - .../mgmt/types/UserAuthenticationMethod.java | 2 - .../client/mgmt/types/UserEffectiveRole.java | 3 - .../auth0/client/mgmt/types/UserIdentity.java | 3 - .../VerifyCustomDomainResponseContent.java | 3 - .../VerifyEmailTicketRequestContent.java | 1 - .../VerifyEmailTicketResponseContent.java | 1 - .../mgmt/types/X509CertificateCredential.java | 1 - ...ncFederatedConnectionsTokensetsClient.java | 50 - .../AsyncRawAuthenticationMethodsClient.java | 85 ++ .../users/AsyncRawAuthenticatorsClient.java | 13 + .../AsyncRawConnectedAccountsClient.java | 13 + .../AsyncRawEffectivePermissionsClient.java | 13 + .../users/AsyncRawEffectiveRolesClient.java | 13 + .../mgmt/users/AsyncRawEnrollmentsClient.java | 13 + ...awFederatedConnectionsTokensetsClient.java | 208 --- .../mgmt/users/AsyncRawGroupsClient.java | 13 + .../mgmt/users/AsyncRawIdentitiesClient.java | 25 + .../client/mgmt/users/AsyncRawLogsClient.java | 13 + .../mgmt/users/AsyncRawMultifactorClient.java | 25 + .../users/AsyncRawOrganizationsClient.java | 13 + .../mgmt/users/AsyncRawPermissionsClient.java | 37 + .../users/AsyncRawRefreshTokenClient.java | 25 + .../users/AsyncRawRiskAssessmentsClient.java | 13 + .../mgmt/users/AsyncRawRolesClient.java | 37 + .../mgmt/users/AsyncRawSessionsClient.java | 25 + .../FederatedConnectionsTokensetsClient.java | 49 - .../users/RawAuthenticationMethodsClient.java | 78 + .../mgmt/users/RawAuthenticatorsClient.java | 12 + .../users/RawConnectedAccountsClient.java | 12 + .../users/RawEffectivePermissionsClient.java | 12 + .../mgmt/users/RawEffectiveRolesClient.java | 12 + .../mgmt/users/RawEnrollmentsClient.java | 12 + ...awFederatedConnectionsTokensetsClient.java | 159 -- .../client/mgmt/users/RawGroupsClient.java | 12 + .../mgmt/users/RawIdentitiesClient.java | 23 + .../client/mgmt/users/RawLogsClient.java | 12 + .../mgmt/users/RawMultifactorClient.java | 23 + .../mgmt/users/RawOrganizationsClient.java | 12 + .../mgmt/users/RawPermissionsClient.java | 34 + .../mgmt/users/RawRefreshTokenClient.java | 23 + .../mgmt/users/RawRiskAssessmentsClient.java | 12 + .../client/mgmt/users/RawRolesClient.java | 34 + .../client/mgmt/users/RawSessionsClient.java | 23 + .../sources/AsyncRawRolesClient.java | 13 + .../sources/RawRolesClient.java | 12 + ...PermissionRoleSourceRequestParameters.java | 27 +- .../sources/AsyncRawGroupsClient.java | 13 + .../sources/RawGroupsClient.java | 12 + ...UserRoleSourceGroupsRequestParameters.java | 24 +- .../types/ClearAssessorsRequestContent.java | 1 - ...serConnectedAccountsRequestParameters.java | 21 +- .../types/GetUserGroupsRequestParameters.java | 39 +- .../ListRefreshTokensRequestParameters.java | 21 +- ...uthenticationMethodsRequestParameters.java | 30 +- ...EffectivePermissionsRequestParameters.java | 24 +- ...stUserEffectiveRolesRequestParameters.java | 21 +- .../types/ListUserLogsRequestParameters.java | 39 +- ...istUserOrganizationsRequestParameters.java | 30 +- .../ListUserPermissionsRequestParameters.java | 30 +- .../types/ListUserRolesRequestParameters.java | 30 +- .../ListUserSessionsRequestParameters.java | 21 +- .../verification/AsyncRawTemplatesClient.java | 61 + .../verification/RawTemplatesClient.java | 56 + ...eCredentialTemplatesRequestParameters.java | 21 +- .../mgmt/ActionsModulesVersionsWireTest.java | 5 +- .../client/mgmt/ActionsModulesWireTest.java | 9 +- .../mgmt/ActionsTriggersBindingsWireTest.java | 5 +- .../client/mgmt/ActionsVersionsWireTest.java | 14 +- .../auth0/client/mgmt/ActionsWireTest.java | 17 +- .../mgmt/BrandingPhoneProvidersWireTest.java | 3 +- .../mgmt/BrandingPhoneTemplatesWireTest.java | 3 +- .../ClientGrantsOrganizationsWireTest.java | 5 +- .../client/mgmt/ClientGrantsWireTest.java | 15 +- .../mgmt/ClientsConnectionsWireTest.java | 9 +- .../auth0/client/mgmt/ClientsWireTest.java | 25 +- .../mgmt/ConnectionProfilesWireTest.java | 5 +- .../mgmt/ConnectionsClientsWireTest.java | 5 +- ...nectionsDirectoryProvisioningWireTest.java | 26 +- .../client/mgmt/ConnectionsKeysWireTest.java | 18 +- .../ConnectionsScimConfigurationWireTest.java | 13 +- .../client/mgmt/ConnectionsWireTest.java | 15 +- .../client/mgmt/CustomDomainsWireTest.java | 9 +- .../mgmt/DeviceCredentialsWireTest.java | 17 +- .../client/mgmt/EmailsProviderWireTest.java | 5 +- .../mgmt/EventStreamsDeliveriesWireTest.java | 13 +- .../client/mgmt/EventStreamsWireTest.java | 5 +- .../com/auth0/client/mgmt/EventsWireTest.java | 5 +- .../client/mgmt/FlowsExecutionsWireTest.java | 5 +- .../mgmt/FlowsVaultConnectionsWireTest.java | 7 +- .../com/auth0/client/mgmt/FlowsWireTest.java | 9 +- .../com/auth0/client/mgmt/FormsWireTest.java | 7 +- .../client/mgmt/GroupsMembersWireTest.java | 9 +- .../client/mgmt/GroupsRolesWireTest.java | 5 +- .../com/auth0/client/mgmt/GroupsWireTest.java | 17 +- .../mgmt/GuardianFactorsSmsWireTest.java | 3 +- .../com/auth0/client/mgmt/HooksWireTest.java | 19 +- .../auth0/client/mgmt/JobsErrorsWireTest.java | 3 +- .../client/mgmt/KeysEncryptionWireTest.java | 7 +- .../com/auth0/client/mgmt/LogsWireTest.java | 15 +- .../client/mgmt/NetworkAclsWireTest.java | 7 +- .../OrganizationsClientGrantsWireTest.java | 11 +- .../OrganizationsConnectionsWireTest.java | 9 +- ...OrganizationsDiscoveryDomainsWireTest.java | 5 +- ...ganizationsEnabledConnectionsWireTest.java | 7 +- .../OrganizationsGroupsRolesWireTest.java | 5 +- .../mgmt/OrganizationsGroupsWireTest.java | 5 +- .../OrganizationsInvitationsWireTest.java | 17 +- ...rsEffectiveRolesSourcesGroupsWireTest.java | 5 +- ...izationsMembersEffectiveRolesWireTest.java | 5 +- .../OrganizationsMembersRolesWireTest.java | 7 +- .../mgmt/OrganizationsMembersWireTest.java | 9 +- .../OrganizationsRolesMembersWireTest.java | 9 +- .../client/mgmt/OrganizationsWireTest.java | 7 +- .../client/mgmt/PromptsRenderingWireTest.java | 17 +- .../mgmt/RateLimitPoliciesWireTest.java | 11 +- .../client/mgmt/RefreshTokensWireTest.java | 11 +- .../client/mgmt/ResourceServersWireTest.java | 11 +- .../client/mgmt/RolesGroupsWireTest.java | 6 +- .../client/mgmt/RolesPermissionsWireTest.java | 7 +- .../auth0/client/mgmt/RolesUsersWireTest.java | 5 +- .../com/auth0/client/mgmt/RolesWireTest.java | 9 +- .../com/auth0/client/mgmt/RulesWireTest.java | 17 +- .../mgmt/SelfServiceProfilesWireTest.java | 7 +- .../com/auth0/client/mgmt/StatsWireTest.java | 5 +- .../client/mgmt/TenantsSettingsWireTest.java | 5 +- .../mgmt/TokenExchangeProfilesWireTest.java | 5 +- .../mgmt/UserAttributeProfilesWireTest.java | 5 +- .../auth0/client/mgmt/UserBlocksWireTest.java | 5 +- .../auth0/client/mgmt/UserGrantsWireTest.java | 13 +- .../UsersAuthenticationMethodsWireTest.java | 7 +- .../mgmt/UsersConnectedAccountsWireTest.java | 5 +- ...ectivePermissionsSourcesRolesWireTest.java | 5 +- .../UsersEffectivePermissionsWireTest.java | 5 +- ...rsEffectiveRolesSourcesGroupsWireTest.java | 5 +- .../mgmt/UsersEffectiveRolesWireTest.java | 5 +- ...FederatedConnectionsTokensetsWireTest.java | 134 -- .../client/mgmt/UsersGroupsWireTest.java | 9 +- .../auth0/client/mgmt/UsersLogsWireTest.java | 9 +- .../mgmt/UsersOrganizationsWireTest.java | 7 +- .../client/mgmt/UsersPermissionsWireTest.java | 7 +- .../mgmt/UsersRefreshTokenWireTest.java | 5 +- .../auth0/client/mgmt/UsersRolesWireTest.java | 7 +- .../client/mgmt/UsersSessionsWireTest.java | 5 +- .../com/auth0/client/mgmt/UsersWireTest.java | 29 +- ...dentialsVerificationTemplatesWireTest.java | 5 +- .../NetworkAclsWireTest_testGet_response.json | 6 + .../NetworkAclsWireTest_testSet_response.json | 6 + ...tworkAclsWireTest_testUpdate_response.json | 6 + 930 files changed, 13712 insertions(+), 4375 deletions(-) create mode 100644 CONTRIBUTING.md delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java delete mode 100644 src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java diff --git a/.fern/replay.lock b/.fern/replay.lock index 82885b51..faf84d4b 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -12,5 +12,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-java-sdk: 4.6.3 -current_generation: ae4f5b4b9ca18d966278c4113e89b85e607973cc + - commit_sha: 653c66ddba4f88ad24d1bab64c0d820b57ec9c0d + tree_hash: b714995659cff9c91bdf1eaa8990f7dadbdbe52d + timestamp: 2026-07-14T16:05:49.064Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.11.1 +current_generation: 653c66ddba4f88ad24d1bab64c0d820b57ec9c0d patches: [] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..24cf9fa0 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,114 @@ +# Contributing + +Thanks for your interest in contributing to this SDK! This document provides guidelines for contributing to the project. + +## Getting Started + +### Prerequisites + +- Java 11+ +- Gradle + +### Installation + +Install the project dependencies: + +```bash +./gradlew build +``` + +### Building + +Build the project: + +```bash +./gradlew build +``` + +### Testing + +Run the test suite: + +```bash +./gradlew test +``` + +### Formatting + +Check and fix code style: + +```bash +./gradlew spotlessApply +``` + +## About Generated Code + +**Important**: Most files in this SDK are automatically generated by [Fern](https://buildwithfern.com) from the API definition. Direct modifications to generated files will be overwritten the next time the SDK is generated. + +### Generated Files + +The following directories contain generated code: +- `src/` - API client classes and types +- Most Java files in the project + +### How to Customize + +If you need to customize the SDK, you have two options: + +#### Option 1: Use `.fernignore` + +For custom code that should persist across SDK regenerations: + +1. Create a `.fernignore` file in the project root +2. Add file patterns for files you want to preserve (similar to `.gitignore` syntax) +3. Add your custom code to those files + +Files listed in `.fernignore` will not be overwritten when the SDK is regenerated. + +For more information, see the [Fern documentation on custom code](https://buildwithfern.com/learn/sdks/overview/custom-code). + +#### Option 2: Contribute to the Generator + +If you want to change how code is generated for all users of this SDK: + +1. The Java SDK generator lives in the [Fern repository](https://github.com/fern-api/fern) +2. Generator code is located at `generators/java-v2/` +3. Follow the [Fern contributing guidelines](https://github.com/fern-api/fern/blob/main/CONTRIBUTING.md) +4. Submit a pull request with your changes to the generator + +This approach is best for: +- Bug fixes in generated code +- New features that would benefit all users +- Improvements to code generation patterns + +## Making Changes + +### Workflow + +1. Create a new branch for your changes +2. Make your modifications +3. Run tests to ensure nothing breaks: `./gradlew test` +4. Run formatting: `./gradlew spotlessApply` +5. Build the project: `./gradlew build` +6. Commit your changes with a clear commit message +7. Push your branch and create a pull request + +### Commit Messages + +Write clear, descriptive commit messages that explain what changed and why. + +### Code Style + +This project uses automated code formatting. Run `./gradlew spotlessApply` before committing to ensure your code meets the project's style guidelines. + +## Questions or Issues? + +If you have questions or run into issues: + +1. Check the [Fern documentation](https://buildwithfern.com) +2. Search existing [GitHub issues](https://github.com/fern-api/fern/issues) +3. Open a new issue if your question hasn't been addressed + +## License + +By contributing to this project, you agree that your contributions will be licensed under the same license as the project. diff --git a/reference.md b/reference.md index 3767b831..0576977e 100644 --- a/reference.md +++ b/reference.md @@ -30,24 +30,12 @@ Retrieve all actions. client.actions().list( ListActionsRequestParameters .builder() - .triggerId( - OptionalNullable.of(ActionTriggerTypeEnum.POST_LOGIN) - ) - .actionName( - OptionalNullable.of("actionName") - ) - .deployed( - OptionalNullable.of(true) - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .installed( - OptionalNullable.of(true) - ) + .triggerId(ActionTriggerTypeEnum.POST_LOGIN) + .actionName("actionName") + .deployed(true) + .page(1) + .perPage(1) + .installed(true) .build() ); ``` @@ -324,9 +312,7 @@ client.actions().delete( "id", DeleteActionRequestParameters .builder() - .force( - OptionalNullable.of(true) - ) + .force(true) .build() ); ``` @@ -757,27 +743,13 @@ Retrieve a list of [client grants](https://auth0.com/docs/get-started/applicatio client.clientGrants().list( ListClientGrantsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .audience( - OptionalNullable.of("audience") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .allowAnyOrganization( - OptionalNullable.of(true) - ) - .subjectType( - OptionalNullable.of(ClientGrantSubjectTypeEnum.CLIENT) - ) - .defaultFor( - OptionalNullable.of(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) - ) + .from("from") + .take(1) + .audience("audience") + .clientId("client_id") + .allowAnyOrganization(true) + .subjectType(ClientGrantSubjectTypeEnum.CLIENT) + .defaultFor(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) .build() ); ``` @@ -1240,36 +1212,16 @@ For more information, read [Applications in Auth0](https://www.auth0.com/docs/ge client.clients().list( ListClientsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .isGlobal( - OptionalNullable.of(true) - ) - .isFirstParty( - OptionalNullable.of(true) - ) - .appType( - OptionalNullable.of("app_type") - ) - .externalClientId( - OptionalNullable.of("external_client_id") - ) - .q( - OptionalNullable.of("q") - ) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .isGlobal(true) + .isFirstParty(true) + .appType("app_type") + .externalClientId("external_client_id") + .q("q") .build() ); ``` @@ -2064,12 +2016,8 @@ client.clients().get( "id", GetClientRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -2768,12 +2716,8 @@ Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagina client.connectionProfiles().list( ListConnectionProfileRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -3264,21 +3208,11 @@ To search by checkpoint, use the following parameters: client.connections().list( ListConnectionsQueryParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .name( - OptionalNullable.of("name") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .name("name") + .fields("fields") + .includeFields(true) .strategy( Arrays.asList(ConnectionStrategyEnum.AD) ) @@ -3531,12 +3465,8 @@ client.connections().get( "id", GetConnectionRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -3863,18 +3793,10 @@ Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). client.customDomains().list( ListCustomDomainsRequestParameters .builder() - .q( - OptionalNullable.of("q") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .sort( - OptionalNullable.of("sort") - ) + .q("q") + .fields("fields") + .includeFields(true) + .sort("sort") .build() ); ``` @@ -4521,30 +4443,14 @@ Retrieve device credential information (`public_key`, `refresh_token`, or `rotat client.deviceCredentials().list( ListDeviceCredentialsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .userId( - OptionalNullable.of("user_id") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .type( - OptionalNullable.of(DeviceCredentialTypeEnum.PUBLIC_KEY) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .userId("user_id") + .clientId("client_id") + .type(DeviceCredentialTypeEnum.PUBLIC_KEY) .build() ); ``` @@ -5237,12 +5143,8 @@ client.emailTemplates().update( client.eventStreams().list( ListEventStreamsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -5596,12 +5498,8 @@ Subscribe to events via Server-Sent Events (SSE) client.events().subscribe( SubscribeEventsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .fromTimestamp( - OptionalNullable.of("from_timestamp") - ) + .from("from") + .fromTimestamp("from_timestamp") .eventType( Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED) ) @@ -5666,18 +5564,10 @@ client.events().subscribe( client.flows().list( ListFlowsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .synchronous( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .synchronous(true) .hydrate( Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT) ) @@ -5968,15 +5858,9 @@ client.flows().update( client.forms().list( ListFormsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .hydrate( Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT) ) @@ -6369,24 +6253,12 @@ Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) a client.userGrants().list( ListUserGrantsRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .userId( - OptionalNullable.of("user_id") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .audience( - OptionalNullable.of("audience") - ) + .perPage(1) + .page(1) + .includeTotals(true) + .userId("user_id") + .clientId("client_id") + .audience("audience") .build() ); ``` @@ -6599,30 +6471,14 @@ List all groups in your tenant. client.groups().list( ListGroupsRequestParameters .builder() - .connectionId( - OptionalNullable.of("connection_id") - ) - .name( - OptionalNullable.of("name") - ) - .externalId( - OptionalNullable.of("external_id") - ) - .search( - OptionalNullable.of("search") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .connectionId("connection_id") + .name("name") + .externalId("external_id") + .search("search") + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build() ); ``` @@ -6846,24 +6702,12 @@ Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to client.hooks().list( ListHooksRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .enabled( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .triggerId( - OptionalNullable.of(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) .build() ); ``` @@ -7056,9 +6900,7 @@ client.hooks().get( "id", GetHookRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) + .fields("fields") .build() ); ``` @@ -8163,27 +8005,13 @@ Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-event client.logs().list( ListLogsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .sort( - OptionalNullable.of("sort") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .search( - OptionalNullable.of("search") - ) + .page(1) + .perPage(1) + .sort("sort") + .fields("fields") + .includeFields(true) + .includeTotals(true) + .search("search") .build() ); ``` @@ -8349,15 +8177,9 @@ Get all access control list entries for your client. client.networkAcls().list( ListNetworkAclsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -8847,15 +8669,9 @@ To search by checkpoint, use the following parameters: client.organizations().list( ListOrganizationsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .sort( - OptionalNullable.of("sort") - ) + .from("from") + .take(1) + .sort("sort") .build() ); ``` @@ -9409,21 +9225,11 @@ client.prompts().updateSettings( client.rateLimitPolicies().list( ListRateLimitPoliciesRequestParameters .builder() - .resource( - OptionalNullable.of(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) - ) - .consumer( - OptionalNullable.of(RateLimitPolicyConsumerEnum.CLIENT) - ) - .consumerSelector( - OptionalNullable.of("consumer_selector") - ) - .take( - OptionalNullable.of(1) - ) - .from( - OptionalNullable.of("from") - ) + .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) + .consumer(RateLimitPolicyConsumerEnum.CLIENT) + .consumerSelector("consumer_selector") + .take(1) + .from("from") .build() ); ``` @@ -9736,21 +9542,11 @@ client.refreshTokens().list( GetRefreshTokensRequestParameters .builder() .userId("user_id") - .clientId( - OptionalNullable.of("client_id") - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .clientId("client_id") + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -10107,18 +9903,10 @@ Retrieve details of all APIs associated with your tenant. client.resourceServers().list( ListResourceServerRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .includeFields( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .includeFields(true) .identifiers( Arrays.asList("identifiers") ) @@ -10408,9 +10196,7 @@ client.resourceServers().get( "id", GetResourceServerRequestParameters .builder() - .includeFields( - OptionalNullable.of(true) - ) + .includeFields(true) .build() ); ``` @@ -10729,18 +10515,10 @@ Retrieve detailed list of user roles created in your tenant. client.roles().list( ListRolesRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .nameFilter( - OptionalNullable.of("name_filter") - ) + .perPage(1) + .page(1) + .includeTotals(true) + .nameFilter("name_filter") .build() ); ``` @@ -11076,24 +10854,12 @@ Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a lis client.rules().list( ListRulesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .enabled( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -11279,12 +11045,8 @@ client.rules().get( "id", GetRuleRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -11669,15 +11431,9 @@ Retrieves self-service profiles. client.selfServiceProfiles().list( ListSelfServiceProfilesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -12336,12 +12092,8 @@ Retrieve the number of logins, signups and breached-password detections (subscri client.stats().getDaily( GetDailyStatsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .to( - OptionalNullable.of("to") - ) + .from("from") + .to("to") .build() ); ``` @@ -12757,12 +12509,8 @@ This endpoint supports Checkpoint pagination. To search by checkpoint, use the f client.tokenExchangeProfiles().list( TokenExchangeProfilesListRequest .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -13107,12 +12855,8 @@ Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pa client.userAttributeProfiles().list( ListUserAttributeProfileRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -13551,9 +13295,7 @@ client.userBlocks().listByIdentifier( ListUserBlocksByIdentifierRequestParameters .builder() .identifier("identifier") - .considerBruteForceEnablement( - OptionalNullable.of(true) - ) + .considerBruteForceEnablement(true) .build() ); ``` @@ -13687,9 +13429,7 @@ client.userBlocks().list( "id", ListUserBlocksRequestParameters .builder() - .considerBruteForceEnablement( - OptionalNullable.of(true) - ) + .considerBruteForceEnablement(true) .build() ); ``` @@ -13835,36 +13575,16 @@ Auth0 limits the number of users you can return. If you exceed this threshold, p client.users().list( ListUsersRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .sort( - OptionalNullable.of("sort") - ) - .connection( - OptionalNullable.of("connection") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .q( - OptionalNullable.of("q") - ) - .searchEngine( - OptionalNullable.of(SearchEngineVersionsEnum.V1) - ) - .primaryOrder( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .sort("sort") + .connection("connection") + .fields("fields") + .includeFields(true) + .q("q") + .searchEngine(SearchEngineVersionsEnum.V1) + .primaryOrder(true) .build() ); ``` @@ -14189,12 +13909,8 @@ client.users().listUsersByEmail( ListUsersByEmailRequestParameters .builder() .email("email") - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -14270,12 +13986,8 @@ client.users().get( "id", GetUserRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -14828,12 +14540,8 @@ client.actions().versions().list( "actionId", ListActionVersionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -14970,7 +14678,11 @@ Performs the equivalent of a roll-back of an action to an earlier, specified ver client.actions().versions().deploy( "actionId", "id", - OptionalNullable.absent() + OptionalNullable.of( + DeployActionVersionRequestContent + .builder() + .build() + ) ); ``` @@ -15100,12 +14812,8 @@ Retrieve a paginated list of all Actions Modules with optional filtering and tot client.actions().modules().list( GetActionModulesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -15464,12 +15172,8 @@ client.actions().modules().listActions( "id", GetActionModuleActionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -15654,12 +15358,8 @@ client.actions().modules().versions().list( "id", GetActionModuleVersionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -15852,12 +15552,8 @@ client.actions().triggers().bindings().list( ActionTriggerTypeEnum.POST_LOGIN, ListActionTriggerBindingsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -17583,9 +17279,7 @@ Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-mess client.branding().phone().providers().list( ListBrandingPhoneProvidersRequestParameters .builder() - .disabled( - OptionalNullable.of(true) - ) + .disabled(true) .build() ); ``` @@ -17985,9 +17679,7 @@ client.branding().phone().providers().test( client.branding().phone().templates().list( ListPhoneTemplatesRequestParameters .builder() - .disabled( - OptionalNullable.of(true) - ) + .disabled(true) .build() ); ``` @@ -18350,12 +18042,8 @@ client.clientGrants().organizations().list( "id", ListClientGrantOrganizationsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -18874,18 +18562,10 @@ client.clients().connections().get( "id", ConnectionsGetRequest .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .strategy( Arrays.asList(ConnectionStrategyEnum.AD) ) @@ -18988,12 +18668,8 @@ Retrieve a list of directory provisioning configurations of a tenant. client.connections().directoryProvisioning().list( ListDirectoryProvisioningsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -19113,7 +18789,11 @@ Create a directory provisioning configuration for a connection. ```java client.connections().directoryProvisioning().create( "id", - OptionalNullable.absent() + OptionalNullable.of( + CreateDirectoryProvisioningRequestContent + .builder() + .build() + ) ); ``` @@ -19232,7 +18912,11 @@ Update the directory provisioning configuration of a connection. ```java client.connections().directoryProvisioning().update( "id", - OptionalNullable.absent() + OptionalNullable.of( + UpdateDirectoryProvisioningRequestContent + .builder() + .build() + ) ); ``` @@ -19353,12 +19037,8 @@ client.connections().directoryProvisioning().listSynchronizedGroups( "id", ListSynchronizedGroupsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -19509,12 +19189,8 @@ Retrieve a list of SCIM configurations of a tenant. client.connections().scimConfiguration().list( ListScimConfigurationsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -19634,7 +19310,11 @@ Create a scim configuration for a connection. ```java client.connections().scimConfiguration().create( "id", - OptionalNullable.absent() + OptionalNullable.of( + CreateScimConfigurationRequestContent + .builder() + .build() + ) ); ``` @@ -19895,12 +19575,8 @@ client.connections().clients().get( "id", GetConnectionEnabledClientsRequestParameters .builder() - .take( - OptionalNullable.of(1) - ) - .from( - OptionalNullable.of("from") - ) + .take(1) + .from("from") .build() ); ``` @@ -20086,7 +19762,11 @@ Provision initial connection keys for Okta or OIDC connection strategies. This e ```java client.connections().keys().create( "id", - OptionalNullable.absent() + OptionalNullable.of( + PostConnectionKeysRequestContent + .builder() + .build() + ) ); ``` @@ -20151,7 +19831,11 @@ Rotates the connection keys for the Okta or OIDC connection strategies. ```java client.connections().keys().rotate( "id", - OptionalNullable.absent() + OptionalNullable.of( + RotateConnectionKeysRequestContent + .builder() + .build() + ) ); ``` @@ -20534,12 +20218,8 @@ Retrieve details of the [email provider configuration](https://auth0.com/docs/cu client.emails().provider().get( GetEmailProviderRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -20871,24 +20551,12 @@ client.eventStreams().deliveries().list( "id", ListEventStreamDeliveriesRequestParameters .builder() - .statuses( - OptionalNullable.of("statuses") - ) - .eventTypes( - OptionalNullable.of("event_types") - ) - .dateFrom( - OptionalNullable.of("date_from") - ) - .dateTo( - OptionalNullable.of("date_to") - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .statuses("statuses") + .eventTypes("event_types") + .dateFrom("date_from") + .dateTo("date_to") + .from("from") + .take(1) .build() ); ``` @@ -21157,12 +20825,8 @@ client.flows().executions().list( "flow_id", ListFlowExecutionsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -21337,15 +21001,9 @@ client.flows().executions().delete("flow_id", "execution_id"); client.flows().vault().connections().list( ListFlowsVaultConnectionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -21621,18 +21279,10 @@ client.groups().members().get( "id", GetGroupMembersRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build() ); ``` @@ -21725,12 +21375,8 @@ client.groups().roles().list( "id", ListGroupRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -23719,7 +23365,7 @@ client.guardian().factors().sms().setProvider( -
client.guardian.factors.sms.getTemplates() -> GetGuardianFactorSmsTemplatesResponseContent +
client.guardian.factors.sms.getTemplates() -> Optional&lt;GetGuardianFactorSmsTemplatesResponseContent&gt;
@@ -24370,6 +24016,7 @@ Import users from a ## Jobs Errors -
client.jobs.errors.get(id) -> ErrorsGetResponse +
client.jobs.errors.get(id) -> Optional&lt;ErrorsGetResponse&gt;
@@ -24703,15 +24350,9 @@ Retrieve details of all the encryption keys associated with your tenant. client.keys().encryption().list( ListEncryptionKeysRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -25289,21 +24930,11 @@ client.organizations().clientGrants().list( "id", ListOrganizationClientGrantsRequestParameters .builder() - .audience( - OptionalNullable.of("audience") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .audience("audience") + .clientId("client_id") + .page(1) + .perPage(1) + .includeTotals(true) .grantIds( Arrays.asList("grant_ids") ) @@ -25503,18 +25134,10 @@ client.organizations().connections().list( "id", ListOrganizationAllConnectionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .isEnabled( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .isEnabled(true) .build() ); ``` @@ -25908,12 +25531,8 @@ client.organizations().discoveryDomains().list( "id", ListOrganizationDiscoveryDomainsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -26346,15 +25965,9 @@ client.organizations().enabledConnections().list( "id", ListOrganizationConnectionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -26751,24 +26364,12 @@ client.organizations().invitations().list( "id", ListOrganizationInvitationsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .sort( - OptionalNullable.of("sort") - ) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .sort("sort") .build() ); ``` @@ -27007,12 +26608,8 @@ client.organizations().invitations().get( "invitation_id", GetOrganizationInvitationRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -27160,18 +26757,10 @@ client.organizations().members().list( "id", ListOrganizationMembersRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -27392,12 +26981,8 @@ client.organizations().groups().list( "organization_id", ListOrganizationGroupsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -27475,12 +27060,8 @@ client.organizations().groups().roles().list( "group_id", ListOrganizationGroupRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -27724,12 +27305,8 @@ client.organizations().members().effectiveRoles().list( "user_id", ListOrganizationMemberEffectiveRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -27817,15 +27394,9 @@ client.organizations().members().roles().list( "user_id", ListOrganizationMemberRolesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -28082,12 +27653,8 @@ client.organizations().members().effectiveRoles().sources().groups().list( ListOrganizationMemberRoleSourceGroupsRequestParameters .builder() .roleId("role_id") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -28181,18 +27748,10 @@ client.organizations().roles().members().list( "role_id", ListOrganizationRoleMembersRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -28292,30 +27851,14 @@ Get render setting configurations for all screens. client.prompts().rendering().list( ListAculsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .prompt( - OptionalNullable.of("prompt") - ) - .screen( - OptionalNullable.of("screen") - ) - .renderingMode( - OptionalNullable.of(AculRenderingModeEnum.ADVANCED) - ) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .prompt("prompt") + .screen("screen") + .renderingMode(AculRenderingModeEnum.ADVANCED) .build() ); ``` @@ -29136,12 +28679,8 @@ client.roles().groups().get( "id", ListRoleGroupsParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -29358,15 +28897,9 @@ client.roles().permissions().list( "id", ListRolePermissionsRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .perPage(1) + .page(1) + .includeTotals(true) .build() ); ``` @@ -29619,12 +29152,8 @@ client.roles().users().list( "id", ListRoleUsersRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -30123,12 +29652,8 @@ Retrieve tenant settings. A list of fields to include or exclude may also be spe client.tenants().settings().get( GetTenantSettingsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -30595,15 +30120,9 @@ client.users().authenticationMethods().list( "id", ListUserAuthenticationMethodsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -31251,12 +30770,8 @@ client.users().connectedAccounts().list( "id", GetUserConnectedAccountsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -31334,12 +30849,8 @@ client.users().effectivePermissions().list( ListUserEffectivePermissionsRequestParameters .builder() .resourceServerIdentifier("resource_server_identifier") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -31424,12 +30935,8 @@ client.users().effectiveRoles().list( "id", ListUserEffectiveRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -31525,109 +31032,6 @@ client.users().enrollments().get("id");
-
-
-
- -## Users FederatedConnectionsTokensets -
client.users.federatedConnectionsTokensets.list(id) -> List&lt;FederatedConnectionTokenSet&gt; -
-
- -#### 📝 Description - -
-
- -
-
- -List active federated connections tokensets for a provided user -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -client.users().federatedConnectionsTokensets().list("id"); -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — User identifier - -
-
-
-
- - -
-
-
- -
client.users.federatedConnectionsTokensets.delete(id, tokensetId) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -client.users().federatedConnectionsTokensets().delete("id", "tokenset_id"); -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — Id of the user that owns the tokenset - -
-
- -
-
- -**tokensetId:** `String` — The tokenset id - -
-
-
-
- -
@@ -31664,18 +31068,10 @@ client.users().groups().get( "id", GetUserGroupsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build() ); ``` @@ -31966,18 +31362,10 @@ client.users().logs().list( "id", ListUserLogsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .sort( - OptionalNullable.of("sort") - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .sort("sort") + .includeTotals(true) .build() ); ``` @@ -32187,15 +31575,9 @@ client.users().organizations().list( "id", ListUserOrganizationsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -32280,15 +31662,9 @@ client.users().permissions().list( "id", ListUserPermissionsRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .perPage(1) + .page(1) + .includeTotals(true) .build() ); ``` @@ -32607,15 +31983,9 @@ client.users().roles().list( "id", ListUserRolesRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .perPage(1) + .page(1) + .includeTotals(true) .build() ); ``` @@ -32844,12 +32214,8 @@ client.users().refreshToken().list( "user_id", ListRefreshTokensRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -32980,12 +32346,8 @@ client.users().sessions().list( "user_id", ListUserSessionsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -33118,12 +32480,8 @@ client.users().effectivePermissions().sources().roles().list( .builder() .resourceServerIdentifier("resource_server_identifier") .permissionName("permission_name") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -33217,12 +32575,8 @@ client.users().effectiveRoles().sources().groups().list( ListUserRoleSourceGroupsRequestParameters .builder() .roleId("role_id") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -33306,12 +32660,8 @@ List verifiable credential templates. client.verifiableCredentials().verification().templates().list( ListVerifiableCredentialTemplatesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java index a327a57e..61ef6cf5 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -118,6 +119,15 @@ public CompletableFuture>> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -230,6 +243,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -273,6 +295,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -317,6 +342,15 @@ public CompletableFuture> ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -364,6 +398,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -426,6 +463,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -471,6 +517,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -539,6 +588,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -587,6 +645,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -632,6 +693,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -675,6 +745,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -729,6 +802,15 @@ public CompletableFuture> t if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -772,6 +854,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java index 8ad46d30..cae9bf47 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -67,6 +68,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -105,6 +115,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -172,6 +185,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -215,6 +237,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java index 048e3712..ce2be7a5 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -125,6 +126,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -181,6 +191,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -233,6 +246,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -287,6 +309,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -333,6 +358,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -376,6 +410,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -419,6 +456,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -459,6 +505,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -527,6 +576,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -576,6 +634,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java index fe59433f..5690f51c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -235,6 +236,15 @@ public CompletableFuture>> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -295,6 +305,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -373,6 +386,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -426,6 +448,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -482,6 +507,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -531,6 +565,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -603,6 +640,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -652,6 +698,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -816,6 +865,15 @@ public CompletableFuture> ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -863,6 +921,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -906,6 +967,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -946,6 +1016,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1050,6 +1123,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1098,6 +1180,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1147,6 +1232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1196,6 +1290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java index 3d29af88..89882f8b 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -104,6 +105,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -167,6 +177,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -268,6 +290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -311,6 +336,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -350,6 +384,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -395,6 +432,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -439,6 +485,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -483,6 +532,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -527,6 +585,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -570,6 +631,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -605,6 +675,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -673,6 +746,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -722,6 +804,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java index 0497fcb8..2bd6e316 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -171,6 +172,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -233,6 +243,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -287,6 +300,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -336,6 +358,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -404,6 +429,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -452,6 +486,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -497,6 +534,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -537,6 +583,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -609,6 +658,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -663,6 +721,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -707,6 +768,15 @@ public CompletableFuture> checkStatus(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -752,6 +822,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java index 66cbdf8f..e9d1a1d7 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -112,6 +113,15 @@ public CompletableFuture>> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -150,6 +160,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -224,6 +237,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -273,6 +295,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -316,6 +341,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -355,6 +389,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -407,6 +444,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -441,6 +487,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -485,6 +534,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -533,6 +591,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -576,6 +637,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -621,6 +691,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -781,6 +854,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -825,6 +907,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -870,6 +955,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -919,6 +1013,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -972,6 +1069,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1021,6 +1127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java index a2f4a0a7..c7b4298e 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -117,6 +118,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -181,6 +191,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -235,6 +248,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -284,6 +306,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -327,6 +352,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -367,6 +401,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java index 65ea9926..58764508 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -84,6 +85,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -133,6 +143,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -178,6 +191,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -222,6 +244,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -275,6 +300,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -324,6 +358,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -395,6 +432,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -444,6 +490,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java index 96440b1b..80cb5888 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -92,6 +93,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -153,6 +163,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -199,6 +212,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -248,6 +270,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -286,6 +311,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -329,6 +363,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -366,6 +403,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -406,6 +452,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -462,6 +511,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -506,6 +564,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -554,6 +615,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -593,6 +663,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java index 261c6a66..ec0622a7 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.ResponseBodyReader; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.Stream; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); @@ -109,9 +119,10 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ResponseBody responseBody = response.body(); if (response.isSuccessful()) { future.complete(new ManagementApiHttpResponse<>( - Stream.fromSse( + Stream.fromSseWithEventDiscrimination( EventStreamSubscribeEventsResponseContent.class, - new ResponseBodyReader(response)), + new ResponseBodyReader(response), + "type"), response)); return; } @@ -156,6 +167,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java index 78bfab67..15f60c3f 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -204,6 +217,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -247,6 +269,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -299,6 +324,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -346,6 +380,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -383,6 +420,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -428,6 +474,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -484,6 +533,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -527,6 +585,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java index 9594af96..fc42a325 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -93,6 +94,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -154,6 +164,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -200,6 +213,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -243,6 +265,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -295,6 +320,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -342,6 +376,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -379,6 +416,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -419,6 +465,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -475,6 +524,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -513,6 +571,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java index ae7a8460..d7fa57a9 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -117,6 +118,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -175,6 +185,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> get if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -266,6 +288,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -309,6 +334,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -349,6 +383,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java index 27410a0d..ce0eaf4f 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -113,6 +114,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -230,6 +243,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -278,6 +300,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -342,6 +367,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -389,6 +423,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -432,6 +469,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -472,6 +518,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -540,6 +589,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -593,6 +651,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java index fefa3dcc..0ea49cec 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -66,6 +67,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java index b619ac29..31cc2af0 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -209,6 +210,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -252,6 +262,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -618,6 +631,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -666,6 +688,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -950,6 +975,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -993,6 +1027,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1036,6 +1073,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1081,6 +1127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1361,6 +1410,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1404,6 +1462,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java index 1ab0e67d..5843ef52 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -189,6 +190,15 @@ public CompletableFuture>> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -249,6 +259,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -293,6 +306,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -340,6 +362,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java index 2accd174..0d9c18e3 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -103,6 +104,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -217,6 +230,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -311,6 +336,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -354,6 +388,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -407,6 +444,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -455,6 +501,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -498,6 +547,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -543,6 +601,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -611,6 +672,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -660,6 +730,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java index 4a008614..e731a3d4 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -159,6 +160,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -220,6 +230,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -272,6 +285,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -321,6 +343,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -365,6 +390,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -414,6 +448,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -458,6 +495,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -506,6 +552,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -551,6 +600,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -596,6 +654,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -664,6 +725,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -708,6 +778,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java index 908370e5..b4ecb8ab 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -106,6 +116,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -173,6 +186,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -216,6 +238,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java index 6cc104b2..87f9b4f6 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -165,6 +175,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -211,6 +224,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -260,6 +282,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -298,6 +323,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -342,6 +376,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -379,6 +416,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -419,6 +465,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -466,6 +515,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -515,6 +573,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java index c2cef620..2ff01bec 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -98,6 +99,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -229,6 +242,15 @@ public CompletableFuture> revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -269,6 +291,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -313,6 +338,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -404,6 +441,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -444,6 +490,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -512,6 +561,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -561,6 +619,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java index ffd130f3..39aea349 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -110,6 +111,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -173,6 +183,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -225,6 +238,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -274,6 +296,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -338,6 +363,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -387,6 +421,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -430,6 +467,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -470,6 +516,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -538,6 +587,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -587,6 +645,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java index f400749a..aab7c44e 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -108,6 +109,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -222,6 +235,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -270,6 +292,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -314,6 +339,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -404,6 +441,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -449,6 +495,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -517,6 +566,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -560,6 +618,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java index 16bafce4..06aa5cad 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -113,6 +114,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -232,6 +245,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -280,6 +302,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -348,6 +373,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -395,6 +429,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -438,6 +475,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -478,6 +524,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -546,6 +595,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -599,6 +657,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java index 43c04f64..1a910b09 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -72,6 +73,15 @@ public CompletableFuture>> list(Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -110,6 +120,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -163,6 +176,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -201,6 +223,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -244,6 +269,15 @@ public CompletableFuture> delete(String key, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -279,6 +313,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java index d6431aac..be0715d9 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -218,6 +231,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -272,6 +294,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -316,6 +341,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -370,6 +404,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -413,6 +450,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -458,6 +504,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -526,6 +575,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -580,6 +638,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java index e439fd36..a514ff73 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -70,6 +71,15 @@ public CompletableFuture> g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -156,6 +169,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -196,6 +218,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -264,6 +289,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -312,6 +346,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -356,6 +393,15 @@ public CompletableFuture> revoke(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -401,6 +447,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java index c1781c4a..7674453d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -67,6 +68,15 @@ public CompletableFuture> getActiveUsersCount( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -103,6 +113,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -168,6 +181,15 @@ public CompletableFuture>> getDaily( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -211,6 +233,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java index 53dbc741..84eca523 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -112,6 +122,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -164,6 +177,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -208,6 +230,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java index 48fac7d3..88b2914e 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -79,6 +80,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -128,6 +138,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -199,6 +212,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -248,6 +270,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java index dadc0c7d..4e6df64a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -130,6 +131,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -191,6 +201,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -245,6 +258,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -294,6 +316,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -340,6 +365,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -389,6 +423,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -434,6 +471,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -469,6 +515,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -540,6 +589,15 @@ public CompletableFuture> update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -590,6 +648,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java index 89f7363a..d2e345db 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -104,6 +105,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -167,6 +177,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -268,6 +290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -312,6 +337,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -351,6 +385,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -396,6 +433,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -440,6 +486,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -484,6 +533,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -528,6 +586,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -571,6 +632,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -606,6 +676,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -674,6 +747,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -723,6 +805,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java index 0fe4b306..9cb228eb 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -79,6 +80,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -123,6 +133,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -170,6 +183,15 @@ public CompletableFuture> deleteByIdentifier( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -210,6 +232,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -277,6 +302,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -325,6 +359,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -370,6 +407,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -415,6 +461,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java index 0b1584e3..7c013bee 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -104,6 +105,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -160,6 +170,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -205,6 +218,15 @@ public CompletableFuture> deleteByUserId( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -240,6 +262,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -283,6 +308,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -318,6 +352,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java index fdca458b..8443f782 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -174,6 +175,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -241,6 +251,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -295,6 +308,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -343,6 +365,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -400,6 +425,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -443,6 +477,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -511,6 +548,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -558,6 +604,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -601,6 +650,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -641,6 +699,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -985,6 +1046,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1033,6 +1103,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1079,6 +1152,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1123,6 +1205,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1191,6 +1276,15 @@ public CompletableFuture> revokeAccess( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1231,6 +1325,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java index 76e96bd0..9e924073 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java @@ -24,7 +24,6 @@ import com.auth0.client.mgmt.users.AsyncEffectivePermissionsClient; import com.auth0.client.mgmt.users.AsyncEffectiveRolesClient; import com.auth0.client.mgmt.users.AsyncEnrollmentsClient; -import com.auth0.client.mgmt.users.AsyncFederatedConnectionsTokensetsClient; import com.auth0.client.mgmt.users.AsyncGroupsClient; import com.auth0.client.mgmt.users.AsyncIdentitiesClient; import com.auth0.client.mgmt.users.AsyncLogsClient; @@ -56,8 +55,6 @@ public class AsyncUsersClient { protected final Supplier enrollmentsClient; - protected final Supplier federatedConnectionsTokensetsClient; - protected final Supplier groupsClient; protected final Supplier identitiesClient; @@ -87,8 +84,6 @@ public AsyncUsersClient(ClientOptions clientOptions) { this.effectivePermissionsClient = Suppliers.memoize(() -> new AsyncEffectivePermissionsClient(clientOptions)); this.effectiveRolesClient = Suppliers.memoize(() -> new AsyncEffectiveRolesClient(clientOptions)); this.enrollmentsClient = Suppliers.memoize(() -> new AsyncEnrollmentsClient(clientOptions)); - this.federatedConnectionsTokensetsClient = - Suppliers.memoize(() -> new AsyncFederatedConnectionsTokensetsClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions)); this.identitiesClient = Suppliers.memoize(() -> new AsyncIdentitiesClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new AsyncLogsClient(clientOptions)); @@ -629,10 +624,6 @@ public AsyncEnrollmentsClient enrollments() { return this.enrollmentsClient.get(); } - public AsyncFederatedConnectionsTokensetsClient federatedConnectionsTokensets() { - return this.federatedConnectionsTokensetsClient.get(); - } - public AsyncGroupsClient groups() { return this.groupsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java index 129ef118..a3594fc5 100644 --- a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -111,6 +112,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -151,6 +161,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -194,6 +206,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -223,6 +244,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +281,15 @@ public ManagementApiHttpResponse get(String id, Reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -290,6 +322,8 @@ public ManagementApiHttpResponse get(String id, Reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -344,6 +378,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -374,6 +417,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -433,6 +478,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -465,6 +519,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -501,6 +557,15 @@ public ManagementApiHttpResponse deploy(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -530,6 +595,8 @@ public ManagementApiHttpResponse deploy(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -575,6 +642,15 @@ public ManagementApiHttpResponse test( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -604,6 +680,8 @@ public ManagementApiHttpResponse test( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java index ecba10b1..e775ef15 100644 --- a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get(RequestOptions if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -89,6 +99,8 @@ public ManagementApiHttpResponse get(RequestOptions Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -146,6 +158,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -175,6 +196,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java index f49048a0..e9b648f7 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -120,6 +121,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -158,6 +168,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +213,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -236,6 +257,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -273,6 +296,15 @@ public ManagementApiHttpResponse get(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -302,6 +334,8 @@ public ManagementApiHttpResponse get(String id, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -337,6 +371,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -364,6 +407,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -424,6 +469,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -456,6 +510,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java index 57166ae3..8daab136 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -228,6 +229,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -268,6 +278,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -337,6 +349,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -372,6 +393,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -420,6 +443,15 @@ public ManagementApiHttpResponse previewCimd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -453,6 +485,8 @@ public ManagementApiHttpResponse previewCimd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -517,6 +551,15 @@ public ManagementApiHttpResponse registerCimd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -550,6 +593,8 @@ public ManagementApiHttpResponse registerCimd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -704,6 +749,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -736,6 +790,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -771,6 +827,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -798,6 +863,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -893,6 +960,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -925,6 +1001,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -966,6 +1044,15 @@ public ManagementApiHttpResponse rotateSecret if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -999,6 +1086,8 @@ public ManagementApiHttpResponse rotateSecret Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java index ccc09694..a83cd770 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -216,6 +237,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -251,6 +274,15 @@ public ManagementApiHttpResponse l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -278,6 +310,8 @@ public ManagementApiHttpResponse l Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -314,6 +348,15 @@ public ManagementApiHttpResponse ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -344,6 +387,8 @@ public ManagementApiHttpResponse ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -380,6 +425,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -410,6 +464,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -445,6 +501,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -469,6 +534,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -529,6 +596,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -562,6 +638,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java index 2b70a36d..5919c8e3 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -165,6 +166,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -205,6 +215,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -250,6 +262,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -282,6 +303,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -341,6 +364,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -373,6 +405,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -410,6 +444,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -437,6 +480,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -500,6 +545,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -535,6 +589,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -571,6 +627,15 @@ public ManagementApiHttpResponse checkStatus(String id, RequestOptions req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -601,6 +666,8 @@ public ManagementApiHttpResponse checkStatus(String id, RequestOptions req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java index d2da627b..cf8dbf88 100644 --- a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -200,6 +212,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -233,6 +254,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -267,6 +290,15 @@ public ManagementApiHttpResponse getDefault(Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -293,6 +325,8 @@ public ManagementApiHttpResponse getDefault(Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -337,6 +371,15 @@ public ManagementApiHttpResponse setDefault( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -361,6 +404,8 @@ public ManagementApiHttpResponse setDefault( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -396,6 +441,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -428,6 +482,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -463,6 +519,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -493,6 +558,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -645,6 +712,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -675,6 +751,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -711,6 +789,15 @@ public ManagementApiHttpResponse test(String id if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -743,6 +830,8 @@ public ManagementApiHttpResponse test(String id Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -788,6 +877,15 @@ public ManagementApiHttpResponse verify( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -821,6 +919,8 @@ public ManagementApiHttpResponse verify( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java index 0c09b3c5..8c661033 100644 --- a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -111,6 +112,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -153,6 +163,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -199,6 +211,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -232,6 +253,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -267,6 +290,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -294,6 +326,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java index 28517957..4b0dead3 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -80,6 +81,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -113,6 +123,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -149,6 +161,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -178,6 +199,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -223,6 +246,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -255,6 +287,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -317,6 +351,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -350,6 +393,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java index 2b3c0ddb..175b774b 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -87,6 +88,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -128,6 +138,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -165,6 +177,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -197,6 +218,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -226,6 +249,15 @@ public ManagementApiHttpResponse get(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -255,6 +287,8 @@ public ManagementApiHttpResponse get(String id, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -284,6 +318,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -311,6 +354,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -359,6 +404,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -388,6 +442,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -428,6 +484,15 @@ public ManagementApiHttpResponse test if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -455,6 +520,8 @@ public ManagementApiHttpResponse test Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawEventsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventsClient.java index 63ec6d1d..f40a3dd0 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEventsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEventsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.ResponseBodyReader; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.Stream; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,14 +95,25 @@ public ManagementApiHttpResponse( - Stream.fromSse( - EventStreamSubscribeEventsResponseContent.class, new ResponseBodyReader(response)), + Stream.fromSseWithEventDiscrimination( + EventStreamSubscribeEventsResponseContent.class, + new ResponseBodyReader(response), + "type"), response); } String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -132,6 +144,8 @@ EventStreamSubscribeEventsResponseContent.class, new ResponseBodyReader(response Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java index 4ec62d73..7a0eec1a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -90,6 +91,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -130,6 +140,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -167,6 +179,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -196,6 +217,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -238,6 +261,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -270,6 +302,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -299,6 +333,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -329,6 +372,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -375,6 +420,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -404,6 +458,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java index c3c05bbc..247f46d4 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -86,6 +87,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -126,6 +136,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -163,6 +175,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -192,6 +213,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -234,6 +257,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -266,6 +298,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -295,6 +329,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -322,6 +365,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -368,6 +413,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -394,6 +448,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java index ecaac54a..9c75aa17 100644 --- a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -111,6 +112,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -185,6 +197,15 @@ public ManagementApiHttpResponse get(String id, Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -217,6 +238,8 @@ public ManagementApiHttpResponse get(String id, Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -252,6 +275,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -279,6 +311,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java index 72b6530a..1b7b517c 100644 --- a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -193,6 +205,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -225,6 +246,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -279,6 +302,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -311,6 +343,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -346,6 +380,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -373,6 +416,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -431,6 +476,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -466,6 +520,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java index cd2881e4..c6f8a2a6 100644 --- a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -61,6 +62,15 @@ public ManagementApiHttpResponse get(String id, RequestOp if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -92,6 +102,8 @@ public ManagementApiHttpResponse get(String id, RequestOp Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java index 3f4e1e45..a9d57c81 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -204,6 +205,15 @@ public ManagementApiHttpResponse> list(RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -234,6 +244,8 @@ public ManagementApiHttpResponse> list(RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -591,6 +603,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -623,6 +644,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -898,6 +921,15 @@ public ManagementApiHttpResponse get(String id, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -927,6 +959,8 @@ public ManagementApiHttpResponse get(String id, Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -962,6 +996,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -992,6 +1035,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -1263,6 +1308,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -1292,6 +1346,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java index 43bc0ee0..44a020ff 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -183,6 +184,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -223,6 +233,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +270,15 @@ public ManagementApiHttpResponse get(String id, RequestOp if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -289,6 +310,8 @@ public ManagementApiHttpResponse get(String id, RequestOp Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java index 92638f1d..c07135b1 100644 --- a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -182,6 +194,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -215,6 +236,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -250,6 +273,15 @@ public ManagementApiHttpResponse get(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -279,6 +311,8 @@ public ManagementApiHttpResponse get(String id, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -324,6 +358,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -356,6 +399,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -391,6 +436,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -421,6 +475,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -480,6 +536,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -512,6 +577,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java index 89a83f9d..09bb80b3 100644 --- a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -153,6 +154,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -193,6 +203,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -237,6 +249,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -270,6 +291,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -306,6 +329,15 @@ public ManagementApiHttpResponse getByName if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -339,6 +371,8 @@ public ManagementApiHttpResponse getByName Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -374,6 +408,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -406,6 +449,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -443,6 +488,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -473,6 +527,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -533,6 +589,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -563,6 +628,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java index 6313099a..d0ad4797 100644 --- a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse getSettings(Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -89,6 +99,8 @@ public ManagementApiHttpResponse getSettings(Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -147,6 +159,15 @@ public ManagementApiHttpResponse updateSettings( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -176,6 +197,8 @@ public ManagementApiHttpResponse updateSettings( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java index 0ba0552c..77e264c3 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -175,6 +187,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -208,6 +229,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -237,6 +260,15 @@ public ManagementApiHttpResponse get(String i if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -267,6 +299,8 @@ public ManagementApiHttpResponse get(String i Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -296,6 +330,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -323,6 +366,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -362,6 +407,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -395,6 +449,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java index d0ce8164..826dc6f2 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -93,6 +94,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -194,6 +206,15 @@ public ManagementApiHttpResponse revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -221,6 +242,8 @@ public ManagementApiHttpResponse revoke( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -256,6 +279,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -288,6 +320,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -323,6 +357,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -350,6 +393,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -410,6 +455,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -443,6 +497,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java index 2f53ba67..f4f448e1 100644 --- a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -104,6 +105,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -145,6 +155,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -189,6 +201,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -222,6 +243,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -277,6 +300,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -309,6 +341,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -344,6 +378,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -371,6 +414,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -431,6 +476,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -464,6 +518,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java index abd6e4d3..c5a37c59 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -142,6 +152,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -187,6 +199,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -219,6 +240,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -254,6 +277,15 @@ public ManagementApiHttpResponse get(String id, RequestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -286,6 +318,8 @@ public ManagementApiHttpResponse get(String id, RequestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -321,6 +355,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -351,6 +394,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -409,6 +454,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -438,6 +492,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java index 94cf975d..014e1825 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -195,6 +207,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -227,6 +248,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -285,6 +308,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -317,6 +349,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -352,6 +386,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -379,6 +422,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -437,6 +482,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -472,6 +526,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java index 3796bcc5..43f22d65 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -68,6 +69,15 @@ public ManagementApiHttpResponse> list(RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -95,6 +105,8 @@ public ManagementApiHttpResponse> list(RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -140,6 +152,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -166,6 +187,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +224,15 @@ public ManagementApiHttpResponse delete(String key, RequestOptions request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -225,6 +257,8 @@ public ManagementApiHttpResponse delete(String key, RequestOptions request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java index 42f5cb52..13e517d1 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -182,6 +194,15 @@ public ManagementApiHttpResponse create if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -218,6 +239,8 @@ public ManagementApiHttpResponse create Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -254,6 +277,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -290,6 +322,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -325,6 +359,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -355,6 +398,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -415,6 +460,15 @@ public ManagementApiHttpResponse update if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -451,6 +505,8 @@ public ManagementApiHttpResponse update Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java index 24d00366..20439bb5 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -65,6 +66,15 @@ public ManagementApiHttpResponse get(String id, Reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(String id, Reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -129,6 +141,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -156,6 +177,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -215,6 +238,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -247,6 +279,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -283,6 +317,15 @@ public ManagementApiHttpResponse revoke(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -313,6 +356,8 @@ public ManagementApiHttpResponse revoke(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java index f218abd2..9c86a3d4 100644 --- a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse getActiveUsersCount(RequestOptions requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -88,6 +98,8 @@ public ManagementApiHttpResponse getActiveUsersCount(RequestOptions requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -144,6 +156,15 @@ public ManagementApiHttpResponse> getDaily( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -174,6 +195,8 @@ public ManagementApiHttpResponse> getDaily( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java index 790db11a..2420a306 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get(Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse get(Requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -137,6 +149,15 @@ public ManagementApiHttpResponse patch( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -167,6 +188,8 @@ public ManagementApiHttpResponse patch( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java index c8455c63..98f953f8 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -75,6 +76,15 @@ public ManagementApiHttpResponse verifyEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -107,6 +117,8 @@ public ManagementApiHttpResponse verifyEmail( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -170,6 +182,15 @@ public ManagementApiHttpResponse changePass if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -203,6 +224,8 @@ public ManagementApiHttpResponse changePass Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java index d3cbd646..88165e29 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -124,6 +125,15 @@ public ManagementApiHttpResponse crea if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -244,6 +265,8 @@ public ManagementApiHttpResponse crea Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -282,6 +305,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -315,6 +347,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -352,6 +386,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -376,6 +419,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -438,6 +483,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -471,6 +525,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java index 5a9848c8..20da040e 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -140,6 +150,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -184,6 +196,15 @@ public ManagementApiHttpResponse crea if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -217,6 +238,8 @@ public ManagementApiHttpResponse crea Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -252,6 +275,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -345,6 +388,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -381,6 +426,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -411,6 +465,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -446,6 +502,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -470,6 +535,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -530,6 +597,15 @@ public ManagementApiHttpResponse upda if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -563,6 +639,8 @@ public ManagementApiHttpResponse upda Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java index 51ede97e..7f57c7b5 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -75,6 +76,15 @@ public ManagementApiHttpResponse list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -105,6 +115,8 @@ public ManagementApiHttpResponse list Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -143,6 +155,15 @@ public ManagementApiHttpResponse deleteByIdentifier( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -170,6 +191,8 @@ public ManagementApiHttpResponse deleteByIdentifier( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -228,6 +251,15 @@ public ManagementApiHttpResponse list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -260,6 +292,8 @@ public ManagementApiHttpResponse list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -297,6 +331,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -327,6 +370,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java index 9388cba8..a226a687 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -97,6 +98,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -170,6 +182,15 @@ public ManagementApiHttpResponse deleteByUserId( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -194,6 +215,8 @@ public ManagementApiHttpResponse deleteByUserId( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -229,6 +252,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -253,6 +285,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java index 7e986d6b..1ab2f0ad 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -167,6 +168,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -210,6 +220,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -255,6 +267,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -287,6 +308,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -336,6 +359,15 @@ public ManagementApiHttpResponse> listUsersByEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -366,6 +398,8 @@ public ManagementApiHttpResponse> listUsersByEmail( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -424,6 +458,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -456,6 +499,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -491,6 +536,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -518,6 +572,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -852,6 +908,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -884,6 +949,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -921,6 +988,15 @@ public ManagementApiHttpResponse reg if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -951,6 +1027,8 @@ public ManagementApiHttpResponse reg Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -1010,6 +1088,15 @@ public ManagementApiHttpResponse revokeAccess( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -1037,6 +1124,8 @@ public ManagementApiHttpResponse revokeAccess( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/UsersClient.java b/src/main/java/com/auth0/client/mgmt/UsersClient.java index 9efeaaa6..0d9cf59d 100644 --- a/src/main/java/com/auth0/client/mgmt/UsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/UsersClient.java @@ -24,7 +24,6 @@ import com.auth0.client.mgmt.users.EffectivePermissionsClient; import com.auth0.client.mgmt.users.EffectiveRolesClient; import com.auth0.client.mgmt.users.EnrollmentsClient; -import com.auth0.client.mgmt.users.FederatedConnectionsTokensetsClient; import com.auth0.client.mgmt.users.GroupsClient; import com.auth0.client.mgmt.users.IdentitiesClient; import com.auth0.client.mgmt.users.LogsClient; @@ -55,8 +54,6 @@ public class UsersClient { protected final Supplier enrollmentsClient; - protected final Supplier federatedConnectionsTokensetsClient; - protected final Supplier groupsClient; protected final Supplier identitiesClient; @@ -86,8 +83,6 @@ public UsersClient(ClientOptions clientOptions) { this.effectivePermissionsClient = Suppliers.memoize(() -> new EffectivePermissionsClient(clientOptions)); this.effectiveRolesClient = Suppliers.memoize(() -> new EffectiveRolesClient(clientOptions)); this.enrollmentsClient = Suppliers.memoize(() -> new EnrollmentsClient(clientOptions)); - this.federatedConnectionsTokensetsClient = - Suppliers.memoize(() -> new FederatedConnectionsTokensetsClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions)); this.identitiesClient = Suppliers.memoize(() -> new IdentitiesClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new LogsClient(clientOptions)); @@ -624,10 +619,6 @@ public EnrollmentsClient enrollments() { return this.enrollmentsClient.get(); } - public FederatedConnectionsTokensetsClient federatedConnectionsTokensets() { - return this.federatedConnectionsTokensetsClient.get(); - } - public GroupsClient groups() { return this.groupsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java index a04c39b7..738bd030 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -66,6 +67,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -115,6 +125,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java index 1ef05d17..693349cf 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java @@ -16,6 +16,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -105,6 +106,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -167,6 +177,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -268,6 +290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -312,6 +337,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -403,6 +440,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -453,6 +499,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -521,6 +570,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -575,6 +633,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -639,6 +700,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -707,6 +777,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -761,6 +834,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -815,6 +897,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java index ba19838e..1b9df86a 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -108,6 +118,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java index 091fd31a..d4df7348 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -161,6 +171,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -208,6 +221,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -257,6 +279,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -335,6 +360,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -379,6 +413,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java index 33f89ebd..28f7430f 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -61,6 +62,15 @@ public ManagementApiHttpResponse get(String i if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(String i Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java index ec533552..bfc967ba 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java @@ -16,6 +16,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -99,6 +100,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -216,6 +237,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -251,6 +274,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -283,6 +315,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -318,6 +352,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -351,6 +394,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -411,6 +456,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -447,6 +501,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -503,6 +559,15 @@ public ManagementApiHttpResponse> listAct if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -546,6 +611,8 @@ public ManagementApiHttpResponse> listAct Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -592,6 +659,15 @@ public ManagementApiHttpResponse rollback( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -628,6 +704,8 @@ public ManagementApiHttpResponse rollback( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java index 2a673f3e..0ce7351c 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -59,6 +60,15 @@ public ManagementApiHttpResponse list(Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -89,6 +99,8 @@ public ManagementApiHttpResponse list(Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java index 21866d53..bfcc8862 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -172,6 +184,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -204,6 +225,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -273,6 +296,15 @@ public ManagementApiHttpResponse deploy( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -303,6 +335,8 @@ public ManagementApiHttpResponse deploy( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java index b22e064a..cf6b71d8 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -211,6 +224,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -265,6 +287,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -312,6 +337,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java index 764b3014..d0201705 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -93,6 +94,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -174,6 +186,15 @@ public ManagementApiHttpResponse creat if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -210,6 +231,8 @@ public ManagementApiHttpResponse creat Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -248,6 +271,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -281,6 +313,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java index 4faeaf1b..5ccb8f20 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.modules.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetActionModuleVersionsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return The maximum number of results to be returned by the server in a single response. 20 by default. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java index e1984a1d..00a1c5d4 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -165,6 +175,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -239,6 +252,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -283,6 +305,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java index 16b42598..974df02f 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -202,6 +214,15 @@ public ManagementApiHttpResponse updateMany if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -232,6 +253,8 @@ public ManagementApiHttpResponse updateMany Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java index acd2c1d2..1aee9807 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.triggers.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private ListActionTriggerBindingsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return The maximum number of results to be returned in a single request. 20 by default */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java index 8a8359a2..10c659a2 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java @@ -220,7 +220,6 @@ public Builder from(CreateActionModuleRequestContent other) { } /** - *

The name of the action module.

*

The name of the action module.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -232,7 +231,6 @@ public CodeStage name(@NotNull String name) { } /** - *

The source code of the action module.

*

The source code of the action module.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java index d827711c..de37eaad 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetActionModuleActionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java index c82de9ca..d63dc95c 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetActionModulesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Paging is disabled if parameter not sent. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java index cf233fb5..3ce89343 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private ListActionVersionsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return This field specify the maximum number of results to be returned by the server. 20 by default */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java index 987bbffb..01a1e104 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java @@ -99,7 +99,6 @@ public Builder from(RollbackActionModuleRequestParameters other) { } /** - *

The unique ID of the module version to roll back to.

*

The unique ID of the module version to roll back to.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java index 81042106..9247048b 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public CompletableFuture> checkIp(String id, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -109,6 +119,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -152,6 +165,15 @@ public CompletableFuture> unblockIp(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -192,6 +214,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java index 4622565c..3c9e335c 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -60,6 +61,15 @@ public ManagementApiHttpResponse checkIp(String id, RequestOptions request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -90,6 +100,8 @@ public ManagementApiHttpResponse checkIp(String id, RequestOptions request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -125,6 +137,15 @@ public ManagementApiHttpResponse unblockIp(String id, RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -152,6 +173,8 @@ public ManagementApiHttpResponse unblockIp(String id, RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java index f86083c2..cf8cf67d 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -180,6 +193,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -229,6 +251,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java index 8ba08db8..4d184bdc 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -177,6 +190,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -222,6 +244,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java index 1ed0a082..f3a5723a 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -174,6 +187,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -218,6 +240,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java index 97ee3000..1701bc99 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -112,6 +122,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -179,6 +192,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -223,6 +245,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java index 97d18217..eb1ebd32 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -112,6 +122,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -164,6 +177,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -203,6 +225,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java index 22e6cad8..a6cf3e1c 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -176,6 +189,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -220,6 +242,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java index d098bc9f..3612203c 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get(Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse upda if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -185,6 +206,8 @@ public ManagementApiHttpResponse upda Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java index 07cca9b0..e1a72ece 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get(Reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -90,6 +100,8 @@ public ManagementApiHttpResponse get(Reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -148,6 +160,15 @@ public ManagementApiHttpResponse update if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -178,6 +199,8 @@ public ManagementApiHttpResponse update Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java index dcc0b062..88f364a7 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -182,6 +203,8 @@ public ManagementApiHttpResponse u Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java index 16f5329d..aef7020d 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -137,6 +149,15 @@ public ManagementApiHttpResponse pa if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -164,6 +185,8 @@ public ManagementApiHttpResponse pa Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java index d4f349a6..9eb01b9f 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -199,6 +212,15 @@ public CompletableFuture> updateUniversalLogin( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -249,6 +271,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -285,6 +310,15 @@ public CompletableFuture> deleteUniversalLogin(R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -325,6 +359,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java index 405a64b2..2a007542 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -131,6 +141,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -174,6 +187,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -218,6 +240,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -262,6 +287,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -306,6 +340,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -349,6 +386,15 @@ public CompletableFuture> delete(String themeId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -389,6 +435,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -442,6 +491,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -491,6 +549,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java index 7e1502ef..2fcb7f8e 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -60,6 +61,15 @@ public ManagementApiHttpResponse getUn if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse getUn Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -170,6 +182,15 @@ public ManagementApiHttpResponse updateUniversalLogin( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -203,6 +224,8 @@ public ManagementApiHttpResponse updateUniversalLogin( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -231,6 +254,15 @@ public ManagementApiHttpResponse deleteUniversalLogin(RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -258,6 +290,8 @@ public ManagementApiHttpResponse deleteUniversalLogin(RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java b/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java index 8b9de65b..a98bba13 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -78,6 +79,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -111,6 +121,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -145,6 +157,15 @@ public ManagementApiHttpResponse getDefa if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -175,6 +196,8 @@ public ManagementApiHttpResponse getDefa Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -211,6 +234,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -240,6 +272,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -275,6 +309,15 @@ public ManagementApiHttpResponse delete(String themeId, RequestOptions req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -302,6 +345,8 @@ public ManagementApiHttpResponse delete(String themeId, RequestOptions req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -347,6 +392,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -380,6 +434,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java index 820cee52..65d4a6f6 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -141,6 +151,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -195,6 +208,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -244,6 +266,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -288,6 +313,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -337,6 +371,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -380,6 +417,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -420,6 +466,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -492,6 +541,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -546,6 +604,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -594,6 +655,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -648,6 +718,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java index ed944f78..2b3b6654 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -87,6 +88,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -131,6 +141,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -186,6 +199,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -235,6 +257,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -273,6 +298,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -322,6 +356,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -359,6 +396,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -404,6 +450,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -460,6 +509,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -509,6 +567,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -557,6 +618,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -601,6 +671,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -649,6 +722,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -698,6 +780,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java index a057218b..4590a0ea 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -122,6 +132,8 @@ public ManagementApiHttpResponse list Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -168,6 +180,15 @@ public ManagementApiHttpResponse cre if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -201,6 +222,8 @@ public ManagementApiHttpResponse cre Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -237,6 +260,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -270,6 +302,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -305,6 +339,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -332,6 +375,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -396,6 +441,15 @@ public ManagementApiHttpResponse upd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -432,6 +486,8 @@ public ManagementApiHttpResponse upd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -472,6 +528,15 @@ public ManagementApiHttpResponse tes if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -508,6 +573,8 @@ public ManagementApiHttpResponse tes Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java index 97658358..4c9b5467 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public ManagementApiHttpResponse list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -112,6 +122,8 @@ public ManagementApiHttpResponse list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -158,6 +170,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -191,6 +212,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -220,6 +243,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -252,6 +284,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -281,6 +315,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -311,6 +354,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -359,6 +404,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -392,6 +446,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -432,6 +488,15 @@ public ManagementApiHttpResponse reset( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -462,6 +527,8 @@ public ManagementApiHttpResponse reset( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -502,6 +569,15 @@ public ManagementApiHttpResponseThe recipient phone number to receive a given notification.

*

The recipient phone number to receive a given notification.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java index fc07009b..33850148 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java @@ -126,7 +126,6 @@ public Builder from(CreatePhoneTemplateTestNotificationRequestContent other) { } /** - *

Destination of the testing phone notification

*

Destination of the testing phone notification

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java index 2d1dfa6d..0ecc30f2 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.branding.phone.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -35,7 +36,8 @@ private ListBrandingPhoneProvidersRequestParameters( /** * @return Whether the provider is enabled (false) or disabled (true). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") public OptionalNullable getDisabled() { if (disabled == null) { return OptionalNullable.absent(); @@ -43,6 +45,12 @@ public OptionalNullable getDisabled() { return disabled; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") + private OptionalNullable _getDisabled() { + return disabled; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java index 30200d25..93eabbfa 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.branding.phone.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -35,7 +36,8 @@ private ListPhoneTemplatesRequestParameters( /** * @return Whether the template is enabled (false) or disabled (true). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") public OptionalNullable getDisabled() { if (disabled == null) { return OptionalNullable.absent(); @@ -43,6 +45,12 @@ public OptionalNullable getDisabled() { return disabled; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") + private OptionalNullable _getDisabled() { + return disabled; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7e3cc9b3..ae436b51 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -84,6 +85,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -152,6 +162,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 c7a26bd4..3037d605 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -78,6 +79,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -123,6 +133,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java index 62f321ec..be8f7751 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.clientgrants.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListClientGrantOrganizationsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java index 9c7bf326..e8083c47 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -123,6 +124,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -188,6 +198,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java index 2db33b12..1a445153 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -78,6 +79,15 @@ public CompletableFuture>> list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -121,6 +131,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -255,6 +268,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -304,6 +326,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -353,6 +378,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -397,6 +431,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -443,6 +480,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -483,6 +529,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -564,6 +613,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -613,6 +671,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java index 09cce963..2f02e497 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -118,6 +119,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -161,6 +171,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java index ce2d0262..dfdc846d 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse> list(String clientId, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -103,6 +113,8 @@ public ManagementApiHttpResponse> list(String clientId, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -229,6 +241,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -262,6 +283,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -302,6 +325,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -332,6 +364,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -369,6 +403,15 @@ public ManagementApiHttpResponse delete(String clientId, String credential if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -396,6 +439,8 @@ public ManagementApiHttpResponse delete(String clientId, String credential Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -469,6 +514,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -502,6 +556,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java index e668020d..6364a588 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java +++ b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.clients.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.ConnectionStrategyEnum; @@ -11,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -66,7 +68,8 @@ public Optional> getStrategy() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -77,7 +80,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -88,7 +92,8 @@ public OptionalNullable getTake() { /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -99,7 +104,8 @@ public OptionalNullable getFields() { /** * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -107,6 +113,36 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("strategy") + private Optional> _getStrategy() { + return strategy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java index b703a6e3..a6eb60d6 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -261,6 +283,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java index 5cc77c53..5d947ecb 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -213,6 +226,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -262,6 +284,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -336,6 +361,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -390,6 +424,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -434,6 +471,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -479,6 +525,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -553,6 +602,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -602,6 +660,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -649,6 +710,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -699,6 +769,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -770,6 +843,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -836,6 +918,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -891,6 +976,15 @@ public CompletableFuture> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -941,6 +1035,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java index a779cf9d..42666920 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -77,6 +78,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -125,6 +135,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -198,6 +211,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -253,6 +275,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -326,6 +351,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -375,6 +409,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java index f67aa36f..2b794ce1 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -163,6 +173,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -208,6 +221,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -242,6 +264,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -314,6 +339,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -348,6 +382,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -392,6 +429,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -422,6 +468,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -476,6 +525,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -510,6 +568,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -557,6 +618,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -591,6 +661,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 3e6a44b9..0f7fec1f 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -70,6 +71,15 @@ public CompletableFuture> deleteByEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -115,6 +125,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java index 20433e63..2ba7bf91 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public ManagementApiHttpResponse> ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -141,6 +151,8 @@ public ManagementApiHttpResponse> ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -181,6 +193,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -211,6 +232,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java index f91bcb49..4c30b1a0 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -101,6 +102,15 @@ public ManagementApiHttpResponse> list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -142,6 +152,8 @@ public ManagementApiHttpResponse> list Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -179,6 +191,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -212,6 +233,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -278,6 +301,15 @@ public ManagementApiHttpResponse cre if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -314,6 +346,8 @@ public ManagementApiHttpResponse cre Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -350,6 +384,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -380,6 +423,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -446,6 +491,15 @@ public ManagementApiHttpResponse upd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -479,6 +533,8 @@ public ManagementApiHttpResponse upd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -518,6 +574,15 @@ public ManagementApiHttpResponse> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -655,6 +731,8 @@ public ManagementApiHttpResponse> l Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -701,6 +779,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -734,6 +821,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java index bc12dcb9..b75a5077 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -72,6 +73,15 @@ public ManagementApiHttpResponse> get(String id, RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -105,6 +115,8 @@ public ManagementApiHttpResponse> get(String id, RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -169,6 +181,15 @@ public ManagementApiHttpResponse> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -206,6 +227,8 @@ public ManagementApiHttpResponse> c Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -271,6 +294,15 @@ public ManagementApiHttpResponse rotate( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -304,6 +336,8 @@ public ManagementApiHttpResponse rotate( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java index 7836a867..da6293f1 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -136,6 +146,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -173,6 +185,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -197,6 +218,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -261,6 +284,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -285,6 +317,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -321,6 +355,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -342,6 +385,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -388,6 +433,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -412,6 +466,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -450,6 +506,15 @@ public ManagementApiHttpResponse deleteByEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -96,6 +106,8 @@ public ManagementApiHttpResponse deleteByEmail( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java index 12284e19..813982e9 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -71,6 +72,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -125,6 +135,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java index 966d64c9..fb6e5986 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -66,6 +67,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -102,6 +112,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java index aa380258..a23a5872 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -72,6 +73,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -105,6 +115,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -175,6 +188,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -213,6 +235,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -259,6 +284,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -289,6 +323,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java index 2d587423..e52946ba 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -67,6 +68,15 @@ public ManagementApiHttpResponse> get(String id, RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -91,6 +101,8 @@ public ManagementApiHttpResponse> get(String id, RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -178,6 +199,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -215,6 +238,15 @@ public ManagementApiHttpResponse delete(String id, String tokenId, Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -236,6 +268,8 @@ public ManagementApiHttpResponse delete(String id, String tokenId, Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java index fdb8d043..ab7fb72c 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java @@ -6,9 +6,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; @@ -31,7 +31,7 @@ private DeleteConnectionUsersByEmailQueryParameters(String email, MapThe email of the user to delete

*

The email of the user to delete

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java index 8dd7953d..2622e4a2 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private GetConnectionEnabledClientsRequestParameters( /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getTake() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getFrom() { return from; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java index 839553d4..675a4cd0 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListDirectoryProvisioningsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java index b881a833..30dc3c04 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListScimConfigurationsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java index e25018ab..44183765 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListSynchronizedGroupsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java b/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java index a7dfe6aa..a941db60 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java @@ -127,7 +127,6 @@ public Builder from(UpdateScimConfigurationRequestContent other) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java b/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java index bee37368..ee204b30 100644 --- a/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java +++ b/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java @@ -14,11 +14,13 @@ import java.time.OffsetDateTime; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeParseException; import java.time.temporal.TemporalAccessor; import java.time.temporal.TemporalQueries; /** - * Custom deserializer that handles converting ISO8601 dates into {@link OffsetDateTime} objects. + * Custom deserializer that handles converting date-time strings into {@link OffsetDateTime} objects. + * Supports ISO 8601 format, space-separated variants, and RFC 1123 (RFC 2822) format. */ class DateTimeDeserializer extends JsonDeserializer { private static final SimpleModule MODULE; @@ -42,8 +44,21 @@ public OffsetDateTime deserialize(JsonParser parser, DeserializationContext cont if (token == JsonToken.VALUE_NUMBER_INT) { return OffsetDateTime.ofInstant(Instant.ofEpochSecond(parser.getValueAsLong()), ZoneOffset.UTC); } else { - TemporalAccessor temporal = DateTimeFormatter.ISO_DATE_TIME.parseBest( - parser.getValueAsString(), OffsetDateTime::from, LocalDateTime::from); + String value = parser.getValueAsString(); + TemporalAccessor temporal; + try { + temporal = DateTimeFormatter.ISO_DATE_TIME.parseBest(value, OffsetDateTime::from, LocalDateTime::from); + } catch (DateTimeParseException e) { + try { + // Fall back to space-separated format (e.g. "2025-02-15 10:30:00+00:00"). + temporal = DateTimeFormatter.ISO_DATE_TIME.parseBest( + value.replace(' ', 'T'), OffsetDateTime::from, LocalDateTime::from); + } catch (DateTimeParseException e2) { + // Fall back to RFC 1123 format (e.g. "Thu, 07 May 2026 14:23:38 +0000"). + temporal = DateTimeFormatter.RFC_1123_DATE_TIME.parseBest( + value, OffsetDateTime::from, LocalDateTime::from); + } + } if (temporal.query(TemporalQueries.offset()) == null) { return LocalDateTime.from(temporal).atOffset(ZoneOffset.UTC); diff --git a/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java b/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java index f83ded99..5a2e2d42 100644 --- a/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java +++ b/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java @@ -19,6 +19,8 @@ public final class RequestOptions { private final TimeUnit timeoutTimeUnit; + private final Optional maxRetries; + private final Map headers; private final Map> headerSuppliers; @@ -43,6 +45,7 @@ private RequestOptions( String token, Optional timeout, TimeUnit timeoutTimeUnit, + Optional maxRetries, Map headers, Map> headerSuppliers, Map queryParameters, @@ -54,6 +57,7 @@ private RequestOptions( this.token = token; this.timeout = timeout; this.timeoutTimeUnit = timeoutTimeUnit; + this.maxRetries = maxRetries; this.headers = headers; this.headerSuppliers = headerSuppliers; this.queryParameters = queryParameters; @@ -72,6 +76,10 @@ public TimeUnit getTimeoutTimeUnit() { return timeoutTimeUnit; } + public Optional getMaxRetries() { + return maxRetries; + } + /** * Returns the client ID for per-request OAuth credentials, if set. */ @@ -158,6 +166,8 @@ public static class Builder { private TimeUnit timeoutTimeUnit = TimeUnit.SECONDS; + private Optional maxRetries = Optional.empty(); + private final Map headers = new HashMap<>(); private final Map> headerSuppliers = new HashMap<>(); @@ -238,6 +248,11 @@ public Builder timeout(Integer timeout, TimeUnit timeoutTimeUnit) { return this; } + public Builder maxRetries(Integer maxRetries) { + this.maxRetries = Optional.of(maxRetries); + return this; + } + public Builder addHeader(String key, String value) { this.headers.put(key, value); return this; @@ -263,6 +278,7 @@ public RequestOptions build() { token, timeout, timeoutTimeUnit, + maxRetries, headers, headerSuppliers, queryParameters, diff --git a/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java b/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java index 6e198cff..aa5a7413 100644 --- a/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java +++ b/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java @@ -11,6 +11,7 @@ import java.util.Optional; import java.util.Random; import okhttp3.Interceptor; +import okhttp3.Request; import okhttp3.Response; public class RetryInterceptor implements Interceptor { @@ -28,17 +29,24 @@ public RetryInterceptor(int maxRetries) { @Override public Response intercept(Chain chain) throws IOException { - Response response = chain.proceed(chain.request()); + Request request = chain.request(); + int effectiveMaxRetries = resolveMaxRetries(request); + Response response = chain.proceed(request); if (shouldRetry(response.code())) { - return retryChain(response, chain); + return retryChain(response, chain, effectiveMaxRetries); } return response; } - private Response retryChain(Response response, Chain chain) throws IOException { - ExponentialBackoff backoff = new ExponentialBackoff(this.maxRetries); + private int resolveMaxRetries(Request request) { + MaxRetriesOverride override = request.tag(MaxRetriesOverride.class); + return override != null ? override.getValue() : this.maxRetries; + } + + private Response retryChain(Response response, Chain chain, int maxRetries) throws IOException { + ExponentialBackoff backoff = new ExponentialBackoff(maxRetries); Optional nextBackoff = backoff.nextBackoff(response); while (nextBackoff.isPresent()) { try { @@ -158,6 +166,23 @@ private static boolean shouldRetry(int statusCode) { return statusCode == 408 || statusCode == 429 || statusCode >= 500; } + /** + * Per-request override carried on the OkHttp {@link Request} as a tag. + * When present, the interceptor uses this value instead of the client-wide + * {@code maxRetries} configured at construction time. + */ + public static final class MaxRetriesOverride { + private final int value; + + public MaxRetriesOverride(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + } + private final class ExponentialBackoff { private final int maxNumRetries; 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 88c650c8..ed22deb6 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.emails.types.CreateEmailProviderRequestContent; import com.auth0.client.mgmt.emails.types.GetEmailProviderRequestParameters; import com.auth0.client.mgmt.emails.types.UpdateEmailProviderRequestContent; @@ -98,6 +99,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -147,6 +157,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -255,6 +268,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -304,6 +326,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -346,6 +371,15 @@ public CompletableFuture> delete(RequestOptions if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -391,6 +425,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -574,6 +611,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -628,6 +674,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 bc05ce56..73d40acd 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.emails.types.CreateEmailProviderRequestContent; import com.auth0.client.mgmt.emails.types.GetEmailProviderRequestParameters; import com.auth0.client.mgmt.emails.types.UpdateEmailProviderRequestContent; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -124,6 +134,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -224,6 +236,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -257,6 +278,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -291,6 +314,15 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -321,6 +353,8 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -495,6 +529,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -531,6 +574,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java b/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java index 3c81c4d5..35eec142 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.emails.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetEmailProviderRequestParameters( /** * @return Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve name and enabled. Additional fields available include credentials, default_from_address, and settings. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java index 3a8ce9ff..78791103 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -97,6 +98,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -145,6 +155,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -186,6 +199,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -230,6 +252,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java index a4c20b19..23d3c175 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -82,6 +83,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -131,6 +141,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -171,6 +184,15 @@ public CompletableFuture> createById( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -216,6 +238,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java index e897dad0..92557992 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -125,6 +135,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -158,6 +170,15 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -188,6 +209,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java index a26608a9..146d0d6b 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -78,6 +79,15 @@ public ManagementApiHttpResponse cre if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -111,6 +121,8 @@ public ManagementApiHttpResponse cre Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -142,6 +154,15 @@ public ManagementApiHttpResponse createById(String id, String eventId, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -172,6 +193,8 @@ public ManagementApiHttpResponse createById(String id, String eventId, Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java index b34bbe28..149afec5 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.eventstreams.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListEventStreamDeliveriesRequestParameters( /** * @return Comma-separated list of statuses by which to filter */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("statuses") public OptionalNullable getStatuses() { if (statuses == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getStatuses() { /** * @return Comma-separated list of event types by which to filter */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("event_types") public OptionalNullable getEventTypes() { if (eventTypes == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getEventTypes() { /** * @return An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_from") public OptionalNullable getDateFrom() { if (dateFrom == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getDateFrom() { /** * @return An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_to") public OptionalNullable getDateTo() { if (dateTo == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getDateTo() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("statuses") + private OptionalNullable _getStatuses() { + return statuses; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("event_types") + private OptionalNullable _getEventTypes() { + return eventTypes; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_from") + private OptionalNullable _getDateFrom() { + return dateFrom; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_to") + private OptionalNullable _getDateTo() { + return dateTo; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java index 2a5f39b8..c1a54751 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -85,6 +86,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -146,6 +156,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -206,6 +219,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -250,6 +272,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -290,6 +315,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -330,6 +364,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java index 51c38d57..0dfb0eb9 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -80,6 +81,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -121,6 +131,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -172,6 +184,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -201,6 +222,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -232,6 +255,15 @@ public ManagementApiHttpResponse delete(String flowId, String executionId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -259,6 +291,8 @@ public ManagementApiHttpResponse delete(String flowId, String executionId, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java index b630e8dd..f39a035e 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.flows.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.types.GetFlowExecutionRequestParametersHydrateEnum; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -46,6 +48,12 @@ public Optional> getHydrate() return hydrate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java index 7faee5d0..c7f26792 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.flows.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListFlowExecutionsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java index 811186f6..9d9e6e3a 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -88,6 +89,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -154,6 +164,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -200,6 +213,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -244,6 +266,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -282,6 +307,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -331,6 +365,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -368,6 +405,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -408,6 +454,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -464,6 +513,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -513,6 +571,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java index 56969cf9..b76c729d 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -83,6 +84,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -126,6 +136,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -164,6 +176,15 @@ public ManagementApiHttpResponse crea if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -194,6 +215,8 @@ public ManagementApiHttpResponse crea Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -224,6 +247,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -257,6 +289,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -286,6 +320,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -313,6 +356,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -361,6 +406,15 @@ public ManagementApiHttpResponse upda if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -394,6 +448,8 @@ public ManagementApiHttpResponse upda Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java index 522da4a4..7498b81c 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.flows.vault.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListFlowsVaultConnectionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7d30c814..e6765931 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 b5abe311..8de3e8ad 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -162,6 +172,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -261,6 +283,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -315,6 +340,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 1473c454..c492781f 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -140,6 +150,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java index 23185711..1579668c 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -93,6 +94,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -135,6 +145,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -180,6 +192,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -210,6 +231,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -255,6 +278,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -285,6 +317,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java index 9a9e524e..cd4db832 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.groups.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private GetGroupMembersRequestParameters( /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getIncludeFields() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java index 417c9c74..39ffbc71 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.groups.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListGroupRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java index 35a13ab8..41d40934 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -77,6 +78,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -121,6 +131,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -204,6 +226,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -247,6 +272,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -282,6 +316,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java index 9d0c81b9..134568c7 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -69,6 +70,15 @@ public CompletableFuture>> list(R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -160,6 +173,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -199,6 +221,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java index c72388dd..f3805533 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -78,6 +79,15 @@ public CompletableFuture>> list(Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -116,6 +126,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -179,6 +192,15 @@ public CompletableFuture>> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -217,6 +239,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java index 1af3e0d5..edf239c9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -103,6 +113,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -139,6 +151,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -166,6 +187,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +224,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -225,6 +257,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java index 09ddffd7..0b2a39b0 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -65,6 +66,15 @@ public ManagementApiHttpResponse> list(RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -92,6 +102,8 @@ public ManagementApiHttpResponse> list(RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -137,6 +149,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -163,6 +184,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java index 3fbc2bce..bba0d10b 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -74,6 +75,15 @@ public ManagementApiHttpResponse> list(RequestOptions reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -101,6 +111,8 @@ public ManagementApiHttpResponse> list(RequestOptions reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -156,6 +168,15 @@ public ManagementApiHttpResponse> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -183,6 +204,8 @@ public ManagementApiHttpResponse> set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java index 3071a7d4..b3610c86 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -78,6 +79,15 @@ public AsyncRawPhoneClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -117,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -169,6 +182,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -213,6 +235,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -257,6 +282,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -296,6 +330,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -367,6 +404,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -406,6 +452,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -450,6 +499,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -489,6 +547,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -535,6 +596,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -574,6 +644,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -617,6 +690,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -656,6 +738,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -708,6 +793,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -747,6 +841,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java index 04d68900..5a07086e 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -84,6 +85,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -123,6 +133,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -197,6 +210,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -237,6 +259,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -315,6 +340,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -355,6 +389,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -426,6 +463,15 @@ public CompletableFuture>> setFcmP if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -464,6 +510,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -535,6 +584,15 @@ public CompletableFuture>> updateF if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -573,6 +631,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -644,6 +705,15 @@ public CompletableFuture>> setFcmv if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -682,6 +752,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -753,6 +826,15 @@ public CompletableFuture>> updateF if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -791,6 +873,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -834,6 +919,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -873,6 +967,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -947,6 +1044,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -987,6 +1093,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1061,6 +1170,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1101,6 +1219,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1145,6 +1266,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1185,6 +1315,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1238,6 +1371,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1278,6 +1420,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java index 99d89351..9af12cf9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -23,7 +24,9 @@ import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; +import java.util.Optional; import java.util.concurrent.CompletableFuture; import okhttp3.Call; import okhttp3.Callback; @@ -78,6 +81,15 @@ public AsyncRawSmsClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -117,6 +129,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -196,6 +211,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -235,6 +259,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -283,6 +310,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -322,6 +358,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -378,6 +417,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -417,6 +465,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -435,7 +486,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public CompletableFuture> getTemplates() { + public CompletableFuture>> + getTemplates() { return getTemplates(null); } @@ -444,8 +496,8 @@ public CompletableFuturePrevious function: Retrieve details of SMS enrollment and verification templates configured for your tenant. * */ - public CompletableFuture> getTemplates( - RequestOptions requestOptions) { + public CompletableFuture>> + getTemplates(RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/factors/sms/templates"); @@ -464,7 +516,16 @@ public CompletableFuture> future = + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -474,7 +535,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO if (response.isSuccessful()) { future.complete(new ManagementApiHttpResponse<>( ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, GetGuardianFactorSmsTemplatesResponseContent.class), + responseBodyString, + new TypeReference>() {}), response)); return; } @@ -503,6 +565,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -559,6 +624,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -598,6 +672,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java index 32a918da..51571cfe 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.types.SetGuardianFactorSmsTemplatesResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AsyncSmsClient { @@ -135,7 +136,7 @@ public CompletableFuture setProvid *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public CompletableFuture getTemplates() { + public CompletableFuture> getTemplates() { return this.rawClient.getTemplates().thenApply(response -> response.body()); } @@ -144,7 +145,8 @@ public CompletableFuture getTempla *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public CompletableFuture getTemplates(RequestOptions requestOptions) { + public CompletableFuture> getTemplates( + RequestOptions requestOptions) { return this.rawClient.getTemplates(requestOptions).thenApply(response -> response.body()); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java index 440e0799..29816660 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -386,6 +440,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -424,6 +480,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -451,6 +516,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -486,6 +553,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -513,6 +589,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -557,6 +635,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -584,6 +671,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java index 3bf70718..54f54276 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -79,6 +80,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -106,6 +116,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -169,6 +181,15 @@ public ManagementApiHttpResponse> setFcmProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -380,6 +423,8 @@ public ManagementApiHttpResponse> setFcmProvider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -442,6 +487,15 @@ public ManagementApiHttpResponse> updateFcmProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -469,6 +523,8 @@ public ManagementApiHttpResponse> updateFcmProvider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -531,6 +587,15 @@ public ManagementApiHttpResponse> setFcmv1Provider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -558,6 +623,8 @@ public ManagementApiHttpResponse> setFcmv1Provider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -620,6 +687,15 @@ public ManagementApiHttpResponse> updateFcmv1Provider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -647,6 +723,8 @@ public ManagementApiHttpResponse> updateFcmv1Provider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -682,6 +760,15 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -709,6 +796,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -772,6 +861,15 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -262,6 +296,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -310,6 +346,15 @@ public ManagementApiHttpResponse s if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -337,6 +382,8 @@ public ManagementApiHttpResponse s Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -347,7 +394,7 @@ public ManagementApiHttpResponse s *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public ManagementApiHttpResponse getTemplates() { + public ManagementApiHttpResponse> getTemplates() { return getTemplates(null); } @@ -356,7 +403,7 @@ public ManagementApiHttpResponse g *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public ManagementApiHttpResponse getTemplates( + public ManagementApiHttpResponse> getTemplates( RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -376,13 +423,23 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { return new ManagementApiHttpResponse<>( ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, GetGuardianFactorSmsTemplatesResponseContent.class), + responseBodyString, + new TypeReference>() {}), response); } try { @@ -403,6 +460,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -451,6 +510,15 @@ public ManagementApiHttpResponse s if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -478,6 +546,8 @@ public ManagementApiHttpResponse s Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java index 9120fdab..764acf3b 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.types.SetGuardianFactorSmsTemplatesResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; +import java.util.Optional; public class SmsClient { protected final ClientOptions clientOptions; @@ -131,7 +132,7 @@ public SetGuardianFactorsProviderSmsResponseContent setProvider( *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { + public Optional getTemplates() { return this.rawClient.getTemplates().body(); } @@ -140,7 +141,7 @@ public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public GetGuardianFactorSmsTemplatesResponseContent getTemplates(RequestOptions requestOptions) { + public Optional getTemplates(RequestOptions requestOptions) { return this.rawClient.getTemplates(requestOptions).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java index 6033e08a..382f9b91 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -108,6 +118,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -175,6 +188,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -214,6 +236,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -269,6 +294,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -308,6 +342,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java index c14fc393..12c83aca 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -91,6 +101,8 @@ public ManagementApiHttpResponse ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -149,6 +161,15 @@ public ManagementApiHttpResponse se if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -176,6 +197,8 @@ public ManagementApiHttpResponse se Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -223,6 +246,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -250,6 +282,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java index 0ae80d52..b3ade47d 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorPhoneTemplatesRequestContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java index b3acce3e..a790077e 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorSmsTemplatesRequestContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java index e55872ce..701bd0c9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java @@ -214,7 +214,6 @@ public Builder from(CreateGuardianEnrollmentTicketRequestContent other) { } /** - *

user_id for the enrollment ticket

*

user_id for the enrollment ticket

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java index b20967eb..bdc5e50a 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java @@ -97,7 +97,6 @@ public Builder from(SetGuardianFactorRequestContent other) { } /** - *

Whether this factor is enabled (true) or disabled (false).

*

Whether this factor is enabled (true) or disabled (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java b/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java index 1dc678ac..57ba5642 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -72,6 +73,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -120,6 +130,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -173,6 +186,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -218,6 +240,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -271,6 +296,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -311,6 +345,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -364,6 +401,15 @@ public CompletableFuture> update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -414,6 +460,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java b/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java index 7a1fddb0..0e75523f 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -67,6 +68,15 @@ public ManagementApiHttpResponse> get(String id, RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -100,6 +110,8 @@ public ManagementApiHttpResponse> get(String id, RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -145,6 +157,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -175,6 +196,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -219,6 +242,15 @@ public ManagementApiHttpResponse delete(String id, List request, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -246,6 +278,8 @@ public ManagementApiHttpResponse delete(String id, List request, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -291,6 +325,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -324,6 +367,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java index 55043ca4..30a460ac 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java @@ -6,6 +6,7 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AsyncErrorsClient { @@ -28,14 +29,14 @@ public AsyncRawErrorsClient withRawResponse() { /** * Retrieve error details of a failed job. */ - public CompletableFuture get(String id) { + public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** * Retrieve error details of a failed job. */ - public CompletableFuture get(String id, RequestOptions requestOptions) { + public CompletableFuture> get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); } } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java index 83a2e1ab..46d59bea 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -16,7 +17,9 @@ import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; +import java.util.Optional; import java.util.concurrent.CompletableFuture; import okhttp3.Call; import okhttp3.Callback; @@ -38,14 +41,14 @@ public AsyncRawErrorsClient(ClientOptions clientOptions) { /** * Retrieve error details of a failed job. */ - public CompletableFuture> get(String id) { + public CompletableFuture>> get(String id) { return get(id, null); } /** * Retrieve error details of a failed job. */ - public CompletableFuture> get( + public CompletableFuture>> get( String id, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -67,7 +70,16 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } - CompletableFuture> future = new CompletableFuture<>(); + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { @@ -75,7 +87,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { future.complete(new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, ErrorsGetResponse.class), + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, new TypeReference>() {}), response)); return; } @@ -114,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java index 89cd124c..4cf7e831 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -91,6 +92,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -135,6 +145,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java index 0f0a1d2d..753fdfc0 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ContentTooLargeError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -98,6 +99,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -152,6 +162,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -177,7 +190,7 @@ public CompletableFuture> future = @@ -234,6 +247,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -259,7 +275,7 @@ public CompletableFuture> future = @@ -316,6 +332,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -352,6 +371,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -406,6 +434,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -442,6 +473,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -496,6 +536,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java index 28d51b77..143cb035 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -78,6 +79,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -122,6 +132,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java index bde7f5fd..2e078368 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java @@ -6,6 +6,7 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; +import java.util.Optional; public class ErrorsClient { protected final ClientOptions clientOptions; @@ -27,14 +28,14 @@ public RawErrorsClient withRawResponse() { /** * Retrieve error details of a failed job. */ - public ErrorsGetResponse get(String id) { + public Optional get(String id) { return this.rawClient.get(id).body(); } /** * Retrieve error details of a failed job. */ - public ErrorsGetResponse get(String id, RequestOptions requestOptions) { + public Optional get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); } } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java index a56fe583..66588a2a 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -16,7 +17,9 @@ import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; +import java.util.Optional; import okhttp3.Headers; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; @@ -34,14 +37,14 @@ public RawErrorsClient(ClientOptions clientOptions) { /** * Retrieve error details of a failed job. */ - public ManagementApiHttpResponse get(String id) { + public ManagementApiHttpResponse> get(String id) { return get(id, null); } /** * Retrieve error details of a failed job. */ - public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") @@ -62,12 +65,23 @@ public ManagementApiHttpResponse get(String id, RequestOption if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { return new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, ErrorsGetResponse.class), response); + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, new TypeReference>() {}), + response); } try { switch (response.code()) { @@ -93,6 +107,8 @@ public ManagementApiHttpResponse get(String id, RequestOption Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java index dfbf7adc..d6022ace 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -85,6 +86,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -114,6 +124,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java index 87be7146..de3b10c8 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ContentTooLargeError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -129,6 +139,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -145,7 +157,7 @@ public ManagementApiHttpResponse create(InputS Request.Builder _requestBuilder = new Request.Builder(); _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); - _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); + _requestBuilder.headers(Headers.of(this.clientOptions.headers((RequestOptions) null))); Request okhttpRequest = _requestBuilder.build(); OkHttpClient client = clientOptions.httpClient(); try (Response response = client.newCall(okhttpRequest).execute()) { @@ -183,6 +195,8 @@ public ManagementApiHttpResponse create(InputS Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -200,7 +214,7 @@ public ManagementApiHttpResponse create( Request.Builder _requestBuilder = new Request.Builder(); _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); - _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); + _requestBuilder.headers(Headers.of(this.clientOptions.headers((RequestOptions) null))); Request okhttpRequest = _requestBuilder.build(); OkHttpClient client = clientOptions.httpClient(); try (Response response = client.newCall(okhttpRequest).execute()) { @@ -238,6 +252,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -266,6 +282,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -301,6 +326,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -329,6 +356,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -364,6 +400,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java index 72fe8976..be65804a 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -74,6 +75,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -104,6 +114,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java index f37eec35..8aa885e4 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java @@ -171,7 +171,6 @@ public Builder from(CreateImportUsersRequestContent other) { } /** - *

connection_id of the connection to which users will be imported.

*

connection_id of the connection to which users will be imported.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java index 93bc0061..9857bcf3 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java @@ -167,7 +167,6 @@ public Builder from(CreateVerificationEmailRequestContent other) { } /** - *

user_id of the user to send the verification email to.

*

user_id of the user to send the verification email to.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java b/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java index 2f9d812b..6802e5fd 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java @@ -86,11 +86,6 @@ static final class Deserializer extends StdDeserializer { @java.lang.Override public ErrorsGetResponse deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); - try { - return of(ObjectMappers.JSON_MAPPER.convertValue( - value, new TypeReference>() {})); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("status") && ((Map) value).containsKey("type") @@ -100,6 +95,11 @@ public ErrorsGetResponse deserialize(JsonParser p, DeserializationContext contex } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, new TypeReference>() {})); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java index c934e084..e3eea0c1 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -209,6 +231,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -251,6 +276,15 @@ public CompletableFuture> delete(RequestOptions if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -286,6 +320,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java index d22e3d05..7ccd81f5 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -265,6 +287,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -307,6 +332,15 @@ public CompletableFuture> rekey(RequestOptions r if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -342,6 +376,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -386,6 +423,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -435,6 +481,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -488,6 +537,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -537,6 +595,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -580,6 +641,15 @@ public CompletableFuture> delete(String kid, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -620,6 +690,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -666,6 +739,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -715,6 +797,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java index 3ff7dab2..c1ce4522 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -70,6 +71,15 @@ public CompletableFuture>> list(Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -156,6 +169,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -195,6 +217,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -239,6 +264,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -287,6 +321,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -332,6 +369,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -376,6 +422,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java index 239c5c48..e9c2c4e7 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get(Reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(Reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -138,6 +150,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -168,6 +189,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -202,6 +225,15 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -226,6 +258,8 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java index 4106d5ed..f5a8d5b4 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -136,6 +146,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -180,6 +192,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -213,6 +234,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -247,6 +270,15 @@ public ManagementApiHttpResponse rekey(RequestOptions requestOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -271,6 +303,8 @@ public ManagementApiHttpResponse rekey(RequestOptions requestOptions) { Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -306,6 +340,15 @@ public ManagementApiHttpResponse get(String kid if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -338,6 +381,8 @@ public ManagementApiHttpResponse get(String kid Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -383,6 +428,15 @@ public ManagementApiHttpResponse import_( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -416,6 +470,8 @@ public ManagementApiHttpResponse import_( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -451,6 +507,15 @@ public ManagementApiHttpResponse delete(String kid, RequestOptions request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -478,6 +543,8 @@ public ManagementApiHttpResponse delete(String kid, RequestOptions request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -516,6 +583,15 @@ public ManagementApiHttpResponse> list(RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -96,6 +106,8 @@ public ManagementApiHttpResponse> list(RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -130,6 +142,15 @@ public ManagementApiHttpResponse rotate(Reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -156,6 +177,8 @@ public ManagementApiHttpResponse rotate(Reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -191,6 +214,15 @@ public ManagementApiHttpResponse get(String kid, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -223,6 +255,8 @@ public ManagementApiHttpResponse get(String kid, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -260,6 +294,15 @@ public ManagementApiHttpResponse revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -290,6 +333,8 @@ public ManagementApiHttpResponse revoke( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java b/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java index 7cd8794c..de452017 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java @@ -98,7 +98,6 @@ public Builder from(ImportEncryptionKeyRequestContent other) { } /** - *

Base64 encoded ciphertext of key material wrapped by public wrapping key.

*

Base64 encoded ciphertext of key material wrapped by public wrapping key.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java index bc9d6bde..f0980b3d 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.keys.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListEncryptionKeysRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Default value is 50, maximum value is 100. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java index 08cd75b2..a6c90c6f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -100,6 +101,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -165,6 +175,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -213,6 +226,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -307,6 +332,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -352,6 +386,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java index 6eeb0574..6c7a5e7f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -212,6 +225,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -266,6 +288,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -307,6 +332,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -351,6 +385,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -391,6 +428,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -426,6 +472,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -495,6 +544,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -539,6 +597,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java index 24bda7f4..65e5e1e9 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -111,6 +112,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -232,6 +245,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -286,6 +308,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -335,6 +360,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -384,6 +418,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -433,6 +470,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -482,6 +528,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -528,6 +577,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -568,6 +626,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -649,6 +710,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -683,6 +753,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java index 8fb4ad22..26c7c016 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -172,6 +182,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -228,6 +241,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -277,6 +299,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -324,6 +349,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -368,6 +402,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -416,6 +453,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -461,6 +507,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -542,6 +591,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -591,6 +649,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 cd13af1d..dc7ac387 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -100,6 +101,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java index b0e3a02f..98036636 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -113,6 +114,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -183,6 +193,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -237,6 +250,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -286,6 +308,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -355,6 +380,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -404,6 +438,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -444,6 +481,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -484,6 +530,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java index 496cc19a..25d7ac15 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -160,6 +161,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -228,6 +238,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -284,6 +297,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -324,6 +346,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -372,6 +397,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -412,6 +446,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java index 0566aa02..ffac603c 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -95,6 +96,15 @@ public ManagementApiHttpResponse> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> li Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -178,6 +190,15 @@ public ManagementApiHttpResponse delete(String id, String grantId, Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -275,6 +307,8 @@ public ManagementApiHttpResponse delete(String id, String grantId, Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java index 8a5cd901..8e6f8234 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -211,6 +232,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -243,6 +266,15 @@ public ManagementApiHttpResponse ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -273,6 +305,8 @@ public ManagementApiHttpResponse ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -304,6 +338,15 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -328,6 +371,8 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -389,6 +434,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -419,6 +473,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java index feefc949..55f2daad 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -105,6 +106,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -149,6 +159,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -195,6 +207,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -379,6 +422,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -416,6 +461,15 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -443,6 +497,8 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -516,6 +572,15 @@ public ManagementApiHttpResponse> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -143,6 +153,8 @@ public ManagementApiHttpResponse> lis Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -191,6 +203,15 @@ public ManagementApiHttpResponse add( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -224,6 +245,8 @@ public ManagementApiHttpResponse add( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -262,6 +285,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -292,6 +324,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -331,6 +365,15 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -361,6 +404,8 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -434,6 +479,15 @@ public ManagementApiHttpResponse up if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -467,6 +521,8 @@ public ManagementApiHttpResponse up Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java index c53b5247..8592ad24 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -95,6 +96,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java index f61b48ec..503c64a0 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -108,6 +109,15 @@ public ManagementApiHttpResponse> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -154,6 +164,8 @@ public ManagementApiHttpResponse> lis Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -200,6 +212,15 @@ public ManagementApiHttpResponse cr if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -233,6 +254,8 @@ public ManagementApiHttpResponse cr Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -293,6 +316,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -326,6 +358,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -357,6 +391,15 @@ public ManagementApiHttpResponse delete(String id, String invitationId, Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -384,6 +427,8 @@ public ManagementApiHttpResponse delete(String id, String invitationId, Re Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java index 743f0a04..54b71bdf 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -155,6 +156,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -199,6 +209,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -246,6 +258,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -273,6 +294,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -312,6 +335,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -339,6 +371,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java index d701c6cb..362b2ed1 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -113,6 +114,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -177,6 +187,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -236,6 +249,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -286,6 +308,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -345,6 +370,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -390,6 +424,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 88e90d2d..c9d13fe4 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +213,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -234,6 +255,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -285,6 +308,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -315,6 +347,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java index aa874943..39ac468e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.groups.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationGroupRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 d6be7c8b..acd5491d 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -108,6 +109,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -175,6 +185,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java index 6ae56220..1d4c6894 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -116,6 +117,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -184,6 +194,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -245,6 +258,15 @@ public CompletableFuture> assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -290,6 +312,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -351,6 +376,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -391,6 +425,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 c76b1fe9..ae326a95 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -156,6 +166,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -209,6 +221,15 @@ public ManagementApiHttpResponse assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -239,6 +260,8 @@ public ManagementApiHttpResponse assign( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -292,6 +315,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -319,6 +351,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java index f1a22faf..bc2de736 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -87,6 +88,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -153,6 +163,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java index 6e80b498..bb573a53 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -126,6 +136,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java index 631eb1b2..bbb7e884 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.members.effectiveroles.sources.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,8 @@ private ListOrganizationMemberRoleSourceGroupsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -56,7 +58,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -67,11 +70,23 @@ public OptionalNullable getTake() { /** * @return The role ID to get group sources for. */ - @JsonIgnore + @JsonProperty("role_id") public String getRoleId() { return roleId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -163,7 +178,6 @@ public Builder from(ListOrganizationMemberRoleSourceGroupsRequestParameters othe } /** - *

The role ID to get group sources for.

*

The role ID to get group sources for.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java index 32f11cc2..6c6431b7 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.members.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationMemberEffectiveRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java index feabe2ea..1e4908f3 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.members.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListOrganizationMemberRolesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java index e8655a44..a346afaa 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -113,6 +114,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java index e7822411..7d7abc6f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -108,6 +109,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -152,6 +162,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java index 7bbf0697..08a4c07f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.roles.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListOrganizationRoleMembersRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getTake() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java index 2fa7a9dc..9306ad47 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java @@ -172,7 +172,6 @@ public Builder from(AddOrganizationConnectionRequestContent other) { } /** - *

Single connection ID to add to the organization.

*

Single connection ID to add to the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java index 008e5fd2..77e66230 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java @@ -99,7 +99,6 @@ public Builder from(AssociateOrganizationClientGrantRequestContent other) { } /** - *

A Client Grant ID to add to the organization.

*

A Client Grant ID to add to the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java index facd18fd..a5e22831 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java @@ -243,7 +243,6 @@ public Builder from(CreateOrganizationAllConnectionRequestParameters other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java index 24739546..bd77e634 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java @@ -144,7 +144,6 @@ public Builder from(CreateOrganizationDiscoveryDomainRequestContent other) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java index 2fa99448..b0a9f33b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java @@ -289,7 +289,6 @@ public ClientIdStage invitee(@NotNull OrganizationInvitationInvitee invitee) { } /** - *

Auth0 client ID. Used to resolve the application's login initiation endpoint.

*

Auth0 client ID. Used to resolve the application's login initiation endpoint.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java index 7e130e65..55e2b1aa 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetOrganizationInvitationRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java index 14962022..9024cb77 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListOrganizationAllConnectionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Filter connections by enabled status. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_enabled") public OptionalNullable getIsEnabled() { if (isEnabled == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIsEnabled() { return isEnabled; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_enabled") + private OptionalNullable _getIsEnabled() { + return isEnabled; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java index a05a0e3f..48a6606f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.organizations.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; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -69,7 +71,8 @@ public Optional> getGrantIds() { /** * @return Optional filter on audience of the client grant. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") public OptionalNullable getAudience() { if (audience == null) { return OptionalNullable.absent(); @@ -80,7 +83,8 @@ public OptionalNullable getAudience() { /** * @return Optional filter on client_id of the client grant. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -91,7 +95,8 @@ public OptionalNullable getClientId() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -102,7 +107,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -113,7 +119,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -121,6 +128,42 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("grant_ids") + private Optional> _getGrantIds() { + return grantIds; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") + private OptionalNullable _getAudience() { + return audience; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java index 0079d9d9..58a8c0a9 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListOrganizationConnectionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java index ec9d637d..8a90b83f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationDiscoveryDomainsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java index d4a4aaf0..ca4bb109 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationGroupsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java index 03acfb70..e2bb762e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListOrganizationInvitationsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPerPage() { /** * @return When true, return results inside an object that also contains the start and limit. When false (default), a direct array of results is returned. We do not yet support returning the total invitations count. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getIncludeFields() { /** * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getSort() { return sort; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java index 3a743f5c..88eb0abb 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListOrganizationMembersRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getTake() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java index 37ca4bfb..584b0f6d 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -74,6 +75,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -122,6 +132,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -180,6 +193,15 @@ public CompletableFuture> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -220,6 +242,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java index a9736236..ca39ceb0 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -71,6 +72,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -119,6 +129,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -173,6 +186,15 @@ public CompletableFuture> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -213,6 +235,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java index 290858a2..6ddaa6d4 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -123,6 +124,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -191,6 +201,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -243,6 +256,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -291,6 +313,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -339,6 +364,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -391,6 +425,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -466,6 +503,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -514,6 +560,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java index 3faaa185..cb557000 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -102,6 +112,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -179,6 +200,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java index a085a1fe..cc66afc5 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -66,6 +67,15 @@ public ManagementApiHttpResponse> get(PartialGroupsEnum prom if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -99,6 +109,8 @@ public ManagementApiHttpResponse> get(PartialGroupsEnum prom Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -144,6 +156,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -171,6 +192,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java index e1efb1c0..3cd56228 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -118,6 +119,15 @@ public ManagementApiHttpResponse bulkUpdate( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -237,6 +258,8 @@ public ManagementApiHttpResponse bulkUpdate( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -277,6 +300,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -312,6 +344,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -379,6 +413,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -411,6 +454,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java index 6c9d1de5..2ca88531 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java @@ -3,14 +3,15 @@ */ package com.auth0.client.mgmt.prompts.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.AculRenderingModeEnum; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -65,7 +66,8 @@ private ListAculsRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -76,7 +78,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (default: true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -87,7 +90,8 @@ public OptionalNullable getIncludeFields() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -98,7 +102,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Maximum value is 100, default value is 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -109,7 +114,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total configuration count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -120,7 +126,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Name of the prompt to filter by */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("prompt") public OptionalNullable getPrompt() { if (prompt == null) { return OptionalNullable.absent(); @@ -131,7 +138,8 @@ public OptionalNullable getPrompt() { /** * @return Name of the screen to filter by */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("screen") public OptionalNullable getScreen() { if (screen == null) { return OptionalNullable.absent(); @@ -142,7 +150,8 @@ public OptionalNullable getScreen() { /** * @return Rendering mode to filter by */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("rendering_mode") public OptionalNullable getRenderingMode() { if (renderingMode == null) { return OptionalNullable.absent(); @@ -150,6 +159,54 @@ public OptionalNullable getRenderingMode() { return renderingMode; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("prompt") + private OptionalNullable _getPrompt() { + return prompt; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("screen") + private OptionalNullable _getScreen() { + return screen; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("rendering_mode") + private OptionalNullable _getRenderingMode() { + return renderingMode; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java index 3855eaa4..374dcfd7 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -214,6 +236,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java index 5c33d763..2d68a2bf 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -138,6 +150,15 @@ public ManagementApiHttpResponse u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -171,6 +192,8 @@ public ManagementApiHttpResponse u Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java index 4036e953..7a83fcb1 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -215,6 +237,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java index 70f832c4..9f00e2bd 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -65,6 +66,15 @@ public ManagementApiHttpResponseLength of time to remember devices for, in days.

*

Length of time to remember devices for, in days.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java index bc134074..31bbcd62 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java @@ -98,7 +98,6 @@ public Builder from(UpdateRiskAssessmentsSettingsRequestContent other) { } /** - *

Whether or not risk assessment is enabled.

*

Whether or not risk assessment is enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 e7fc85e1..d1c464cb 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -162,6 +172,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -261,6 +283,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -315,6 +340,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java index b867a426..35391d58 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -100,6 +101,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -169,6 +179,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -222,6 +235,15 @@ public CompletableFuture> add( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -321,6 +346,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java index 35afcf25..e0dec306 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -151,6 +152,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -215,6 +225,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -270,6 +283,15 @@ public CompletableFuture> assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -315,6 +337,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 970d20bc..6466ee8f 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -179,6 +191,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -209,6 +230,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -254,6 +277,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -284,6 +316,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java index ce99d607..dee95f63 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse add( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -213,6 +234,8 @@ public ManagementApiHttpResponse add( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +281,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -285,6 +317,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java index 035e1f30..fa17f41a 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -145,6 +146,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -187,6 +197,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -234,6 +246,15 @@ public ManagementApiHttpResponse assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -264,6 +285,8 @@ public ManagementApiHttpResponse assign( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java index 650b3c2f..f6160216 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.roles.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListRoleGroupsParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java index d028f097..2215e708 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.roles.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListRolePermissionsRequestParameters( /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java index 321a175d..d24737e8 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.roles.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListRoleUsersRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java index 96af90c7..cca21379 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -77,6 +78,15 @@ public CompletableFuture>> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -120,6 +130,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -183,6 +196,15 @@ public CompletableFuture>> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -226,6 +248,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java index a0d893d5..47ff01a6 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -146,6 +156,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -195,6 +208,15 @@ public CompletableFuture> revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -230,6 +252,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java index b593085d..689a57fe 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -103,6 +113,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -158,6 +170,15 @@ public ManagementApiHttpResponse> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -188,6 +209,8 @@ public ManagementApiHttpResponse> set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java index 5711d6c0..806823e1 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse revoke(String profileId, String id, Reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -189,6 +210,8 @@ public ManagementApiHttpResponse revoke(String profileId, String id, Reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java index bf7ba835..eb8683cd 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -94,6 +95,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -138,6 +148,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -205,6 +218,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -249,6 +271,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java index 8731df6b..b4cd2198 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -88,6 +89,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -117,6 +127,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -175,6 +187,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -205,6 +226,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java index fad43e8f..47312ecd 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.tenants.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetTenantSettingsRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java index 3a515f44..6a1200ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java @@ -119,7 +119,6 @@ public Builder from(ActionModuleDependencyRequest other) { } /** - *

The name of the npm dependency.

*

The name of the npm dependency.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public VersionStage name(@NotNull String name) { } /** - *

The version of the npm dependency.

*

The version of the npm dependency.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java index cbb2155b..af5fefaf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java @@ -119,7 +119,6 @@ public Builder from(ActionModuleSecretRequest other) { } /** - *

The name of the secret.

*

The name of the secret.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public ValueStage name(@NotNull String name) { } /** - *

The value of the secret.

*

The value of the secret.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java index a6ec9ab2..eb0b9553 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java @@ -121,7 +121,6 @@ public VersionStage id(@NotNull ActionTriggerTypeEnum id) { } /** - *

The version of a trigger. v1, v2, etc.

*

The version of a trigger. v1, v2, etc.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java index 1c87c51f..58604f8a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java @@ -98,7 +98,6 @@ public Builder from(AculClientFilterById other) { } /** - *

Client ID

*

Client ID

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java index 24a4981a..4deba79d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java @@ -98,7 +98,6 @@ public Builder from(AculDomainFilterById other) { } /** - *

Domain ID

*

Domain ID

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java index 99799dbb..7f94629d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java @@ -98,7 +98,6 @@ public Builder from(AculOrganizationFilterById other) { } /** - *

Organization ID

*

Organization ID

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java index d3a28c44..57cb99eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java @@ -98,7 +98,6 @@ public Builder from(AttackProtectionCaptchaAuthChallengeRequest other) { } /** - *

Whether the auth challenge should fail open.

*

Whether the auth challenge should fail open.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java index 1182984b..57a3f0d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java @@ -195,7 +195,6 @@ public Builder from(AttackProtectionUpdateCaptchaArkose other) { } /** - *

The site key for the Arkose captcha provider.

*

The site key for the Arkose captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -207,7 +206,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the Arkose captcha provider.

*

The secret key for the Arkose captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java index 7d7fd077..ad51758e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java @@ -121,7 +121,6 @@ public Builder from(AttackProtectionUpdateCaptchaFriendlyCaptcha other) { } /** - *

The site key for the Friendly Captcha provider.

*

The site key for the Friendly Captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the Friendly Captcha provider.

*

The secret key for the Friendly Captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java index 6861b8d9..5234ffdb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java @@ -121,7 +121,6 @@ public Builder from(AttackProtectionUpdateCaptchaHcaptcha other) { } /** - *

The site key for the hCaptcha provider.

*

The site key for the hCaptcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the hCaptcha provider.

*

The secret key for the hCaptcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java index 474b142c..a3470f32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java @@ -142,7 +142,6 @@ public Builder from(AttackProtectionUpdateCaptchaRecaptchaEnterprise other) { } /** - *

The site key for the reCAPTCHA Enterprise provider.

*

The site key for the reCAPTCHA Enterprise provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -154,7 +153,6 @@ public ApiKeyStage siteKey(@NotNull String siteKey) { } /** - *

The API key for the reCAPTCHA Enterprise provider.

*

The API key for the reCAPTCHA Enterprise provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -166,7 +164,6 @@ public ProjectIdStage apiKey(@NotNull String apiKey) { } /** - *

The project ID for the reCAPTCHA Enterprise provider.

*

The project ID for the reCAPTCHA Enterprise provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java index d440676b..59ff4d02 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java @@ -121,7 +121,6 @@ public Builder from(AttackProtectionUpdateCaptchaRecaptchaV2 other) { } /** - *

The site key for the reCAPTCHA v2 provider.

*

The site key for the reCAPTCHA v2 provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the reCAPTCHA v2 provider.

*

The secret key for the reCAPTCHA v2 provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java index 9fc5795e..a24458a2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java @@ -291,7 +291,6 @@ public Builder from(BrandingThemeBorders other) { } /** - *

Button border radius

*

Button border radius

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -303,7 +302,6 @@ public ButtonBorderWeightStage buttonBorderRadius(double buttonBorderRadius) { } /** - *

Button border weight

*

Button border weight

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -322,7 +320,6 @@ public InputBorderRadiusStage buttonsStyle(@NotNull BrandingThemeBordersButtonsS } /** - *

Input border radius

*

Input border radius

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -334,7 +331,6 @@ public InputBorderWeightStage inputBorderRadius(double inputBorderRadius) { } /** - *

Input border weight

*

Input border weight

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -353,7 +349,6 @@ public ShowWidgetShadowStage inputsStyle(@NotNull BrandingThemeBordersInputsStyl } /** - *

Show widget shadow

*

Show widget shadow

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -365,7 +360,6 @@ public WidgetBorderWeightStage showWidgetShadow(boolean showWidgetShadow) { } /** - *

Widget border weight

*

Widget border weight

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -377,7 +371,6 @@ public WidgetCornerRadiusStage widgetBorderWeight(double widgetBorderWeight) { } /** - *

Widget corner radius

*

Widget corner radius

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java index 5c0435ed..d0e8fd3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java @@ -570,7 +570,6 @@ public Builder from(BrandingThemeColors other) { } /** - *

Body text

*

Body text

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -582,7 +581,6 @@ public ErrorStage bodyText(@NotNull String bodyText) { } /** - *

Error

*

Error

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -594,7 +592,6 @@ public HeaderStage error(@NotNull String error) { } /** - *

Header

*

Header

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -606,7 +603,6 @@ public IconsStage header(@NotNull String header) { } /** - *

Icons

*

Icons

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -618,7 +614,6 @@ public InputBackgroundStage icons(@NotNull String icons) { } /** - *

Input background

*

Input background

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -630,7 +625,6 @@ public InputBorderStage inputBackground(@NotNull String inputBackground) { } /** - *

Input border

*

Input border

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -642,7 +636,6 @@ public InputFilledTextStage inputBorder(@NotNull String inputBorder) { } /** - *

Input filled text

*

Input filled text

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -654,7 +647,6 @@ public InputLabelsPlaceholdersStage inputFilledText(@NotNull String inputFilledT } /** - *

Input labels & placeholders

*

Input labels & placeholders

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -667,7 +659,6 @@ public LinksFocusedComponentsStage inputLabelsPlaceholders(@NotNull String input } /** - *

Links & focused components

*

Links & focused components

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -680,7 +671,6 @@ public PrimaryButtonStage linksFocusedComponents(@NotNull String linksFocusedCom } /** - *

Primary button

*

Primary button

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -692,7 +682,6 @@ public PrimaryButtonLabelStage primaryButton(@NotNull String primaryButton) { } /** - *

Primary button label

*

Primary button label

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -704,7 +693,6 @@ public SecondaryButtonBorderStage primaryButtonLabel(@NotNull String primaryButt } /** - *

Secondary button border

*

Secondary button border

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -717,7 +705,6 @@ public SecondaryButtonLabelStage secondaryButtonBorder(@NotNull String secondary } /** - *

Secondary button label

*

Secondary button label

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -730,7 +717,6 @@ public SuccessStage secondaryButtonLabel(@NotNull String secondaryButtonLabel) { } /** - *

Success

*

Success

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -742,7 +728,6 @@ public WidgetBackgroundStage success(@NotNull String success) { } /** - *

Widget background

*

Widget background

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -754,7 +739,6 @@ public WidgetBorderStage widgetBackground(@NotNull String widgetBackground) { } /** - *

Widget border

*

Widget border

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java index 7c99b687..6e9bb924 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontBodyText other) { } /** - *

Body text bold

*

Body text bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Body text size

*

Body text size

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java index 48db81fa..f8cac7e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontButtonsText other) { } /** - *

Buttons text bold

*

Buttons text bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Buttons text size

*

Buttons text size

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java index 7e806c53..79a3ad5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontInputLabels other) { } /** - *

Input Labels bold

*

Input Labels bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Input Labels size

*

Input Labels size

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java index 3e627361..ddab6cf9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontLinks other) { } /** - *

Links bold

*

Links bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Links size

*

Links size

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java index f1542e13..395d6526 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontSubtitle other) { } /** - *

Subtitle bold

*

Subtitle bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Subtitle size

*

Subtitle size

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java index 095582ee..dfd809a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontTitle other) { } /** - *

Title bold

*

Title bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Title size

*

Title size

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java index d04e9b32..f9cca67f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java @@ -275,7 +275,6 @@ public FontUrlStage buttonsText(@NotNull BrandingThemeFontButtonsText buttonsTex } /** - *

Font URL

*

Font URL

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public ReferenceTextSizeStage linksStyle(@NotNull BrandingThemeFontLinksStyleEnu } /** - *

Reference text size

*

Reference text size

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java index 3571687a..d8c1706c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java @@ -141,7 +141,6 @@ public Builder from(BrandingThemePageBackground other) { } /** - *

Background color

*

Background color

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -153,7 +152,6 @@ public BackgroundImageUrlStage backgroundColor(@NotNull String backgroundColor) } /** - *

Background image url

*

Background image url

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java index 3a8f1562..ae26522c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java @@ -190,7 +190,6 @@ public LogoHeightStage headerTextAlignment( } /** - *

Logo height

*

Logo height

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -209,7 +208,6 @@ public LogoUrlStage logoPosition(@NotNull BrandingThemeWidgetLogoPositionEnum lo } /** - *

Logo url

*

Logo url

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java index e2290af6..0a4853d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java @@ -142,7 +142,6 @@ public Builder from(ChangePasswordTicketIdentity other) { } /** - *

user_id of the identity.

*

user_id of the identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java index cff27402..628d8c8b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java @@ -99,7 +99,6 @@ public Builder from(ChangePasswordTicketResponseContent other) { } /** - *

URL representing the ticket.

*

URL representing the ticket.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java b/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java index 073b89f9..c27f98c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java @@ -141,7 +141,6 @@ public Builder from(CimdMappedPrivateKeyJwtCredential other) { } /** - *

Type of credential (e.g., public_key)

*

Type of credential (e.g., public_key)

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -153,7 +152,6 @@ public KidStage credentialType(@NotNull String credentialType) { } /** - *

Key identifier from JWKS or calculated thumbprint

*

Key identifier from JWKS or calculated thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -165,7 +163,6 @@ public AlgStage kid(@NotNull String kid) { } /** - *

Algorithm (e.g., RS256, RS384, PS256)

*

Algorithm (e.g., RS256, RS384, PS256)

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java b/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java index c3bfaf3f..b38ba312 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java +++ b/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java @@ -147,7 +147,6 @@ public Builder from(CimdValidationResult other) { } /** - *

Whether the metadata document passed validation

*

Whether the metadata document passed validation

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java index cf3a8a9f..6bad2c43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java @@ -194,7 +194,6 @@ public Builder from(ClientAddonLayer other) { } /** - *

Provider ID of your Layer account

*

Provider ID of your Layer account

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +205,6 @@ public KeyIdStage providerId(@NotNull String providerId) { } /** - *

Authentication Key identifier used to sign the Layer token.

*

Authentication Key identifier used to sign the Layer token.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -218,7 +216,6 @@ public PrivateKeyStage keyId(@NotNull String keyId) { } /** - *

Private key for signing the Layer token.

*

Private key for signing the Layer token.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java index 7cc03c9c..3494015c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java @@ -98,7 +98,6 @@ public Builder from(ClientAddonMscrm other) { } /** - *

Microsoft Dynamics CRM application URL.

*

Microsoft Dynamics CRM application URL.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java index 9e3b5c23..7f50df6d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java @@ -98,7 +98,6 @@ public Builder from(ClientAddonRms other) { } /** - *

URL of your Rights Management Server. It can be internal or external, but users will have to be able to reach it.

*

URL of your Rights Management Server. It can be internal or external, but users will have to be able to reach it.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java index 90b340c3..f688eb54 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java @@ -98,7 +98,6 @@ public Builder from(ClientAddonSlack other) { } /** - *

Slack team name.

*

Slack team name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java index 5cd722c8..35d33426 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java @@ -127,7 +127,6 @@ public Builder from(ClientDefaultOrganization other) { } /** - *

The default Organization ID to be used

*

The default Organization ID to be used

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java index 27f41220..641092b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java @@ -124,7 +124,6 @@ public Builder from(ClientRefreshTokenPolicy other) { } /** - *

The identifier of the resource server to which the Multi Resource Refresh Token Policy applies

*

The identifier of the resource server to which the Multi Resource Refresh Token Policy applies

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java index cd0c1ed0..b7669906 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java @@ -7,9 +7,6 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class ClientSessionTransferDelegationDeviceBindingEnum { - public static final ClientSessionTransferDelegationDeviceBindingEnum ASN = - new ClientSessionTransferDelegationDeviceBindingEnum(Value.ASN, "asn"); - public static final ClientSessionTransferDelegationDeviceBindingEnum IP = new ClientSessionTransferDelegationDeviceBindingEnum(Value.IP, "ip"); @@ -46,8 +43,6 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case ASN: - return visitor.visitAsn(); case IP: return visitor.visitIp(); case UNKNOWN: @@ -59,8 +54,6 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static ClientSessionTransferDelegationDeviceBindingEnum valueOf(String value) { switch (value) { - case "asn": - return ASN; case "ip": return IP; default: @@ -71,16 +64,12 @@ public static ClientSessionTransferDelegationDeviceBindingEnum valueOf(String va public enum Value { IP, - ASN, - UNKNOWN } public interface Visitor { T visitIp(); - T visitAsn(); - T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java b/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java index dc0dbf84..1336f460 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java @@ -298,7 +298,6 @@ public Builder from(ConnectedAccount other) { } /** - *

The unique identifier for the connected account.

*

The unique identifier for the connected account.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -310,7 +309,6 @@ public ConnectionStage id(@NotNull String id) { } /** - *

The name of the connection associated with the account.

*

The name of the connection associated with the account.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -322,7 +320,6 @@ public ConnectionIdStage connection(@NotNull String connection) { } /** - *

The unique identifier of the connection associated with the account.

*

The unique identifier of the connection associated with the account.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -334,7 +331,6 @@ public StrategyStage connectionId(@NotNull String connectionId) { } /** - *

The authentication strategy used by the connection.

*

The authentication strategy used by the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -353,7 +349,6 @@ public CreatedAtStage accessType(@NotNull ConnectedAccountAccessTypeEnum accessT } /** - *

ISO 8601 timestamp when the connected account was created.

*

ISO 8601 timestamp when the connected account was created.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java index 9cbf21b7..f94a8093 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java @@ -98,7 +98,6 @@ public Builder from(ConnectionEnabledClient other) { } /** - *

The client id

*

The client id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java deleted file mode 100644 index 86129d54..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java +++ /dev/null @@ -1,113 +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 = ConnectionFederatedConnectionsAccessTokens.Builder.class) -public final class ConnectionFederatedConnectionsAccessTokens { - private final Optional active; - - private final Map additionalProperties; - - private ConnectionFederatedConnectionsAccessTokens( - Optional active, Map additionalProperties) { - this.active = active; - this.additionalProperties = additionalProperties; - } - - /** - * @return Enables refresh tokens and access tokens collection for federated connections - */ - @JsonProperty("active") - public Optional getActive() { - return active; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof ConnectionFederatedConnectionsAccessTokens - && equalTo((ConnectionFederatedConnectionsAccessTokens) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionFederatedConnectionsAccessTokens other) { - return active.equals(other.active); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash(this.active); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static Builder builder() { - return new Builder(); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional active = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(ConnectionFederatedConnectionsAccessTokens other) { - active(other.getActive()); - return this; - } - - /** - *

Enables refresh tokens and access tokens collection for federated connections

- */ - @JsonSetter(value = "active", nulls = Nulls.SKIP) - public Builder active(Optional active) { - this.active = active; - return this; - } - - public Builder active(Boolean active) { - this.active = Optional.ofNullable(active); - return this; - } - - public ConnectionFederatedConnectionsAccessTokens build() { - return new ConnectionFederatedConnectionsAccessTokens(active, additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java index 74b13410..3f07f74d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java @@ -171,7 +171,6 @@ public Builder from(ConnectionForOrganization other) { } /** - *

ID of the connection.

*

ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java index 801f9799..2bdea79b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java @@ -194,7 +194,6 @@ public Builder from(ConnectionGatewayAuthentication other) { } /** - *

The Authorization header type.

*

The Authorization header type.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +205,6 @@ public AudienceStage method(@NotNull String method) { } /** - *

The audience to be added to the JWT payload.

*

The audience to be added to the JWT payload.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -218,7 +216,6 @@ public SecretStage audience(@NotNull String audience) { } /** - *

The secret to be used for signing tokens.

*

The secret to be used for signing tokens.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java index 58ba3dbe..564ec371 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java @@ -191,7 +191,6 @@ public SecretStage method(@NotNull String method) { } /** - *

The secret used to sign the JSON Web Token sent to the SMS gateway

*

The secret used to sign the JSON Web Token sent to the SMS gateway

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java index 7752e1ce..6ad8e7ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java @@ -355,7 +355,6 @@ public Builder from(ConnectionKey other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +366,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +377,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -391,7 +388,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java index c1ad8468..774a189a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java @@ -129,8 +129,6 @@ public final class ConnectionOptionsAzureAd implements IConnectionOptionsCommon private final Optional extUserId; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional granted; private final Optional iconUrl; @@ -217,7 +215,6 @@ private ConnectionOptionsAzureAd( Optional extUpn, Optional extUsageLocation, Optional extUserId, - OptionalNullable federatedConnectionsAccessTokens, Optional granted, Optional iconUrl, Optional identityApi, @@ -286,7 +283,6 @@ private ConnectionOptionsAzureAd( this.extUpn = extUpn; this.extUsageLocation = extUsageLocation; this.extUserId = extUserId; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.granted = granted; this.iconUrl = iconUrl; this.identityApi = identityApi; @@ -689,15 +685,6 @@ public Optional getExtUserId() { return extUserId; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - /** * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. */ @@ -783,12 +770,6 @@ public Optional getWaadProtocol() { return waadProtocol; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("upstream_params") private OptionalNullable>> @@ -860,7 +841,6 @@ private boolean equalTo(ConnectionOptionsAzureAd other) { && extUpn.equals(other.extUpn) && extUsageLocation.equals(other.extUsageLocation) && extUserId.equals(other.extUserId) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && granted.equals(other.granted) && iconUrl.equals(other.iconUrl) && identityApi.equals(other.identityApi) @@ -933,7 +913,6 @@ public int hashCode() { this.extUpn, this.extUsageLocation, this.extUserId, - this.federatedConnectionsAccessTokens, this.granted, this.iconUrl, this.identityApi, @@ -1300,20 +1279,6 @@ public interface _FinalStage { _FinalStage extUserId(Boolean extUserId); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - /** *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

*/ @@ -1431,9 +1396,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional granted = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional extUserId = Optional.empty(); private Optional extUsageLocation = Optional.empty(); @@ -1595,7 +1557,6 @@ public Builder from(ConnectionOptionsAzureAd other) { extUpn(other.getExtUpn()); extUsageLocation(other.getExtUsageLocation()); extUserId(other.getExtUserId()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); granted(other.getGranted()); iconUrl(other.getIconUrl()); identityApi(other.getIdentityApi()); @@ -1862,47 +1823,6 @@ public _FinalStage granted(Optional granted) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - /** *

When false, prevents storing an alternative user ID. When true (default), this user ID is persisted in the user profile.

* @return Reference to {@code this} so that method calls can be chained together. @@ -2908,7 +2828,6 @@ public ConnectionOptionsAzureAd build() { extUpn, extUsageLocation, extUserId, - federatedConnectionsAccessTokens, granted, iconUrl, identityApi, 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 bb79a4a4..80ab6a58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java @@ -37,8 +37,6 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -81,7 +79,6 @@ private ConnectionOptionsCommonOidc( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, - OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, @@ -105,7 +102,6 @@ private ConnectionOptionsCommonOidc( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -161,16 +157,6 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - @java.lang.Override - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -283,12 +269,6 @@ public Optional getUserinfoEndpoint() { return userinfoEndpoint; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -332,7 +312,6 @@ private boolean equalTo(ConnectionOptionsCommonOidc other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -360,7 +339,6 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, - this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, @@ -421,20 +399,6 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -576,9 +540,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -602,7 +563,6 @@ public Builder from(ConnectionOptionsCommonOidc other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -948,47 +908,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1063,7 +982,6 @@ public ConnectionOptionsCommonOidc build() { connectionSettings, domainAliases, dpopSigningAlg, - federatedConnectionsAccessTokens, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java index 7082b035..50f1d4ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java @@ -227,7 +227,6 @@ public NameStage email(@NotNull ConnectionEmailEmail email) { } /** - *

Connection name

*

Connection name

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java index 63abb262..6406e4c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java @@ -60,8 +60,6 @@ public final class ConnectionOptionsGoogleApps implements IConnectionOptionsComm private final Optional extIsSuspended; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional handleLoginFromSocial; private final Optional iconUrl; @@ -99,7 +97,6 @@ private ConnectionOptionsGoogleApps( Optional extGroupsExtended, Optional extIsAdmin, Optional extIsSuspended, - OptionalNullable federatedConnectionsAccessTokens, Optional handleLoginFromSocial, Optional iconUrl, Optional mapUserIdToId, @@ -126,7 +123,6 @@ private ConnectionOptionsGoogleApps( this.extGroupsExtended = extGroupsExtended; this.extIsAdmin = extIsAdmin; this.extIsSuspended = extIsSuspended; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.handleLoginFromSocial = handleLoginFromSocial; this.iconUrl = iconUrl; this.mapUserIdToId = mapUserIdToId; @@ -233,15 +229,6 @@ public Optional getExtIsSuspended() { return extIsSuspended; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("handle_login_from_social") public Optional getHandleLoginFromSocial() { return handleLoginFromSocial; @@ -292,12 +279,6 @@ public OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("upstream_params") private OptionalNullable>> @@ -334,7 +315,6 @@ private boolean equalTo(ConnectionOptionsGoogleApps other) { && extGroupsExtended.equals(other.extGroupsExtended) && extIsAdmin.equals(other.extIsAdmin) && extIsSuspended.equals(other.extIsSuspended) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && handleLoginFromSocial.equals(other.handleLoginFromSocial) && iconUrl.equals(other.iconUrl) && mapUserIdToId.equals(other.mapUserIdToId) @@ -365,7 +345,6 @@ public int hashCode() { this.extGroupsExtended, this.extIsAdmin, this.extIsSuspended, - this.federatedConnectionsAccessTokens, this.handleLoginFromSocial, this.iconUrl, this.mapUserIdToId, @@ -471,20 +450,6 @@ public interface _FinalStage { _FinalStage extIsSuspended(Boolean extIsSuspended); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); @@ -557,9 +522,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional handleLoginFromSocial = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional extIsSuspended = Optional.empty(); private Optional extIsAdmin = Optional.empty(); @@ -616,7 +578,6 @@ public Builder from(ConnectionOptionsGoogleApps other) { extGroupsExtended(other.getExtGroupsExtended()); extIsAdmin(other.getExtIsAdmin()); extIsSuspended(other.getExtIsSuspended()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); handleLoginFromSocial(other.getHandleLoginFromSocial()); iconUrl(other.getIconUrl()); mapUserIdToId(other.getMapUserIdToId()); @@ -783,47 +744,6 @@ public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage extIsSuspended(Boolean extIsSuspended) { this.extIsSuspended = Optional.ofNullable(extIsSuspended); @@ -1073,7 +993,6 @@ public ConnectionOptionsGoogleApps build() { extGroupsExtended, extIsAdmin, extIsSuspended, - federatedConnectionsAccessTokens, handleLoginFromSocial, iconUrl, mapUserIdToId, 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 3997e321..bd1a13ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java @@ -37,8 +37,6 @@ public final class ConnectionOptionsOidc implements IConnectionOptionsCommonOidc private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -89,7 +87,6 @@ private ConnectionOptionsOidc( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, - OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, @@ -117,7 +114,6 @@ private ConnectionOptionsOidc( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -177,16 +173,6 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - @java.lang.Override - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -320,12 +306,6 @@ public Optional getType() { return type; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -369,7 +349,6 @@ private boolean equalTo(ConnectionOptionsOidc other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -401,7 +380,6 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, - this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, @@ -466,20 +444,6 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -645,9 +609,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -671,7 +632,6 @@ public Builder from(ConnectionOptionsOidc other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1073,47 +1033,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1188,7 +1107,6 @@ public ConnectionOptionsOidc build() { connectionSettings, domainAliases, dpopSigningAlg, - federatedConnectionsAccessTokens, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, 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 41c7dace..06495614 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java @@ -39,8 +39,6 @@ public final class ConnectionOptionsOkta implements IConnectionOptionsCommon, IC private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -90,7 +88,6 @@ private ConnectionOptionsOkta( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, - OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, @@ -118,7 +115,6 @@ private ConnectionOptionsOkta( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -183,16 +179,6 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - @java.lang.Override - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -320,12 +306,6 @@ public Optional getType() { return type; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -370,7 +350,6 @@ private boolean equalTo(ConnectionOptionsOkta other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -402,7 +381,6 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, - this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, @@ -470,20 +448,6 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -643,9 +607,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -672,7 +633,6 @@ public Builder from(ConnectionOptionsOkta other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1060,47 +1020,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1189,7 +1108,6 @@ public ConnectionOptionsOkta build() { connectionSettings, domainAliases, dpopSigningAlg, - federatedConnectionsAccessTokens, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, 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 dbd3fd44..49646744 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -83,8 +83,6 @@ public final class ConnectionPropertiesOptions { private final OptionalNullable gatewayAuthentication; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional passwordOptions; private final Optional assertionDecryptionSettings; @@ -137,7 +135,6 @@ private ConnectionPropertiesOptions( OptionalNullable>> upstreamParams, Optional setUserRootAttributes, OptionalNullable gatewayAuthentication, - OptionalNullable federatedConnectionsAccessTokens, Optional passwordOptions, Optional assertionDecryptionSettings, OptionalNullable> idTokenSignedResponseAlgs, @@ -178,7 +175,6 @@ private ConnectionPropertiesOptions( this.upstreamParams = upstreamParams; this.setUserRootAttributes = setUserRootAttributes; this.gatewayAuthentication = gatewayAuthentication; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.passwordOptions = passwordOptions; this.assertionDecryptionSettings = assertionDecryptionSettings; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -403,15 +399,6 @@ public OptionalNullable getGatewayAuthenticatio return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("password_options") public Optional getPasswordOptions() { return passwordOptions; @@ -555,12 +542,6 @@ private OptionalNullable _getGatewayAuthenticat return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -632,7 +613,6 @@ private boolean equalTo(ConnectionPropertiesOptions other) { && upstreamParams.equals(other.upstreamParams) && setUserRootAttributes.equals(other.setUserRootAttributes) && gatewayAuthentication.equals(other.gatewayAuthentication) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && passwordOptions.equals(other.passwordOptions) && assertionDecryptionSettings.equals(other.assertionDecryptionSettings) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -677,7 +657,6 @@ public int hashCode() { this.upstreamParams, this.setUserRootAttributes, this.gatewayAuthentication, - this.federatedConnectionsAccessTokens, this.passwordOptions, this.assertionDecryptionSettings, this.idTokenSignedResponseAlgs, @@ -762,9 +741,6 @@ public static final class Builder { private OptionalNullable gatewayAuthentication = OptionalNullable.absent(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional passwordOptions = Optional.empty(); private Optional assertionDecryptionSettings = Optional.empty(); @@ -823,7 +799,6 @@ public Builder from(ConnectionPropertiesOptions other) { upstreamParams(other.getUpstreamParams()); setUserRootAttributes(other.getSetUserRootAttributes()); gatewayAuthentication(other.getGatewayAuthentication()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); passwordOptions(other.getPasswordOptions()); assertionDecryptionSettings(other.getAssertionDecryptionSettings()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1437,43 +1412,6 @@ public Builder gatewayAuthentication( return this; } - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public Builder federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - - public Builder federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - public Builder federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - public Builder federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - @JsonSetter(value = "password_options", nulls = Nulls.SKIP) public Builder passwordOptions(Optional passwordOptions) { this.passwordOptions = passwordOptions; @@ -1731,7 +1669,6 @@ public ConnectionPropertiesOptions build() { upstreamParams, setUserRootAttributes, gatewayAuthentication, - federatedConnectionsAccessTokens, passwordOptions, assertionDecryptionSettings, idTokenSignedResponseAlgs, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java index 75994ec6..5c7f8161 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java @@ -275,7 +275,6 @@ public Builder from(CreateActionRequestContent other) { } /** - *

The name of an action.

*

The name of an action.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java index 9f71be38..6b67cf5e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java @@ -238,7 +238,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -264,7 +263,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java index 103d7460..b52aade2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java @@ -278,7 +278,6 @@ public Builder from(CreateClientGrantRequestContent other) { } /** - *

The audience (API identifier) of this client grant

*

The audience (API identifier) of this client grant

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java index 196dbebd..98f40f19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -1348,7 +1348,6 @@ public Builder from(CreateClientRequestContent other) { } /** - *

Name of this client (min length: 1 character, does not allow < or >).

*

Name of this client (min length: 1 character, does not allow < or >).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java index 7957af75..b841315a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java @@ -333,7 +333,6 @@ public Builder from(CreateConnectionRequestContent other) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java index 7c33e18d..dd3f24f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java @@ -225,7 +225,6 @@ public Builder from(CreateCustomDomainRequestContent other) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java index 56378f8d..0beb4a79 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java @@ -361,7 +361,6 @@ public Builder from(CreateCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +372,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +383,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java index 9538773e..28d5f202 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java @@ -350,7 +350,6 @@ public Builder from(CreateDirectoryProvisioningResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -362,7 +361,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -374,7 +372,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -386,7 +383,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -398,7 +394,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -410,7 +405,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java index af32124c..d43f27db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java @@ -144,7 +144,6 @@ public Builder from(CreateDirectorySynchronizationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -156,7 +155,6 @@ public SynchronizationIdStage connectionId(@NotNull String connectionId) { } /** - *

The synchronization's identifier

*

The synchronization's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -168,7 +166,6 @@ public StatusStage synchronizationId(@NotNull String synchronizationId) { } /** - *

The synchronization status

*

The synchronization status

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java index 8f945052..398a1889 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java @@ -117,7 +117,6 @@ public Builder from(CreateEncryptionKeyPublicWrappingResponseContent other) { } /** - *

Public wrapping key in PEM format

*

Public wrapping key in PEM format

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java index 08839950..c4b4dc75 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java @@ -263,7 +263,6 @@ public Builder from(CreateEncryptionKeyResponseContent other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -289,7 +288,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -301,7 +299,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java index 1421fc9d..b2872adb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java @@ -204,7 +204,6 @@ public Builder from(CreateEventStreamTestEventResponseContent other) { } /** - *

Unique identifier for the delivery

*

Unique identifier for the delivery

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -216,7 +215,6 @@ public EventStreamIdStage id(@NotNull String id) { } /** - *

Unique identifier for the event stream.

*

Unique identifier for the event stream.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java index d98a7b0a..628db241 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java @@ -121,7 +121,6 @@ public Builder from(CreateExportUsersFields other) { } /** - *

Name of the field in the profile.

*

Name of the field in the profile.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java index 31a11a0b..8c97e50b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java @@ -266,7 +266,6 @@ public Builder from(CreateExportUsersResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -278,7 +277,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -290,7 +288,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java index 4b9f4b2f..8c0db6f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionActivecampaignApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java index 0a6b54c7..a6a70ccd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionActivecampaignUninitialized other) } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java index 1a298c34..60bb5d23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionAirtableApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java index 73bec5fe..c46ccaa8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionAirtableUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java index 5301b141..2d5e300b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionAuth0OauthApp other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java index be7b9c47..8c5d5863 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionAuth0Uninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java index 83ad39ca..579c4a7b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionBigqueryJwt other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java index 64309c78..869c4aa7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionBigqueryUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java index 47c25b64..7b68f713 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionClearbitApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java index 3a5c776f..a5ac651a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionClearbitUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java index a7b26704..786956d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionDocusignOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java index d98b3ab2..8a376701 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionDocusignUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java index b3d8b851..7751082d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionGoogleSheetsOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java index a6582ca2..8961ae27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionGoogleSheetsUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java index e92d0581..44f1e93e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java index ed376185..09beaf27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpBasicAuth other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java index 37290ead..c5eb428c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpBearer other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java index 60888598..c67d197d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpOauthClientCredentials other) } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java index aaaff6f0..00386624 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionHttpUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java index 9d4a11bd..eac2d835 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHubspotApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java index 682862ea..903dfdf9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHubspotOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java index 93935a48..c2ae0491 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionHubspotUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java index 0785b7bb..be983075 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java @@ -132,7 +132,6 @@ public Builder from(CreateFlowsVaultConnectionJwtJwt other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java index f0e8e415..dfc9ac72 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionJwtUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java index 4041a30f..b8ebddd1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionMailchimpApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java index d52bd220..5d9e8525 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionMailchimpOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java index ad41b4c8..e422648f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionMailchimpUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java index aabbdfc3..e59129ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionMailjetApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java index e7685921..5b3c8877 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionMailjetUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java index c08c0013..2bdd9029 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionPipedriveOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java index 60d17bb8..362720db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionPipedriveToken other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java index 985f69d9..f0cc1174 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionPipedriveUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java index 87e6bcde..8801e14f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java @@ -323,7 +323,6 @@ public Builder from(CreateFlowsVaultConnectionResponseContent other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -335,7 +334,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -347,7 +345,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -359,7 +356,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -371,7 +367,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -383,7 +378,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java index 49533d15..2c1a7b3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSalesforceOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java index 146ce72b..979322ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionSalesforceUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java index 9ef8e063..de94a204 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSendgridApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java index 40eb5406..bb4fbf15 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionSendgridUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java index 63222a79..5614972c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSlackOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java index 33fbd9dd..301999b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionSlackUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java index 853ad61d..4dbfcacf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSlackWebhook other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java index 1b2ad99c..c9994aa7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionStripeKeyPair other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java index 87f0ee04..3aebd325 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionStripeOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java index 607e9ae2..45d0633c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionStripeUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java index 09b10661..a109b44a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionTelegramToken other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java index a088e49f..f352f129 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionTelegramUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java index 2921ee21..50fa117e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionTwilioApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java index abe3037e..12ab6829 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionTwilioUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java index 246626fe..a04e858a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionWhatsappToken other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java index ccbcf55e..b8a5b31d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionWhatsappUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java index 0e344a13..4ad15d2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionZapierUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java index 214722b1..664335ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionZapierWebhook other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java index 679c70b3..9f0cff50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java @@ -188,7 +188,6 @@ public Builder from(CreateHookRequestContent other) { } /** - *

Name of this hook.

*

Name of this hook.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -200,7 +199,6 @@ public ScriptStage name(@NotNull String name) { } /** - *

Code to be executed when this hook runs.

*

Code to be executed when this hook runs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -212,7 +210,6 @@ public TriggerIdStage script(@NotNull String script) { } /** - *

Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message.

*

Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java index b563c018..647e19fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java @@ -218,7 +218,6 @@ public Builder from(CreateImportUsersResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -230,7 +229,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -242,7 +240,6 @@ public CreatedAtStage type(@NotNull String type) { } /** - *

When this job was created.

*

When this job was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -254,7 +251,6 @@ public IdStage createdAt(@NotNull String createdAt) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -266,7 +262,6 @@ public ConnectionIdStage id(@NotNull String id) { } /** - *

connection_id of the connection to which users will be imported.

*

connection_id of the connection to which users will be imported.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java index 9f4e9a90..8f8a1a08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java @@ -166,7 +166,6 @@ public ActiveStage description(@NotNull String description) { } /** - *

Indicates whether or not this access control list is actively being used

*

Indicates whether or not this access control list is actively being used

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java index 72848bb6..d37412f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java @@ -260,7 +260,6 @@ public Builder from(CreateOrganizationAllConnectionResponseContent other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java index c67e921e..ec97cb82 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java @@ -219,7 +219,6 @@ public Builder from(CreateOrganizationDiscoveryDomainResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java index d891bd2d..a8144138 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java @@ -225,7 +225,6 @@ public Builder from(CreateOrganizationRequestContent other) { } /** - *

The name of this organization.

*

The name of this organization.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0117814c..f9ce4405 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java @@ -220,7 +220,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java index 02793485..3b2f12b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java @@ -189,7 +189,6 @@ public Builder from(CreatePublicKeyDeviceCredentialRequestContent other) { } /** - *

Name for this device easily recognized by owner.

*

Name for this device easily recognized by owner.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -208,7 +207,6 @@ public ValueStage type(@NotNull DeviceCredentialPublicKeyTypeEnum type) { } /** - *

Base64 encoded string containing the credential.

*

Base64 encoded string containing the credential.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -220,7 +218,6 @@ public DeviceIdStage value(@NotNull String value) { } /** - *

Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

*

Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java index 13a068cc..f8ac7653 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java @@ -99,7 +99,6 @@ public Builder from(CreatePublicKeyDeviceCredentialResponseContent other) { } /** - *

The credential's identifier

*

The credential's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java index 57aa519d..bfc0f47f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java @@ -167,7 +167,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java index ddd2b739..73baef50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java @@ -232,7 +232,6 @@ public Builder from(CreateRateLimitPolicyResponseContent other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -258,7 +257,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java index 15c4fa3f..15d3d789 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java @@ -542,7 +542,6 @@ public Builder from(CreateResourceServerRequestContent other) { } /** - *

Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set.

*

Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java index ac4d8e96..db9667d8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java @@ -122,7 +122,6 @@ public Builder from(CreateRoleRequestContent other) { } /** - *

Name of the role.

*

Name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java index 70234113..b2485576 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java @@ -171,7 +171,6 @@ public Builder from(CreateRuleRequestContent other) { } /** - *

Name of this rule.

*

Name of this rule.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -183,7 +182,6 @@ public ScriptStage name(@NotNull String name) { } /** - *

Code to be executed when this rule runs.

*

Code to be executed when this rule runs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java index 6a60aeff..6fdc78e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java @@ -284,7 +284,6 @@ public Builder from(CreateScimConfigurationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -332,7 +328,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +339,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +350,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java index 2283ca8f..6f080c6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java @@ -219,7 +219,6 @@ public Builder from(CreateSelfServiceProfileRequestContent other) { } /** - *

The name of the self-service Profile.

*

The name of the self-service Profile.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java index 191c7374..ae5b1482 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java @@ -165,7 +165,6 @@ public Builder from(CreateTokenExchangeProfileRequestContent other) { } /** - *

Friendly name of this profile.

*

Friendly name of this profile.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -177,7 +176,6 @@ public SubjectTokenTypeStage name(@NotNull String name) { } /** - *

Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI.

*

Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -189,7 +187,6 @@ public ActionIdStage subjectTokenType(@NotNull String subjectTokenType) { } /** - *

The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger.

*

The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java index 20cd7844..6d6027e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java @@ -475,7 +475,6 @@ public Builder from(CreateUserRequestContent other) { } /** - *

Name of the connection this user should be created in.

*

Name of the connection this user should be created in.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java index c242bbf2..b33b8633 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java @@ -172,7 +172,6 @@ public Builder from(CreateVerificationEmailResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -184,7 +183,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -196,7 +194,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CredentialId.java b/src/main/java/com/auth0/client/mgmt/types/CredentialId.java index 9c6a9978..276cb45f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CredentialId.java +++ b/src/main/java/com/auth0/client/mgmt/types/CredentialId.java @@ -98,7 +98,6 @@ public Builder from(CredentialId other) { } /** - *

Credential ID

*

Credential ID

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java index c4f57616..0eb612af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java @@ -97,7 +97,6 @@ public Builder from(CrossAppAccessRequestingApp other) { } /** - *

Set to true to enable the connection as a Requesting Application for Cross App Access.

*

Set to true to enable the connection as a Requesting Application for Cross App Access.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java index 0f22b859..f92c1a8c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java @@ -379,7 +379,6 @@ public Builder from(CustomDomain other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -391,7 +390,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -403,7 +401,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java index 97dbcc51..829ea5e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -34,7 +35,8 @@ private DeleteActionRequestParameters(OptionalNullable force, Map getForce() { if (force == null) { return OptionalNullable.absent(); @@ -42,6 +44,12 @@ public OptionalNullable getForce() { return force; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("force") + private OptionalNullable _getForce() { + return force; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java index c0b37bd2..c985d721 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java @@ -6,9 +6,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; @@ -31,7 +31,7 @@ private DeleteUserBlocksByIdentifierRequestParameters(String identifier, MapShould be any of a username, phone number, or email.

*

Should be any of a username, phone number, or email.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java index a6189f35..70afd837 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java @@ -6,9 +6,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; @@ -31,7 +31,7 @@ private DeleteUserGrantByUserIdRequestParameters(String userId, Mapuser_id of the grant to delete.

*

user_id of the grant to delete.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java index 83502077..1e29a101 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java @@ -266,7 +266,6 @@ public Builder from(DeleteUserIdentityResponseContentItem other) { } /** - *

The name of the connection for the identity.

*

The name of the connection for the identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -278,7 +277,6 @@ public UserIdStage connection(@NotNull String connection) { } /** - *

The unique identifier for the user for the identity.

*

The unique identifier for the user for the identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -290,7 +288,6 @@ public ProviderStage userId(@NotNull UserId userId) { } /** - *

The type of identity provider.

*

The type of identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java index dcddd0b3..5b35e810 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java @@ -349,7 +349,6 @@ public Builder from(DirectoryProvisioning other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -361,7 +360,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +371,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +382,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -397,7 +393,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -409,7 +404,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java index 7340637f..40c38a64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java @@ -119,7 +119,6 @@ public Builder from(DirectoryProvisioningMappingItem other) { } /** - *

The field location in the Auth0 schema

*

The field location in the Auth0 schema

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public IdpStage auth0(@NotNull String auth0) { } /** - *

The field location in the IDP schema

*

The field location in the IDP schema

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java b/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java index a987492d..6fca99e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java @@ -147,7 +147,6 @@ public RecordStage name(@NotNull DomainVerificationMethodNameEnum name) { } /** - *

Value used to verify the domain.

*

Value used to verify the domain.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java index 64a339fc..27009dfc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java @@ -99,7 +99,6 @@ public Builder from(EmailProviderCredentialsSchemaZero other) { } /** - *

API Key

*

API Key

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java index 0f6dffd8..edb37d7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java @@ -262,7 +262,6 @@ public Builder from(EncryptionKey other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -288,7 +287,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -300,7 +298,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java index 860e983c..3df3d5a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java @@ -98,7 +98,6 @@ public Builder from(EventStreamActionConfiguration other) { } /** - *

Action ID for the action destination.

*

Action ID for the action destination.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java index a5fd04e8..9b23b018 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventConnectionCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java index 1fd7b421..964d9a84 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventConnectionCreatedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventConnectionCreatedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java index 5ca7a3a2..66827bee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java index b424019f..8cf86908 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java index 71f9d577..e21b1cb8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java index 1b237677..ce43ec61 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java index 4ba0e61c..66c49bde 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java index faeb2e6b..c21a8a76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java index 6bd9b828..58cee380 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java index 88253d13..b6c6ddd8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java index 0310c754..0b196a40 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject2 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java index bbdf5d6b..f210377f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject3 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java index a4cfb06a..586cbb5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java @@ -567,7 +567,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject3Options other) } /** - *

URL provided by PingFederate which returns information used for creating the connection

*

URL provided by PingFederate which returns information used for creating the connection

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java index 7ab40180..5a0fd7e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject4 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java index 70293f1c..e1e0fa31 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java @@ -318,7 +318,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject5 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +329,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java index 4296b9c9..cd6b1229 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject6 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java index 01441213..cd96c3b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java @@ -631,7 +631,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject6Options other) } /** - *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

*

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java index e3ad1414..7b8a211f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java index ad634789..45aa19f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject7 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java index 20bc92b9..24c2ecd3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java @@ -736,7 +736,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject7Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java index 75c6b940..d013f622 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java index 540c8747..d99dc620 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventConnectionDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java index eb445733..702793fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventConnectionDeletedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventConnectionDeletedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java index 817394a2..19546f20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java index daf0272c..4021bd52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java index efea7ae3..c03d4e1e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java index dea16359..d3c02e0c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java index 4ae5c52f..faed49ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java index 77422546..ebce90ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java index 57d40975..82aaa110 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java index c3382601..9dc83651 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java index 341ffcd5..1512c6c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject2 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java index 2a2e4b80..205a6cb8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject3 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java index 63646efb..8d88f016 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java @@ -567,7 +567,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject3Options other) } /** - *

URL provided by PingFederate which returns information used for creating the connection

*

URL provided by PingFederate which returns information used for creating the connection

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java index 1f6b5802..35666037 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject4 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java index 98eb21f8..d9da5e94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java @@ -318,7 +318,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject5 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +329,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java index ccba9865..8593acc8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject6 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java index 7904b2bb..88101ea9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java @@ -631,7 +631,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject6Options other) } /** - *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

*

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java index 38900ced..c563cfea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java index 4c72a540..5189a96f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject7 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java index cfd7eb1c..cc793d70 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java @@ -736,7 +736,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject7Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java index 0902bcd4..b95ba203 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java index 28790617..bb31eac2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventConnectionUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java index 3bbeb710..b9d96fa3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventConnectionUpdatedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventConnectionUpdatedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java index 7dc8afcd..c110b385 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java index 20cf83cc..baa79b36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java index 2b090aa4..fcf285cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java index fcabc733..58b64908 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java index dd610e70..e421465d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java index ad642bbf..cf7accfd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java index b4bb2e6b..1d6fcd64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java index b0d3080e..ff24d8e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java index 28309646..ec31b0d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject2 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java index f2a06880..27727db5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject3 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java index ed6a007f..1d847154 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java @@ -567,7 +567,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject3Options other) } /** - *

URL provided by PingFederate which returns information used for creating the connection

*

URL provided by PingFederate which returns information used for creating the connection

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java index 7844ca7d..6250a25f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject4 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java index 3e9a5f71..f4c0b109 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java @@ -318,7 +318,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject5 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +329,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java index 0a5cd562..9bc1cde9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject6 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java index 225f6acc..c81539d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java @@ -631,7 +631,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject6Options other) } /** - *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

*

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java index 7c44fbfb..6faca28c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java index 5c06664c..26792d96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject7 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java index efc2589a..d5bc21c2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java @@ -736,7 +736,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject7Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java index b8d56c16..8c436139 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java index 40d48673..d87e7782 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java @@ -140,7 +140,6 @@ public Builder from(EventStreamCloudEventContextClient other) { } /** - *

The client identifier.

*

The client identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -152,7 +151,6 @@ public NameStage id(@NotNull String id) { } /** - *

The client name.

*

The client name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java index a1c9040e..05b492f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java @@ -142,7 +142,6 @@ public Builder from(EventStreamCloudEventContextConnection other) { } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -154,7 +153,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection.

*

The name of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -166,7 +164,6 @@ public StrategyStage name(@NotNull String name) { } /** - *

The auth strategy implemented by the connection.

*

The auth strategy implemented by the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java index 8698c70b..9b39a01e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java @@ -220,7 +220,6 @@ public HostnameStage geo(@NotNull EventStreamCloudEventContextRequestGeo geo) { } /** - *

The hostname the request is for.

*

The hostname the request is for.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -232,7 +231,6 @@ public IpStage hostname(@NotNull String hostname) { } /** - *

The originating IP address of the request.

*

The originating IP address of the request.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -244,7 +242,6 @@ public MethodStage ip(@NotNull String ip) { } /** - *

The HTTP method used for the request.

*

The HTTP method used for the request.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -256,7 +253,6 @@ public UserAgentStage method(@NotNull String method) { } /** - *

The value of the User-Agent header.

*

The value of the User-Agent header.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java index 277036b8..5238871d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventContextTenant other) { } /** - *

Machine-generated unique tenant identifier.

*

Machine-generated unique tenant identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java index 83f28b30..ceb58c98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java @@ -147,7 +147,6 @@ public MessageStage code(@NotNull EventStreamCloudEventErrorCodeEnum code) { } /** - *

Human-readable error message.

*

Human-readable error message.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java index 14f8faa0..70bc062e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java @@ -116,7 +116,6 @@ public Builder from(EventStreamCloudEventGroupCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java index 2239a6f2..89ebab52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupCreatedCloudEventType } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupCreatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java index bdf7ff22..87b2edaf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupCreatedObject0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupCreatedObject0T } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java index a62b38b4..f800eaa1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupCreatedObject1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupCreatedObject } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java index e4ba9cce..e6ee8d6d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java @@ -190,7 +190,6 @@ public Builder from(EventStreamCloudEventGroupCreatedObject2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -202,7 +201,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -214,7 +212,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java index a73906a6..764aa631 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java @@ -116,7 +116,6 @@ public Builder from(EventStreamCloudEventGroupDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java index 90619039..839ba299 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupDeletedCloudEventType } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupDeletedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java index 8dff4b98..c3d6f6ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupDeletedObject0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupDeletedObject0T } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage connectionId(@NotNull String connectionId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java index dc8d0009..757518c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupDeletedObject1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupDeletedObject } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage organizationId(@NotNull String organizationId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java index e482dc4d..dfeb83ba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupDeletedObject2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public UpdatedAtStage type(@NotNull EventStreamCloudEventGroupDeletedObject2Type } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java index b9a09c15..794df3cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupMemberAdded other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java index b878d37f..7038825b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupMemberAddedCloudEvent } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupMemberAddedData dat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java index 1fccd52f..aaf0440a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberAddedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupMemberAddedObje } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java index fc088710..6281ee7b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberAddedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupMemberAddedOb } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java index 19e26153..b3c985db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupMemberAddedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java index 7433827f..ebe073ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java @@ -125,7 +125,6 @@ public IdStage memberType( } /** - *

The user's unique identifier

*

The user's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java index e660fce3..4a6f2a96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java @@ -172,7 +172,6 @@ public IdStage memberType( } /** - *

The connection member's unique identifier

*

The connection member's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -184,7 +183,6 @@ public TypeStage id(@NotNull String id) { } /** - *

The type of the connection

*

The type of the connection

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -196,7 +194,6 @@ public ConnectionIdStage type(@NotNull String type) { } /** - *

Connection ID associated with the member

*

Connection ID associated with the member

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java index 90c510ef..a35f59e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java index f7c38e92..bee6ff89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupMemberDeletedCloudEve } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupMemberDeletedData d } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java index fa1b9252..221d83c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupMemberDeletedOb } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java index 0dae6da8..27223e03 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupMemberDeleted } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java index 6a62c78c..d15b639c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java index e0f9f6e4..d6bb04d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java @@ -125,7 +125,6 @@ public IdStage memberType( } /** - *

The user's unique identifier

*

The user's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java index 9258b796..e7b3e6c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java @@ -172,7 +172,6 @@ public IdStage memberType( } /** - *

The connection member's unique identifier

*

The connection member's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -184,7 +183,6 @@ public TypeStage id(@NotNull String id) { } /** - *

The type of the connection

*

The type of the connection

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -196,7 +194,6 @@ public ConnectionIdStage type(@NotNull String type) { } /** - *

Connection ID associated with the member

*

Connection ID associated with the member

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java index ef74a3fb..60fe4198 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssigned other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java index e9687e44..c32f0ce8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupRoleAssignedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupRoleAssignedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java index 8ad51d5f..6f5c21f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java @@ -148,7 +148,6 @@ public CreatedAtStage role(@NotNull EventStreamCloudEventGroupRoleAssignedObject } /** - *

The time at which the role was assigned to the group.

*

The time at which the role was assigned to the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java index 57512718..36a022ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupRoleAssignedObj } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java index 94584d80..b7a708ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupRoleAssignedO } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java index c6df4222..e98492b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java index b28d6d65..5ec55910 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java index d54b1110..547020fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java index be6c90d0..f3e3b444 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupRoleDeletedCloudEvent } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupRoleDeletedData dat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java index 45d18c05..49fe8e51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java @@ -148,7 +148,6 @@ public DeletedAtStage role(@NotNull EventStreamCloudEventGroupRoleDeletedObjectR } /** - *

The time at which the role was removed from the group.

*

The time at which the role was removed from the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java index 045bdaf4..491dbe49 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupRoleDeletedObje } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java index ff9f9c45..269e2d76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupRoleDeletedOb } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java index a778d6d4..06b8bc34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java index 47abba57..ceecf1b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java index fca339cb..4dc98558 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java @@ -116,7 +116,6 @@ public Builder from(EventStreamCloudEventGroupUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java index 1eb3f372..de1d5004 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupUpdatedCloudEventType } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupUpdatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java index 7b5731c0..8e886553 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupUpdatedObject0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupUpdatedObject0T } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage connectionId(@NotNull String connectionId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java index f62fd956..b6fdf005 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupUpdatedObject1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupUpdatedObject } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage organizationId(@NotNull String organizationId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java index e22e201e..505fa11c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupUpdatedObject2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public UpdatedAtStage type(@NotNull EventStreamCloudEventGroupUpdatedObject2Type } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java index 2e1f1515..b9aea778 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOffsetOnlyMessage other) { } /** - *

Opaque cursor representing the latest position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing the latest position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java index ba9bbf01..a23203d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgConnectionAdded other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java index 5e24cd6e..625c8fe6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgConnectionAddedCloudEve } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgConnectionAddedData d } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java index e9d4a164..0cfcf7bd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgConnectionAddedObjectConnection othe } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java index 6dbc5e0d..988068cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgConnectionAddedObjectOrganization ot } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java index 8c0be8d1..ffec2396 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgConnectionRemoved other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java index 6f2c74f1..cdc53854 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgConnectionRemovedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgConnectionRemovedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java index d2774af3..a8adbeef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgConnectionRemovedObjectConnection ot } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java index 3523d774..3df84ad7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgConnectionRemovedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java index 7b7ecbe6..141aaad8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java index b17f9e89..5fa7c617 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgConnectionUpdatedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgConnectionUpdatedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java index 41eaa70f..3324be44 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdatedObjectConnection ot } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java index a1c16162..804d93a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdatedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java index e168f633..4216ea84 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventOrgCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java index a55870f6..35e2b20d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgCreatedCloudEventTypeEn } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgCreatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java index 5e1d4223..b543596d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java @@ -183,7 +183,6 @@ public Builder from(EventStreamCloudEventOrgCreatedObject other) { } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java index f0444b0e..ed145d7d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventOrgDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java index fc39b3d3..f81b5a99 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgDeletedCloudEventTypeEn } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgDeletedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java index 5fcdbfef..01fd86a2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgDeletedObject other) { } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java index fc22b3ce..2922bbcb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssigned other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java index 28c6122b..7bc2f6ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssignedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgGroupRoleAssignedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java index c8c3cd95..257ec244 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java @@ -175,7 +175,6 @@ public CreatedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleAssignedOb } /** - *

The time at which the role was assigned to the group in the organization.

*

The time at which the role was assigned to the group in the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java index f6400b15..4fdd56e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssigned } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java index e23039f8..b09c88d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssign } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java index 994cc95f..1dea9397 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java index bdfd5d15..3da65229 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java index 9e4e16ff..170455a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java index 73d03e05..d989deb1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java index 45e2e4a0..9866bbf6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgGroupRoleDeletedCloudEv } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgGroupRoleDeletedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java index a73b7597..76870870 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java @@ -175,7 +175,6 @@ public DeletedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleDeletedObj } /** - *

The time at which the role was removed from the group in the organization.

*

The time at which the role was removed from the group in the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java index 3ba36126..d2aeb049 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleDeletedO } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java index c8c4ed2d..68e245f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleDelete } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java index 9a486699..5fd68b4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java index 28dfa483..32a582e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization o } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java index 9a0b7931..c47436ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java index 306d0aa6..39ed6ad6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberAdded other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java index fbfeade8..6b873a85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberAddedCloudEventTy } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberAddedData data) } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java index ab458658..eeccf887 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgMemberAddedObjectOrganization other) } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java index efede79a..a0c74eab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOrgMemberAddedObjectUser other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java index b2f6fef2..c3d605ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java index 2671db41..590949c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberDeletedCloudEvent } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberDeletedData dat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java index 7dbc8e81..a45e904f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgMemberDeletedObjectOrganization othe } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java index 0f5fee04..0fc5315c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOrgMemberDeletedObjectUser other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java index 983909ce..62f92aae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssigned other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java index 1d64e351..a1b28905 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberRoleAssignedCloud } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberRoleAssignedDat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java index 32729156..500c5669 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java index 824b0bff..7f10f3cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedObjectRole other) } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java index 09cbffc5..ebd1ef2d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedObjectUser other) } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java index 2d04003b..4e568639 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java index fc762f77..dcfd08d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberRoleDeletedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberRoleDeletedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java index d6f7a56e..a5bca598 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java index bcf322e6..7cf6a434 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java index 493ccfef..20cbae38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedObjectUser other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java index 122184a5..b8b474d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventOrgUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java index 0e265994..4dfe2149 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgUpdatedCloudEventTypeEn } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgUpdatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java index 537970b7..b246eabb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java @@ -183,7 +183,6 @@ public Builder from(EventStreamCloudEventOrgUpdatedObject other) { } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java index 974f9989..76505797 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventUserCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java index dfa87310..5dc5ef52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventUserCreatedCloudEventTypeE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventUserCreatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java index d5a0195d..a46dea36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java @@ -577,7 +577,6 @@ public Builder from(EventStreamCloudEventUserCreatedObject other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -589,7 +588,6 @@ public CreatedAtStage userId(@NotNull String userId) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -601,7 +599,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java index e7ce2b54..0ba463c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java index 452e5bf5..7e2cba94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java index 61f36554..f18d974b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpri } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java index 0d4478c2..224c0398 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java @@ -176,7 +176,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemPassword } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java index a4e40b73..80c55a67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java index 47b8950f..2dfc193c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventUserDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java index d7832e6e..00b2e9d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventUserDeletedCloudEventTypeE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventUserDeletedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java index e5238cc0..39f37bc7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java @@ -602,7 +602,6 @@ public Builder from(EventStreamCloudEventUserDeletedObject other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -614,7 +613,6 @@ public CreatedAtStage userId(@NotNull String userId) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -626,7 +624,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -638,7 +635,6 @@ public DeletedAtStage updatedAt(@NotNull OffsetDateTime updatedAt) { } /** - *

Date and time when this entity was deleted (ISO_8601 format).

*

Date and time when this entity was deleted (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java index 73749953..2b46d7c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java index 419ccb42..c338b4cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java index 2a1e687f..327fd0d8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpri } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java index 08e53fef..1c7f83b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java @@ -176,7 +176,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemPassword } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java index 8befc381..481835c2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java index 6a0b741e..3fb13870 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventUserUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java index d7feb673..212b8331 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventUserUpdatedCloudEventTypeE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventUserUpdatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java index b13a9f46..718d9e7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java @@ -577,7 +577,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObject other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -589,7 +588,6 @@ public CreatedAtStage userId(@NotNull String userId) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -601,7 +599,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java index 129e8c3a..a9ee1771 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java index e8151f7c..c657a1b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java index f6e0423a..d1ae51fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpri } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java index ebd5f877..647e5811 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java @@ -176,7 +176,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemPassword } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java index f1fad131..c4145bd4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java index 3e55b7e2..c5662cbe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java @@ -203,7 +203,6 @@ public Builder from(EventStreamDelivery other) { } /** - *

Unique identifier for the delivery

*

Unique identifier for the delivery

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -215,7 +214,6 @@ public EventStreamIdStage id(@NotNull String id) { } /** - *

Unique identifier for the event stream.

*

Unique identifier for the event stream.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java index d8502ab4..a66e1105 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java @@ -150,7 +150,6 @@ public TimestampStage status(@NotNull EventStreamDeliveryStatusEnum status) { } /** - *

Timestamp of delivery attempt

*

Timestamp of delivery attempt

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java index 100c67e4..7193467f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java @@ -143,7 +143,6 @@ public Builder from(EventStreamEventBridgeConfiguration other) { } /** - *

AWS Account ID for EventBridge destination.

*

AWS Account ID for EventBridge destination.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java index f9a0bffb..50d5853f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java @@ -121,7 +121,6 @@ public UsernameStage method(@NotNull EventStreamWebhookBasicAuthMethodEnum metho } /** - *

Username

*

Username

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java index 2c0760dc..a4f91866 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java @@ -116,7 +116,6 @@ public Builder from(EventStreamWebhookConfiguration other) { } /** - *

Target HTTP endpoint URL.

*

Target HTTP endpoint URL.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java index 3d9b9bd3..6bf1f0f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java @@ -124,7 +124,6 @@ public HeaderKeyStage method(@NotNull EventStreamWebhookCustomHeaderAuthMethodEn } /** - *

HTTP header name.

*

HTTP header name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java index 54865823..188b09e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java @@ -304,7 +304,6 @@ public Builder from(ExpressConfiguration other) { } /** - *

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

*

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -317,7 +316,6 @@ public UserAttributeProfileIdStage initiateLoginUriTemplate(@NotNull String init } /** - *

The ID of the user attribute profile to use for this application.

*

The ID of the user attribute profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +328,6 @@ public ConnectionProfileIdStage userAttributeProfileId(@NotNull String userAttri } /** - *

The ID of the connection profile to use for this application.

*

The ID of the connection profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +340,6 @@ public EnableClientStage connectionProfileId(@NotNull String connectionProfileId } /** - *

When true, all connections made via express configuration will be enabled for this application.

*

When true, all connections made via express configuration will be enabled for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +351,6 @@ public EnableOrganizationStage enableClient(boolean enableClient) { } /** - *

When true, all connections made via express configuration will have the associated organization enabled.

*

When true, all connections made via express configuration will have the associated organization enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +362,6 @@ public OktaOinClientIdStage enableOrganization(boolean enableOrganization) { } /** - *

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

*

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +373,6 @@ public AdminLoginDomainStage oktaOinClientId(@NotNull String oktaOinClientId) { } /** - *

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

*

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java b/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java index 66ad5115..ad615bae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java @@ -304,7 +304,6 @@ public Builder from(ExpressConfigurationOrNull other) { } /** - *

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

*

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -317,7 +316,6 @@ public UserAttributeProfileIdStage initiateLoginUriTemplate(@NotNull String init } /** - *

The ID of the user attribute profile to use for this application.

*

The ID of the user attribute profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +328,6 @@ public ConnectionProfileIdStage userAttributeProfileId(@NotNull String userAttri } /** - *

The ID of the connection profile to use for this application.

*

The ID of the connection profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +340,6 @@ public EnableClientStage connectionProfileId(@NotNull String connectionProfileId } /** - *

When true, all connections made via express configuration will be enabled for this application.

*

When true, all connections made via express configuration will be enabled for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +351,6 @@ public EnableOrganizationStage enableClient(boolean enableClient) { } /** - *

When true, all connections made via express configuration will have the associated organization enabled.

*

When true, all connections made via express configuration will have the associated organization enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +362,6 @@ public OktaOinClientIdStage enableOrganization(boolean enableOrganization) { } /** - *

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

*

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +373,6 @@ public AdminLoginDomainStage oktaOinClientId(@NotNull String oktaOinClientId) { } /** - *

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

*

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java b/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java deleted file mode 100644 index fa43fb93..00000000 --- a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java +++ /dev/null @@ -1,292 +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.time.OffsetDateTime; -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 = FederatedConnectionTokenSet.Builder.class) -public final class FederatedConnectionTokenSet { - private final Optional id; - - private final Optional connection; - - private final Optional scope; - - private final OptionalNullable expiresAt; - - private final Optional issuedAt; - - private final OptionalNullable lastUsedAt; - - private final Map additionalProperties; - - private FederatedConnectionTokenSet( - Optional id, - Optional connection, - Optional scope, - OptionalNullable expiresAt, - Optional issuedAt, - OptionalNullable lastUsedAt, - Map additionalProperties) { - this.id = id; - this.connection = connection; - this.scope = scope; - this.expiresAt = expiresAt; - this.issuedAt = issuedAt; - this.lastUsedAt = lastUsedAt; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("id") - public Optional getId() { - return id; - } - - @JsonProperty("connection") - public Optional getConnection() { - return connection; - } - - @JsonProperty("scope") - public Optional getScope() { - return scope; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("expires_at") - public OptionalNullable getExpiresAt() { - if (expiresAt == null) { - return OptionalNullable.absent(); - } - return expiresAt; - } - - @JsonProperty("issued_at") - public Optional getIssuedAt() { - return issuedAt; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("last_used_at") - public OptionalNullable getLastUsedAt() { - if (lastUsedAt == null) { - return OptionalNullable.absent(); - } - return lastUsedAt; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("expires_at") - private OptionalNullable _getExpiresAt() { - return expiresAt; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("last_used_at") - private OptionalNullable _getLastUsedAt() { - return lastUsedAt; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof FederatedConnectionTokenSet && equalTo((FederatedConnectionTokenSet) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(FederatedConnectionTokenSet other) { - return id.equals(other.id) - && connection.equals(other.connection) - && scope.equals(other.scope) - && expiresAt.equals(other.expiresAt) - && issuedAt.equals(other.issuedAt) - && lastUsedAt.equals(other.lastUsedAt); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash(this.id, this.connection, this.scope, this.expiresAt, this.issuedAt, this.lastUsedAt); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static Builder builder() { - return new Builder(); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional id = Optional.empty(); - - private Optional connection = Optional.empty(); - - private Optional scope = Optional.empty(); - - private OptionalNullable expiresAt = OptionalNullable.absent(); - - private Optional issuedAt = Optional.empty(); - - private OptionalNullable lastUsedAt = OptionalNullable.absent(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(FederatedConnectionTokenSet other) { - id(other.getId()); - connection(other.getConnection()); - scope(other.getScope()); - expiresAt(other.getExpiresAt()); - issuedAt(other.getIssuedAt()); - lastUsedAt(other.getLastUsedAt()); - return this; - } - - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public Builder id(Optional id) { - this.id = id; - return this; - } - - public Builder id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @JsonSetter(value = "connection", nulls = Nulls.SKIP) - public Builder connection(Optional connection) { - this.connection = connection; - return this; - } - - public Builder connection(String connection) { - this.connection = Optional.ofNullable(connection); - return this; - } - - @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional scope) { - this.scope = scope; - return this; - } - - public Builder scope(String scope) { - this.scope = Optional.ofNullable(scope); - return this; - } - - @JsonSetter(value = "expires_at", nulls = Nulls.SKIP) - public Builder expiresAt(@Nullable OptionalNullable expiresAt) { - this.expiresAt = expiresAt; - return this; - } - - public Builder expiresAt(OffsetDateTime expiresAt) { - this.expiresAt = OptionalNullable.of(expiresAt); - return this; - } - - public Builder expiresAt(Optional expiresAt) { - if (expiresAt.isPresent()) { - this.expiresAt = OptionalNullable.of(expiresAt.get()); - } else { - this.expiresAt = OptionalNullable.absent(); - } - return this; - } - - public Builder expiresAt(com.auth0.client.mgmt.core.Nullable expiresAt) { - if (expiresAt.isNull()) { - this.expiresAt = OptionalNullable.ofNull(); - } else if (expiresAt.isEmpty()) { - this.expiresAt = OptionalNullable.absent(); - } else { - this.expiresAt = OptionalNullable.of(expiresAt.get()); - } - return this; - } - - @JsonSetter(value = "issued_at", nulls = Nulls.SKIP) - public Builder issuedAt(Optional issuedAt) { - this.issuedAt = issuedAt; - return this; - } - - public Builder issuedAt(OffsetDateTime issuedAt) { - this.issuedAt = Optional.ofNullable(issuedAt); - return this; - } - - @JsonSetter(value = "last_used_at", nulls = Nulls.SKIP) - public Builder lastUsedAt(@Nullable OptionalNullable lastUsedAt) { - this.lastUsedAt = lastUsedAt; - return this; - } - - public Builder lastUsedAt(OffsetDateTime lastUsedAt) { - this.lastUsedAt = OptionalNullable.of(lastUsedAt); - return this; - } - - public Builder lastUsedAt(Optional lastUsedAt) { - if (lastUsedAt.isPresent()) { - this.lastUsedAt = OptionalNullable.of(lastUsedAt.get()); - } else { - this.lastUsedAt = OptionalNullable.absent(); - } - return this; - } - - public Builder lastUsedAt(com.auth0.client.mgmt.core.Nullable lastUsedAt) { - if (lastUsedAt.isNull()) { - this.lastUsedAt = OptionalNullable.ofNull(); - } else if (lastUsedAt.isEmpty()) { - this.lastUsedAt = OptionalNullable.absent(); - } else { - this.lastUsedAt = OptionalNullable.of(lastUsedAt.get()); - } - return this; - } - - public FederatedConnectionTokenSet build() { - return new FederatedConnectionTokenSet( - id, connection, scope, expiresAt, issuedAt, lastUsedAt, 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/FlowAction.java b/src/main/java/com/auth0/client/mgmt/types/FlowAction.java index e87c6ae8..47dd8aee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowAction.java @@ -266,18 +266,6 @@ static final class Deserializer extends StdDeserializer { @java.lang.Override public FlowAction deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionActivecampaign.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAirtable.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAuth0.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -288,10 +276,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionClearbit.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -302,10 +286,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionFlow.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -326,18 +306,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionHubspot.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJson.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJwt.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -358,18 +326,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionOtp.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionPipedrive.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionSalesforce.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -390,10 +346,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionStripe.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -404,10 +356,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionTwilio.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -418,10 +366,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionXml.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -432,6 +376,62 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionActivecampaign.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAirtable.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAuth0.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionClearbit.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionFlow.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionHubspot.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJson.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJwt.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionOtp.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionPipedrive.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionSalesforce.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionStripe.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionTwilio.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionXml.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java index 337c9f3f..2d7694b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java @@ -273,7 +273,6 @@ public Builder from(FlowExecutionSummary other) { } /** - *

Flow execution identifier

*

Flow execution identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -285,7 +284,6 @@ public TraceIdStage id(@NotNull String id) { } /** - *

Trace id

*

Trace id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -297,7 +295,6 @@ public StatusStage traceId(@NotNull String traceId) { } /** - *

Execution status

*

Execution status

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -309,7 +306,6 @@ public CreatedAtStage status(@NotNull String status) { } /** - *

The ISO 8601 formatted date when this flow execution was created.

*

The ISO 8601 formatted date when this flow execution was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -321,7 +317,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this flow execution was updated.

*

The ISO 8601 formatted date when this flow execution was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java index ae3c4a6e..a80fb7ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java @@ -298,7 +298,6 @@ public Builder from(FlowsVaultConnectionSummary other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -310,7 +309,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -322,7 +320,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -334,7 +331,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -346,7 +342,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -358,7 +353,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java index 0c93fddf..26ba4168 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java @@ -238,7 +238,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -264,7 +263,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java index fd6b36e8..3a5eee56 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java @@ -237,7 +237,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -263,7 +262,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java index f2fe6238..95296975 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetClientRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java index 8d0c358d..104f1e58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetConnectionRequestParameters( /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java index 2b890744..26ebe035 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java @@ -379,7 +379,6 @@ public Builder from(GetCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -391,7 +390,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -403,7 +401,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java index 4da8a652..b2a47cf6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private GetDailyStatsRequestParameters( /** * @return Optional first day of the date range (inclusive) in YYYYMMDD format. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Optional last day of the date range (inclusive) in YYYYMMDD format. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("to") public OptionalNullable getTo() { if (to == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTo() { return to; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("to") + private OptionalNullable _getTo() { + return to; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java index 007d88de..6dbc8dfe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java @@ -99,7 +99,6 @@ public Builder from(GetDefaultCanonicalDomainResponseContent other) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java index 9b94899c..11b17177 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java @@ -380,7 +380,6 @@ public Builder from(GetDefaultCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -392,7 +391,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -404,7 +402,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java index 09ed2315..e4c2251a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java @@ -350,7 +350,6 @@ public Builder from(GetDirectoryProvisioningResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -362,7 +361,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -374,7 +372,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -386,7 +383,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -398,7 +394,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -410,7 +405,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java index 089e4474..9548c026 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java @@ -262,7 +262,6 @@ public Builder from(GetEncryptionKeyResponseContent other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -288,7 +287,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -300,7 +298,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java index b4c23a92..f2430a12 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java @@ -204,7 +204,6 @@ public Builder from(GetEventStreamDeliveryHistoryResponseContent other) { } /** - *

Unique identifier for the delivery

*

Unique identifier for the delivery

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -216,7 +215,6 @@ public EventStreamIdStage id(@NotNull String id) { } /** - *

Unique identifier for the event stream.

*

Unique identifier for the event stream.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java index ca0f95f1..eaf0b707 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java @@ -291,7 +291,6 @@ public Builder from(GetFlowExecutionResponseContent other) { } /** - *

Flow execution identifier

*

Flow execution identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -303,7 +302,6 @@ public TraceIdStage id(@NotNull String id) { } /** - *

Trace id

*

Trace id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -315,7 +313,6 @@ public StatusStage traceId(@NotNull String traceId) { } /** - *

Execution status

*

Execution status

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -327,7 +324,6 @@ public CreatedAtStage status(@NotNull String status) { } /** - *

The ISO 8601 formatted date when this flow execution was created.

*

The ISO 8601 formatted date when this flow execution was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +335,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this flow execution was updated.

*

The ISO 8601 formatted date when this flow execution was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java index 6e820c6b..96abbd4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java @@ -3,12 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,6 +46,12 @@ public Optional> getHydrate() { return hydrate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java index 3cb76b17..dc73c43f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java @@ -323,7 +323,6 @@ public Builder from(GetFlowsVaultConnectionResponseContent other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -335,7 +334,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -347,7 +345,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -359,7 +356,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -371,7 +367,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -383,7 +378,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java index 01fd330a..91045dd6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java @@ -3,12 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,6 +46,12 @@ public Optional> getHydrate() { return hydrate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java index a3a53d51..f2e3c1eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java @@ -249,7 +249,6 @@ public Builder from(GetGroupResponseContent other) { } /** - *

Unique identifier for the group (service-generated).

*

Unique identifier for the group (service-generated).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -261,7 +260,6 @@ public NameStage id(@NotNull String id) { } /** - *

Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters.

*

Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -273,7 +271,6 @@ public TenantNameStage name(@NotNull String name) { } /** - *

Identifier for the tenant this group belongs to.

*

Identifier for the tenant this group belongs to.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -285,7 +282,6 @@ public CreatedAtStage tenantName(@NotNull String tenantName) { } /** - *

Timestamp of when the group was created.

*

Timestamp of when the group was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -297,7 +293,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Timestamp of when the group was last updated.

*

Timestamp of when the group was last updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java index d03ad6a0..3e6ad5a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java @@ -224,7 +224,6 @@ public Builder from(GetGuardianEnrollmentResponseContent other) { } /** - *

ID for this enrollment.

*

ID for this enrollment.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java index a884104b..bc58afe5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(GetGuardianFactorPhoneTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java index 59b52b08..863ed1fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(GetGuardianFactorSmsTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java index 1e4c456f..0cd53c4b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -34,7 +35,8 @@ private GetHookRequestParameters(OptionalNullable fields, Map getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -42,6 +44,12 @@ public OptionalNullable getFields() { return fields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java index 7818cc5e..182ff201 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java @@ -217,7 +217,6 @@ public Builder from(GetJobGenericErrorResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -229,7 +228,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -241,7 +239,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java index 9a9fa1ad..af550b46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java @@ -331,7 +331,6 @@ public Builder from(GetJobResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +342,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +353,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java index 180a8775..974ae4a2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java @@ -260,7 +260,6 @@ public Builder from(GetOrganizationAllConnectionResponseContent other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java index f5dfbd36..0100ba46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java @@ -219,7 +219,6 @@ public Builder from(GetOrganizationDiscoveryDomainByNameResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java index c3d561e7..5f9c4145 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java @@ -219,7 +219,6 @@ public Builder from(GetOrganizationDiscoveryDomainResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1220fbf5..b6e74879 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java @@ -219,7 +219,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java index fc4fa4f3..87fe4fc2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java @@ -231,7 +231,6 @@ public Builder from(GetRateLimitPolicyResponseContent other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +256,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java index b9412492..c01d14ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -57,7 +58,7 @@ private GetRefreshTokensRequestParameters( /** * @return ID of the user whose refresh tokens to retrieve. Required. */ - @JsonIgnore + @JsonProperty("user_id") public String getUserId() { return userId; } @@ -65,7 +66,8 @@ public String getUserId() { /** * @return Filter results by client ID. Only valid when user_id is provided. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -76,7 +78,8 @@ public OptionalNullable getClientId() { /** * @return An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -87,7 +90,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -98,7 +102,8 @@ public OptionalNullable getTake() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -109,7 +114,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -117,6 +123,36 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -254,7 +290,6 @@ public Builder from(GetRefreshTokensRequestParameters other) { } /** - *

ID of the user whose refresh tokens to retrieve. Required.

*

ID of the user whose refresh tokens to retrieve. Required.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java index 0066656f..2866dbaa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -35,7 +36,8 @@ private GetResourceServerRequestParameters( /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -43,6 +45,12 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java index 656f59a9..7279ba8e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -99,7 +99,6 @@ public Builder from(GetRiskAssessmentsSettingsNewDeviceResponseContent other) { } /** - *

Length of time to remember devices for, in days.

*

Length of time to remember devices for, in days.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java index 4de912ff..fd0cb4a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java @@ -98,7 +98,6 @@ public Builder from(GetRiskAssessmentsSettingsResponseContent other) { } /** - *

Whether or not risk assessment is enabled.

*

Whether or not risk assessment is enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java index 259dd8ad..3f32553b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetRuleRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java index 9e45660e..74f8c418 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java @@ -284,7 +284,6 @@ public Builder from(GetScimConfigurationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -332,7 +328,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +339,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +350,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java index 8e0d7419..9efbf8a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java @@ -349,7 +349,6 @@ public Builder from(GetSigningKeysResponseContent other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -361,7 +360,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +371,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +382,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java index 7ef40212..29d2e135 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java @@ -593,7 +593,6 @@ public Builder from(GetUserAuthenticationMethodResponseContent other) { } /** - *

The ID of the authentication method (auto generated)

*

The ID of the authentication method (auto generated)

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -612,7 +611,6 @@ public CreatedAtStage type(@NotNull AuthenticationMethodTypeEnum type) { } /** - *

Authenticator creation date

*

Authenticator creation date

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java index 78f35b02..b7cd5485 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetUserRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java b/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java index b7dd8900..be1fb69f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java +++ b/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java @@ -139,7 +139,6 @@ public Builder from(GuardianFactor other) { } /** - *

Whether this factor is enabled (true) or disabled (false).

*

Whether this factor is enabled (true) or disabled (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 6aa13b97..80428099 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java @@ -21,8 +21,6 @@ public interface IConnectionOptionsCommonOidc { Optional getDpopSigningAlg(); - OptionalNullable getFederatedConnectionsAccessTokens(); - Optional getIconUrl(); Optional getIdTokenSessionExpirySupported(); diff --git a/src/main/java/com/auth0/client/mgmt/types/Identity.java b/src/main/java/com/auth0/client/mgmt/types/Identity.java index 361ff932..6a14e526 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Identity.java +++ b/src/main/java/com/auth0/client/mgmt/types/Identity.java @@ -142,7 +142,6 @@ public Builder from(Identity other) { } /** - *

user_id of the identity to be verified.

*

user_id of the identity to be verified.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java index a7ca3b07..aa3bb3dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java @@ -263,7 +263,6 @@ public Builder from(ImportEncryptionKeyResponseContent other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -289,7 +288,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -301,7 +299,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java index 53965b74..71b17a0f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java @@ -98,7 +98,6 @@ public Builder from(LinkedClientConfiguration other) { } /** - *

The ID of the linked client.

*

The ID of the linked client.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java index 96ae64a1..dee72554 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListActionsRequestParameters( /** * @return An actions extensibility point. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") public OptionalNullable getTriggerId() { if (triggerId == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getTriggerId() { /** * @return The name of the action to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("actionName") public OptionalNullable getActionName() { if (actionName == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getActionName() { /** * @return Optional filter to only retrieve actions that are deployed. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("deployed") public OptionalNullable getDeployed() { if (deployed == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getDeployed() { /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getPage() { /** * @return The maximum number of results to be returned by the server in single response. 20 by default */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getPerPage() { /** * @return Optional. When true, return only installed actions. When false, return only custom actions. Returns all actions by default. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("installed") public OptionalNullable getInstalled() { if (installed == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getInstalled() { return installed; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") + private OptionalNullable _getTriggerId() { + return triggerId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("actionName") + private OptionalNullable _getActionName() { + return actionName; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("deployed") + private OptionalNullable _getDeployed() { + return deployed; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("installed") + private OptionalNullable _getInstalled() { + return installed; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java index 0e14a982..05bdd943 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -60,7 +61,8 @@ private ListClientGrantsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -71,7 +73,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -82,7 +85,8 @@ public OptionalNullable getTake() { /** * @return Optional filter on audience. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") public OptionalNullable getAudience() { if (audience == null) { return OptionalNullable.absent(); @@ -93,7 +97,8 @@ public OptionalNullable getAudience() { /** * @return Optional filter on client_id. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -104,7 +109,8 @@ public OptionalNullable getClientId() { /** * @return Optional filter on allow_any_organization. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allow_any_organization") public OptionalNullable getAllowAnyOrganization() { if (allowAnyOrganization == null) { return OptionalNullable.absent(); @@ -115,7 +121,8 @@ public OptionalNullable getAllowAnyOrganization() { /** * @return The type of application access the client grant allows. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("subject_type") public OptionalNullable getSubjectType() { if (subjectType == null) { return OptionalNullable.absent(); @@ -126,7 +133,8 @@ public OptionalNullable getSubjectType() { /** * @return Applies this client grant as the default for all clients in the specified group. The only accepted value is third_party_clients, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with client_id. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("default_for") public OptionalNullable getDefaultFor() { if (defaultFor == null) { return OptionalNullable.absent(); @@ -134,6 +142,48 @@ public OptionalNullable getDefaultFor() { return defaultFor; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") + private OptionalNullable _getAudience() { + return audience; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allow_any_organization") + private OptionalNullable _getAllowAnyOrganization() { + return allowAnyOrganization; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("subject_type") + private OptionalNullable _getSubjectType() { + return subjectType; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("default_for") + private OptionalNullable _getDefaultFor() { + return defaultFor; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java index 117c634b..044877b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -72,7 +73,8 @@ private ListClientsRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -83,7 +85,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -94,7 +97,8 @@ public OptionalNullable getIncludeFields() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -105,7 +109,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Default value is 50, maximum value is 100 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -116,7 +121,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -127,7 +133,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on the global client parameter. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_global") public OptionalNullable getIsGlobal() { if (isGlobal == null) { return OptionalNullable.absent(); @@ -138,7 +145,8 @@ public OptionalNullable getIsGlobal() { /** * @return Optional filter on whether or not a client is a first-party client. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_first_party") public OptionalNullable getIsFirstParty() { if (isFirstParty == null) { return OptionalNullable.absent(); @@ -149,7 +157,8 @@ public OptionalNullable getIsFirstParty() { /** * @return Optional filter by a comma-separated list of application types. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("app_type") public OptionalNullable getAppType() { if (appType == null) { return OptionalNullable.absent(); @@ -160,7 +169,8 @@ public OptionalNullable getAppType() { /** * @return Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_client_id") public OptionalNullable getExternalClientId() { if (externalClientId == null) { return OptionalNullable.absent(); @@ -171,7 +181,8 @@ public OptionalNullable getExternalClientId() { /** * @return Advanced Query in Lucene syntax.Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") public OptionalNullable getQ() { if (q == null) { return OptionalNullable.absent(); @@ -179,6 +190,66 @@ public OptionalNullable getQ() { return q; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_global") + private OptionalNullable _getIsGlobal() { + return isGlobal; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_first_party") + private OptionalNullable _getIsFirstParty() { + return isFirstParty; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("app_type") + private OptionalNullable _getAppType() { + return appType; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_client_id") + private OptionalNullable _getExternalClientId() { + return externalClientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + private OptionalNullable _getQ() { + return q; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java index ae2a5143..211dd722 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListConnectionProfileRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 5. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java index 87865336..c648b049 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -69,7 +71,8 @@ public Optional> getStrategy() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -80,7 +83,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -91,7 +95,8 @@ public OptionalNullable getTake() { /** * @return Provide the name of the connection to retrieve */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") public OptionalNullable getName() { if (name == null) { return OptionalNullable.absent(); @@ -102,7 +107,8 @@ public OptionalNullable getName() { /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -113,7 +119,8 @@ public OptionalNullable getFields() { /** * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -121,6 +128,42 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("strategy") + private Optional> _getStrategy() { + return strategy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") + private OptionalNullable _getName() { + return name; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java index 3ea7c855..0d559cc3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListCustomDomainsRequestParameters( /** * @return Query in Lucene query string syntax. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") public OptionalNullable getQ() { if (q == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getQ() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getIncludeFields() { /** * @return Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getSort() { return sort; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + private OptionalNullable _getQ() { + return q; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java index c20cc93c..adc4985e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -64,7 +65,8 @@ private ListDeviceCredentialsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -75,7 +77,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. There is a maximum of 1000 results allowed from this endpoint. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -86,7 +89,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -97,7 +101,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -108,7 +113,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -119,7 +125,8 @@ public OptionalNullable getIncludeFields() { /** * @return user_id of the devices to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") public OptionalNullable getUserId() { if (userId == null) { return OptionalNullable.absent(); @@ -130,7 +137,8 @@ public OptionalNullable getUserId() { /** * @return client_id of the devices to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -141,7 +149,8 @@ public OptionalNullable getClientId() { /** * @return Type of credentials to retrieve. Must be public_key, refresh_token or rotating_refresh_token. The property will default to refresh_token when paging is requested */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("type") public OptionalNullable getType() { if (type == null) { return OptionalNullable.absent(); @@ -149,6 +158,54 @@ public OptionalNullable getType() { return type; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") + private OptionalNullable _getUserId() { + return userId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("type") + private OptionalNullable _getType() { + return type; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java index 4a2c0d72..13b5ef65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListEventStreamsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java index 7eb33783..6c63b57f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -65,7 +67,8 @@ public Optional> getHydrate() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -76,7 +79,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -87,7 +91,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -98,7 +103,8 @@ public OptionalNullable getIncludeTotals() { /** * @return flag to filter by sync/async flows */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("synchronous") public OptionalNullable getSynchronous() { if (synchronous == null) { return OptionalNullable.absent(); @@ -106,6 +112,36 @@ public OptionalNullable getSynchronous() { return synchronous; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("synchronous") + private OptionalNullable _getSynchronous() { + return synchronous; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java index 42e90823..fc4c1085 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -61,7 +63,8 @@ public Optional> getHydrate() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -72,7 +75,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -83,7 +87,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -91,6 +96,30 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java index 1357e3dc..a3adbbc7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -64,7 +65,8 @@ private ListGroupsRequestParameters( /** * @return Filter groups by connection ID. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_id") public OptionalNullable getConnectionId() { if (connectionId == null) { return OptionalNullable.absent(); @@ -75,7 +77,8 @@ public OptionalNullable getConnectionId() { /** * @return Filter groups by name. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") public OptionalNullable getName() { if (name == null) { return OptionalNullable.absent(); @@ -86,7 +89,8 @@ public OptionalNullable getName() { /** * @return Filter groups by external ID. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_id") public OptionalNullable getExternalId() { if (externalId == null) { return OptionalNullable.absent(); @@ -97,7 +101,8 @@ public OptionalNullable getExternalId() { /** * @return Search for groups by name or external ID. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") public OptionalNullable getSearch() { if (search == null) { return OptionalNullable.absent(); @@ -108,7 +113,8 @@ public OptionalNullable getSearch() { /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -119,7 +125,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -130,7 +137,8 @@ public OptionalNullable getIncludeFields() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -141,7 +149,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -149,6 +158,54 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_id") + private OptionalNullable _getConnectionId() { + return connectionId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") + private OptionalNullable _getName() { + return name; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_id") + private OptionalNullable _getExternalId() { + return externalId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") + private OptionalNullable _getSearch() { + return search; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java index ed25b078..d6245fcd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListHooksRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on whether a hook is enabled (true) or disabled (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") public OptionalNullable getEnabled() { if (enabled == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getEnabled() { /** * @return Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getFields() { /** * @return Retrieves hooks that match the trigger */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") public OptionalNullable getTriggerId() { if (triggerId == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getTriggerId() { return triggerId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") + private OptionalNullable _getEnabled() { + return enabled; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") + private OptionalNullable _getTriggerId() { + return triggerId; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java index ba25c6f2..b31f9c6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -60,7 +61,8 @@ private ListLogsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -71,7 +73,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -82,7 +85,8 @@ public OptionalNullable getPerPage() { /** * @return Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -93,7 +97,8 @@ public OptionalNullable getSort() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -104,7 +109,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -115,7 +121,8 @@ public OptionalNullable getIncludeFields() { /** * @return Return results as an array when false (default). Return results inside an object that also contains a total result count when true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -128,7 +135,8 @@ public OptionalNullable getIncludeTotals() { * If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". * Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") public OptionalNullable getSearch() { if (search == null) { return OptionalNullable.absent(); @@ -136,6 +144,48 @@ public OptionalNullable getSearch() { return search; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") + private OptionalNullable _getSearch() { + return search; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java index 022fbef6..e24889d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListNetworkAclsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return The amount of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java index 17ae4f5b..c5b6cabd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListOrganizationsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getTake() { /** * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getSort() { return sort; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java index 4cbdca96..54412055 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -52,7 +53,8 @@ private ListRateLimitPoliciesRequestParameters( /** * @return The API protected by the Rate Limit Policy. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("resource") public OptionalNullable getResource() { if (resource == null) { return OptionalNullable.absent(); @@ -63,7 +65,8 @@ public OptionalNullable getResource() { /** * @return The consumer to which the rate limit policy applies. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer") public OptionalNullable getConsumer() { if (consumer == null) { return OptionalNullable.absent(); @@ -74,7 +77,8 @@ public OptionalNullable getConsumer() { /** * @return Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer_selector") public OptionalNullable getConsumerSelector() { if (consumerSelector == null) { return OptionalNullable.absent(); @@ -85,7 +89,8 @@ public OptionalNullable getConsumerSelector() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -96,7 +101,8 @@ public OptionalNullable getTake() { /** * @return Cursor for pagination. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -104,6 +110,36 @@ public OptionalNullable getFrom() { return from; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("resource") + private OptionalNullable _getResource() { + return resource; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer") + private OptionalNullable _getConsumer() { + return consumer; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer_selector") + private OptionalNullable _getConsumerSelector() { + return consumerSelector; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java index 40f6d3a7..333a1d8d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -65,7 +67,8 @@ public Optional> getIdentifiers() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -76,7 +79,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -87,7 +91,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -98,7 +103,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -106,6 +112,36 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("identifiers") + private Optional> _getIdentifiers() { + return identifiers; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java index 7dd16a6d..70e0ac54 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListRolesRequestParameters( /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on name (case-insensitive). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name_filter") public OptionalNullable getNameFilter() { if (nameFilter == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getNameFilter() { return nameFilter; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name_filter") + private OptionalNullable _getNameFilter() { + return nameFilter; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java index 821adfc6..381a3a66 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListRulesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on whether a rule is enabled (true) or disabled (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") public OptionalNullable getEnabled() { if (enabled == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getEnabled() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") + private OptionalNullable _getEnabled() { + return enabled; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java index ebd851fd..c0ba0e71 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListSelfServiceProfilesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java index d4c57394..dbc25ae6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListUserAttributeProfileRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 5. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java index 27971209..75e6e03a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -41,7 +42,7 @@ private ListUserBlocksByIdentifierRequestParameters( /** * @return Should be any of a username, phone number, or email. */ - @JsonIgnore + @JsonProperty("identifier") public String getIdentifier() { return identifier; } @@ -50,7 +51,8 @@ public String getIdentifier() { * @return If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. * If true and Brute Force Protection is disabled, will return an empty list. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") public OptionalNullable getConsiderBruteForceEnablement() { if (considerBruteForceEnablement == null) { return OptionalNullable.absent(); @@ -58,6 +60,12 @@ public OptionalNullable getConsiderBruteForceEnablement() { return considerBruteForceEnablement; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") + private OptionalNullable _getConsiderBruteForceEnablement() { + return considerBruteForceEnablement; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -138,7 +146,6 @@ public Builder from(ListUserBlocksByIdentifierRequestParameters other) { } /** - *

Should be any of a username, phone number, or email.

*

Should be any of a username, phone number, or email.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java index 6e0a7a17..2311b54a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -36,7 +37,8 @@ private ListUserBlocksRequestParameters( * @return If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. * If true and Brute Force Protection is disabled, will return an empty list. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") public OptionalNullable getConsiderBruteForceEnablement() { if (considerBruteForceEnablement == null) { return OptionalNullable.absent(); @@ -44,6 +46,12 @@ public OptionalNullable getConsiderBruteForceEnablement() { return considerBruteForceEnablement; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") + private OptionalNullable _getConsiderBruteForceEnablement() { + return considerBruteForceEnablement; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java index df0d014e..7af9de12 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListUserGrantsRequestParameters( /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @return user_id of the grants to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") public OptionalNullable getUserId() { if (userId == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getUserId() { /** * @return client_id of the grants to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getClientId() { /** * @return audience of the grants to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") public OptionalNullable getAudience() { if (audience == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getAudience() { return audience; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") + private OptionalNullable _getUserId() { + return userId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") + private OptionalNullable _getAudience() { + return audience; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java index 4d1448bb..e42404bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,8 @@ private ListUsersByEmailRequestParameters( /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -56,7 +58,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -67,11 +70,23 @@ public OptionalNullable getIncludeFields() { /** * @return Email address to search for (case-sensitive). */ - @JsonIgnore + @JsonProperty("email") public String getEmail() { return email; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -162,7 +177,6 @@ public Builder from(ListUsersByEmailRequestParameters other) { } /** - *

Email address to search for (case-sensitive).

*

Email address to search for (case-sensitive).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java index 4e737df5..41d6d07b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -72,7 +73,8 @@ private ListUsersRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -83,7 +85,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -94,7 +97,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -105,7 +109,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -116,7 +121,8 @@ public OptionalNullable getSort() { /** * @return Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection") public OptionalNullable getConnection() { if (connection == null) { return OptionalNullable.absent(); @@ -127,7 +133,8 @@ public OptionalNullable getConnection() { /** * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -138,7 +145,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -149,7 +157,8 @@ public OptionalNullable getIncludeFields() { /** * @return Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") public OptionalNullable getQ() { if (q == null) { return OptionalNullable.absent(); @@ -160,7 +169,8 @@ public OptionalNullable getQ() { /** * @return The version of the search engine */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search_engine") public OptionalNullable getSearchEngine() { if (searchEngine == null) { return OptionalNullable.absent(); @@ -171,7 +181,8 @@ public OptionalNullable getSearchEngine() { /** * @return If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("primary_order") public OptionalNullable getPrimaryOrder() { if (primaryOrder == null) { return OptionalNullable.absent(); @@ -179,6 +190,66 @@ public OptionalNullable getPrimaryOrder() { return primaryOrder; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection") + private OptionalNullable _getConnection() { + return connection; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + private OptionalNullable _getQ() { + return q; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search_engine") + private OptionalNullable _getSearchEngine() { + return searchEngine; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("primary_order") + private OptionalNullable _getPrimaryOrder() { + return primaryOrder; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java index 3aec249f..caf2f7ba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java @@ -114,7 +114,6 @@ public Builder from(LogStreamDatadogSink other) { } /** - *

Datadog API Key

*

Datadog API Key

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java index 9bb5bad1..73a8dca7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java @@ -142,7 +142,6 @@ public Builder from(LogStreamEventBridgeSink other) { } /** - *

AWS account ID

*

AWS account ID

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java index b77dd9f8..160a01a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java @@ -167,7 +167,6 @@ public Builder from(LogStreamEventGridSink other) { } /** - *

Subscription ID

*

Subscription ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -187,7 +186,6 @@ public AzureResourceGroupStage azureRegion(@NotNull LogStreamEventGridRegionEnum } /** - *

Resource Group

*

Resource Group

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java index 2101e54c..75149816 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java @@ -194,7 +194,6 @@ public Builder from(LogStreamHttpSink other) { } /** - *

HTTP endpoint

*

HTTP endpoint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java index 27482603..74cfcc73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java @@ -180,7 +180,6 @@ public MixpanelProjectIdStage mixpanelRegion(@NotNull LogStreamMixpanelRegionEnu } /** - *

Mixpanel Project Id

*

Mixpanel Project Id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -192,7 +191,6 @@ public MixpanelServiceAccountUsernameStage mixpanelProjectId(@NotNull String mix } /** - *

Mixpanel Service Account Username

*

Mixpanel Service Account Username

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +204,6 @@ public MixpanelServiceAccountPasswordStage mixpanelServiceAccountUsername( } /** - *

Mixpanel Service Account Password

*

Mixpanel Service Account Password

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java index b1e5e7b5..abf0be0f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java @@ -177,7 +177,6 @@ public MixpanelProjectIdStage mixpanelRegion(@NotNull LogStreamMixpanelRegionEnu } /** - *

Mixpanel Project Id

*

Mixpanel Project Id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -189,7 +188,6 @@ public MixpanelServiceAccountUsernameStage mixpanelProjectId(@NotNull String mix } /** - *

Mixpanel Service Account Username

*

Mixpanel Service Account Username

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java index 7ec6a306..7fec818b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java @@ -98,7 +98,6 @@ public Builder from(LogStreamSegmentSinkWriteKey other) { } /** - *

Segment write key

*

Segment write key

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java index 8cb1a4cb..4288b911 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java @@ -144,10 +144,6 @@ public LogStreamSinkPatch deserialize(JsonParser p, DeserializationContext conte } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, LogStreamSegmentSink.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("mixpanelRegion") && ((Map) value).containsKey("mixpanelProjectId") @@ -157,6 +153,10 @@ public LogStreamSinkPatch deserialize(JsonParser p, DeserializationContext conte } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, LogStreamSegmentSink.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java index 6d099dbd..1c4a03fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java @@ -170,7 +170,6 @@ public Builder from(LogStreamSplunkSink other) { } /** - *

Splunk URL Endpoint

*

Splunk URL Endpoint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -182,7 +181,6 @@ public SplunkPortStage splunkDomain(@NotNull String splunkDomain) { } /** - *

Port

*

Port

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -194,7 +192,6 @@ public SplunkTokenStage splunkPort(@NotNull String splunkPort) { } /** - *

Splunk token

*

Splunk token

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +203,6 @@ public SplunkSecureStage splunkToken(@NotNull String splunkToken) { } /** - *

Verify TLS certificate

*

Verify TLS certificate

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java index 8c8bcaea..9e70ac49 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java @@ -98,7 +98,6 @@ public Builder from(LogStreamSumoSink other) { } /** - *

HTTP Source Address

*

HTTP Source Address

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java index 5ba55c50..381be950 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java @@ -23,6 +23,8 @@ public final class NetworkAclMatch { private final Optional> asns; + private final Optional> auth0Managed; + private final Optional> geoCountryCodes; private final Optional> geoSubdivisionCodes; @@ -47,6 +49,7 @@ public final class NetworkAclMatch { private NetworkAclMatch( Optional> asns, + Optional> auth0Managed, Optional> geoCountryCodes, Optional> geoSubdivisionCodes, Optional> ipv4Cidrs, @@ -59,6 +62,7 @@ private NetworkAclMatch( Optional> connectingIpv6Cidrs, Map additionalProperties) { this.asns = asns; + this.auth0Managed = auth0Managed; this.geoCountryCodes = geoCountryCodes; this.geoSubdivisionCodes = geoSubdivisionCodes; this.ipv4Cidrs = ipv4Cidrs; @@ -77,6 +81,11 @@ public Optional> getAsns() { return asns; } + @JsonProperty("auth0_managed") + public Optional> getAuth0Managed() { + return auth0Managed; + } + @JsonProperty("geo_country_codes") public Optional> getGeoCountryCodes() { return geoCountryCodes; @@ -140,6 +149,7 @@ public Map getAdditionalProperties() { private boolean equalTo(NetworkAclMatch other) { return asns.equals(other.asns) + && auth0Managed.equals(other.auth0Managed) && geoCountryCodes.equals(other.geoCountryCodes) && geoSubdivisionCodes.equals(other.geoSubdivisionCodes) && ipv4Cidrs.equals(other.ipv4Cidrs) @@ -156,6 +166,7 @@ private boolean equalTo(NetworkAclMatch other) { public int hashCode() { return Objects.hash( this.asns, + this.auth0Managed, this.geoCountryCodes, this.geoSubdivisionCodes, this.ipv4Cidrs, @@ -181,6 +192,8 @@ public static Builder builder() { public static final class Builder { private Optional> asns = Optional.empty(); + private Optional> auth0Managed = Optional.empty(); + private Optional> geoCountryCodes = Optional.empty(); private Optional> geoSubdivisionCodes = Optional.empty(); @@ -208,6 +221,7 @@ private Builder() {} public Builder from(NetworkAclMatch other) { asns(other.getAsns()); + auth0Managed(other.getAuth0Managed()); geoCountryCodes(other.getGeoCountryCodes()); geoSubdivisionCodes(other.getGeoSubdivisionCodes()); ipv4Cidrs(other.getIpv4Cidrs()); @@ -232,6 +246,17 @@ public Builder asns(List asns) { return this; } + @JsonSetter(value = "auth0_managed", nulls = Nulls.SKIP) + public Builder auth0Managed(Optional> auth0Managed) { + this.auth0Managed = auth0Managed; + return this; + } + + public Builder auth0Managed(List auth0Managed) { + this.auth0Managed = Optional.ofNullable(auth0Managed); + return this; + } + @JsonSetter(value = "geo_country_codes", nulls = Nulls.SKIP) public Builder geoCountryCodes(Optional> geoCountryCodes) { this.geoCountryCodes = geoCountryCodes; @@ -345,6 +370,7 @@ public Builder connectingIpv6Cidrs(List connectingIpv6Cidrs) { public NetworkAclMatch build() { return new NetworkAclMatch( asns, + auth0Managed, geoCountryCodes, geoSubdivisionCodes, ipv4Cidrs, diff --git a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java index 2c613614..599e6535 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java @@ -92,9 +92,6 @@ public final class OauthScope { public static final OauthScope READ_ROLE_MEMBERS = new OauthScope(Value.READ_ROLE_MEMBERS, "read:role_members"); - public static final OauthScope DELETE_FEDERATED_CONNECTIONS_TOKENS = - new OauthScope(Value.DELETE_FEDERATED_CONNECTIONS_TOKENS, "delete:federated_connections_tokens"); - public static final OauthScope READ_SELF_SERVICE_PROFILES = new OauthScope(Value.READ_SELF_SERVICE_PROFILES, "read:self_service_profiles"); @@ -380,9 +377,6 @@ public final class OauthScope { public static final OauthScope CREATE_LOG_STREAMS = new OauthScope(Value.CREATE_LOG_STREAMS, "create:log_streams"); - public static final OauthScope READ_FEDERATED_CONNECTIONS_TOKENS = - new OauthScope(Value.READ_FEDERATED_CONNECTIONS_TOKENS, "read:federated_connections_tokens"); - public static final OauthScope DELETE_ORGANIZATION_MEMBERS = new OauthScope(Value.DELETE_ORGANIZATION_MEMBERS, "delete:organization_members"); @@ -738,8 +732,6 @@ public T visit(Visitor visitor) { return visitor.visitDeleteOrganizationConnections(); case READ_ROLE_MEMBERS: return visitor.visitReadRoleMembers(); - case DELETE_FEDERATED_CONNECTIONS_TOKENS: - return visitor.visitDeleteFederatedConnectionsTokens(); case READ_SELF_SERVICE_PROFILES: return visitor.visitReadSelfServiceProfiles(); case CREATE_ORGANIZATION_DISCOVERY_DOMAINS: @@ -956,8 +948,6 @@ public T visit(Visitor visitor) { return visitor.visitReadClientKeys(); case CREATE_LOG_STREAMS: return visitor.visitCreateLogStreams(); - case READ_FEDERATED_CONNECTIONS_TOKENS: - return visitor.visitReadFederatedConnectionsTokens(); case DELETE_ORGANIZATION_MEMBERS: return visitor.visitDeleteOrganizationMembers(); case READ_ORGANIZATION_MEMBER_ROLES: @@ -1223,8 +1213,6 @@ public static OauthScope valueOf(String value) { return DELETE_ORGANIZATION_CONNECTIONS; case "read:role_members": return READ_ROLE_MEMBERS; - case "delete:federated_connections_tokens": - return DELETE_FEDERATED_CONNECTIONS_TOKENS; case "read:self_service_profiles": return READ_SELF_SERVICE_PROFILES; case "create:organization_discovery_domains": @@ -1441,8 +1429,6 @@ public static OauthScope valueOf(String value) { return READ_CLIENT_KEYS; case "create:log_streams": return CREATE_LOG_STREAMS; - case "read:federated_connections_tokens": - return READ_FEDERATED_CONNECTIONS_TOKENS; case "delete:organization_members": return DELETE_ORGANIZATION_MEMBERS; case "read:organization_member_roles": @@ -1801,10 +1787,6 @@ public enum Value { READ_EVENTS, - READ_FEDERATED_CONNECTIONS_TOKENS, - - DELETE_FEDERATED_CONNECTIONS_TOKENS, - CREATE_FLOWS, READ_FLOWS, @@ -2281,10 +2263,6 @@ public interface Visitor { T visitReadEvents(); - T visitReadFederatedConnectionsTokens(); - - T visitDeleteFederatedConnectionsTokens(); - T visitCreateFlows(); T visitReadFlows(); diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java index 14de55ca..36c761ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java @@ -259,7 +259,6 @@ public Builder from(OrganizationAllConnectionPost other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java index 2a995e87..ca814a67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java @@ -120,7 +120,6 @@ public Builder from(OrganizationBrandingColors other) { } /** - *

HEX Color for primary elements.

*

HEX Color for primary elements.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -132,7 +131,6 @@ public PageBackgroundStage primary(@NotNull String primary) { } /** - *

HEX Color for background.

*

HEX Color for background.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java index ea1130c3..4f9a58de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java @@ -218,7 +218,6 @@ public Builder from(OrganizationDiscoveryDomain other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -230,7 +229,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -249,7 +247,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -261,7 +258,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java index 2f2e6d30..3b74a2a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java @@ -98,7 +98,6 @@ public Builder from(OrganizationInvitationInvitee other) { } /** - *

The invitee's email.

*

The invitee's email.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java index 443f5b4c..2fae7932 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java @@ -98,7 +98,6 @@ public Builder from(OrganizationInvitationInviter other) { } /** - *

The inviter's name.

*

The inviter's name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java index a02296ce..0a35e16a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java @@ -174,7 +174,6 @@ public Builder from(OrganizationMemberEffectiveRole other) { } /** - *

Role ID

*

Role ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -186,7 +185,6 @@ public NameStage id(@NotNull String id) { } /** - *

Role name

*

Role name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -198,7 +196,6 @@ public DescriptionStage name(@NotNull String name) { } /** - *

Role description

*

Role description

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b6ae4bb2..d17bed89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java @@ -145,7 +145,6 @@ public Builder from(PatchRateLimitPolicyConfigurationRequestContentAction other) } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -157,7 +156,6 @@ public LimitStage action(@NotNull PatchRateLimitPolicyConfigurationRequestConten } /** - *

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. */ @@ -169,7 +167,6 @@ public RedirectUriStage limit(int limit) { } /** - *

The HTTPS URI to redirect to when the rate limit is exceeded.

*

The HTTPS URI to redirect to when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2bf8ae27..a5d12f22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java @@ -123,7 +123,6 @@ public Builder from(PatchRateLimitPolicyConfigurationRequestContentOne other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -135,7 +134,6 @@ public LimitStage action(@NotNull PatchRateLimitPolicyConfigurationRequestConten } /** - *

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. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java index b018d3ed..e956dfd7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java @@ -101,7 +101,6 @@ public Builder from(PatchRateLimitPolicyConfigurationRequestContentZero other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java b/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java index f889d30a..168951c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java @@ -121,7 +121,6 @@ public Builder from(PermissionRequestPayload other) { } /** - *

Resource server (API) identifier that this permission is for.

*

Resource server (API) identifier that this permission is for.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public PermissionNameStage resourceServerIdentifier(@NotNull String resourceServ } /** - *

Name of this permission.

*

Name of this permission.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3a819661..45a93b79 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java @@ -219,7 +219,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java index 042ede4e..9f78fc14 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java @@ -332,7 +332,6 @@ public Builder from(PostConnectionsKeysResponseContentItem other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +343,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +354,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -368,7 +365,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java index 01696b95..a494cc1c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java @@ -98,7 +98,6 @@ public Builder from(PreviewCimdMetadataRequestContent other) { } /** - *

URL to the Client ID Metadata Document

*

URL to the Client ID Metadata Document

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java index 160f21fe..9a7da217 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java @@ -237,7 +237,6 @@ public PemStage credentialType(@NotNull PublicKeyCredentialTypeEnum credentialTy } /** - *

PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped.

*

PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java index 0e0eb85d..dbbb8ebe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java @@ -231,7 +231,6 @@ public Builder from(RateLimitPolicy other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +256,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 dfc98e81..ebb9d482 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java @@ -145,7 +145,6 @@ public Builder from(RateLimitPolicyConfigurationAction other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -157,7 +156,6 @@ public LimitStage action(@NotNull RateLimitPolicyConfigurationActionAction actio } /** - *

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. */ @@ -169,7 +167,6 @@ public RedirectUriStage limit(int limit) { } /** - *

The HTTPS URI to redirect to when the rate limit is exceeded.

*

The HTTPS URI to redirect to when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 de108c7a..0212ab1d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java @@ -120,7 +120,6 @@ public Builder from(RateLimitPolicyConfigurationOne other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -132,7 +131,6 @@ public LimitStage action(@NotNull RateLimitPolicyConfigurationOneAction action) } /** - *

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. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java index 73859b4d..ada8ed88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java @@ -99,7 +99,6 @@ public Builder from(RateLimitPolicyConfigurationZero other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java index 27460c11..f4dddb68 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java @@ -98,7 +98,6 @@ public Builder from(RegisterCimdClientRequestContent other) { } /** - *

URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.

*

URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java index 5c458077..c42c0444 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java @@ -134,7 +134,6 @@ public Builder from(RegisterCimdClientResponseContent other) { } /** - *

The Auth0 client_id of the created or updated client

*

The Auth0 client_id of the created or updated client

* @return Reference to {@code this} so that method calls can be chained together. */ 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 96ca09e2..46c5846f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java @@ -219,7 +219,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java index 5613c7ee..6d3ca947 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java @@ -98,7 +98,6 @@ public Builder from(ResourceServerAuthorizationPolicy other) { } /** - *

The ID of the authorization policy to apply.

*

The ID of the authorization policy to apply.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java index b3f8e753..946fc4d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java @@ -141,7 +141,6 @@ public RequiredStage mechanism(@NotNull ResourceServerProofOfPossessionMechanism } /** - *

Whether the use of Proof-of-Possession is required for the resource server

*

Whether the use of Proof-of-Possession is required for the resource server

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java index 625eb5f7..decf9e69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java @@ -121,7 +121,6 @@ public Builder from(ResourceServerScope other) { } /** - *

Value of this scope.

*

Value of this scope.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java index 99f7ba6a..f9bf5c52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java @@ -169,7 +169,6 @@ public PemStage alg(@NotNull ResourceServerTokenEncryptionAlgorithmEnum alg) { } /** - *

PEM-formatted public key. Must be JSON escaped.

*

PEM-formatted public key. Must be JSON escaped.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java index 166b2049..2d50f32f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java @@ -119,7 +119,6 @@ public Builder from(RevokedSigningKeysResponseContent other) { } /** - *

Revoked key certificate

*

Revoked key certificate

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public KidStage cert(@NotNull String cert) { } /** - *

Revoked key id

*

Revoked key id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java index 816c1a3e..2f577972 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java @@ -284,7 +284,6 @@ public Builder from(RotateConnectionsKeysResponseContent other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java index 7e410023..bdc6cdee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java @@ -119,7 +119,6 @@ public Builder from(RotateSigningKeysResponseContent other) { } /** - *

Next key certificate

*

Next key certificate

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public KidStage cert(@NotNull String cert) { } /** - *

Next key id

*

Next key id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java index 1b6d6684..939dfbc6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java @@ -283,7 +283,6 @@ public Builder from(ScimConfiguration other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -295,7 +294,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -307,7 +305,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -319,7 +316,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -331,7 +327,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +338,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +349,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java index dbf18618..f1c9846e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java @@ -224,7 +224,6 @@ public Builder from(SelfServiceProfileSsoTicketConnectionConfig other) { } /** - *

The name of the connection that will be created as a part of the Self-Service Enterprise Configuration flow.

*

The name of the connection that will be created as a part of the Self-Service Enterprise Configuration flow.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java index 617b8d17..51864cee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java @@ -149,7 +149,6 @@ public Builder from(SelfServiceProfileSsoTicketEnabledOrganization other) { } /** - *

Organization identifier.

*

Organization identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java index a00467d2..b77349d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java @@ -99,7 +99,6 @@ public Builder from(SelfServiceProfileSsoTicketGoogleWorkspaceConfig other) { } /** - *

Whether to enable Google Workspace Directory Sync for users during the self-service flow.

*

Whether to enable Google Workspace Directory Sync for users during the self-service flow.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java index c53f1418..257debf9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java @@ -141,7 +141,6 @@ public Builder from(SelfServiceProfileUserAttribute other) { } /** - *

Identifier of this attribute.

*

Identifier of this attribute.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -153,7 +152,6 @@ public DescriptionStage name(@NotNull String name) { } /** - *

Description of this attribute.

*

Description of this attribute.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -165,7 +163,6 @@ public IsOptionalStage description(@NotNull String description) { } /** - *

Determines if this attribute is required

*

Determines if this attribute is required

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java index aafa490b..4b656ddf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java @@ -99,7 +99,6 @@ public Builder from(SetDefaultCustomDomainRequestContent other) { } /** - *

The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.

*

The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java index 24ca6daa..4e6034a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorPhoneTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java index e504e2b3..51259f38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java @@ -97,7 +97,6 @@ public Builder from(SetGuardianFactorResponseContent other) { } /** - *

Whether this factor is enabled (true) or disabled (false).

*

Whether this factor is enabled (true) or disabled (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java index efe4cbbe..3ec9d35a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorSmsTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java index 11890ffa..abee3e98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java @@ -166,7 +166,6 @@ public ActiveStage description(@NotNull String description) { } /** - *

Indicates whether or not this access control list is actively being used

*

Indicates whether or not this access control list is actively being used

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java index fe34bbee..7dc2bf11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java @@ -98,7 +98,6 @@ public Builder from(SetRulesConfigRequestContent other) { } /** - *

Value for a rules config variable.

*

Value for a rules config variable.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java index c4194eca..c215e5b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java @@ -119,7 +119,6 @@ public Builder from(SetRulesConfigResponseContent other) { } /** - *

Key for a rules config variable.

*

Key for a rules config variable.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public ValueStage key(@NotNull String key) { } /** - *

Value for a rules config variable.

*

Value for a rules config variable.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java b/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java index 86f9b33c..b9a8db92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java +++ b/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java @@ -349,7 +349,6 @@ public Builder from(SigningKeys other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -361,7 +360,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +371,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +382,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java index b4c4a38d..5c6a11e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -57,7 +59,8 @@ public Optional> getEventType() { /** * @return Opaque token representing position in the stream. If not provided, stream will start from the latest events. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -68,7 +71,8 @@ public OptionalNullable getFrom() { /** * @return RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from_timestamp") public OptionalNullable getFromTimestamp() { if (fromTimestamp == null) { return OptionalNullable.absent(); @@ -76,6 +80,24 @@ public OptionalNullable getFromTimestamp() { return fromTimestamp; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("event_type") + private Optional> _getEventType() { + return eventType; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from_timestamp") + private OptionalNullable _getFromTimestamp() { + return fromTimestamp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java b/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java index 2dd23798..d46e13a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java @@ -98,7 +98,6 @@ public Builder from(SynchronizedGroupPayload other) { } /** - *

Google Workspace Directory group ID.

*

Google Workspace Directory group ID.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java index 9b0d0c99..c7ab7dc7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java @@ -121,7 +121,6 @@ public Builder from(TestCustomDomainResponseContent other) { } /** - *

Result of the operation.

*

Result of the operation.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java index 7cff000d..f4f87be1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java @@ -3,13 +3,14 @@ */ 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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private TokenExchangeProfilesListRequest( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java index 80d8ee4d..40ef670c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java @@ -238,7 +238,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -264,7 +263,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ 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 4032c879..73001381 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -83,8 +83,6 @@ public final class UpdateConnectionOptions { private final OptionalNullable gatewayAuthentication; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional passwordOptions; private final Optional assertionDecryptionSettings; @@ -137,7 +135,6 @@ private UpdateConnectionOptions( OptionalNullable>> upstreamParams, Optional setUserRootAttributes, OptionalNullable gatewayAuthentication, - OptionalNullable federatedConnectionsAccessTokens, Optional passwordOptions, Optional assertionDecryptionSettings, OptionalNullable> idTokenSignedResponseAlgs, @@ -178,7 +175,6 @@ private UpdateConnectionOptions( this.upstreamParams = upstreamParams; this.setUserRootAttributes = setUserRootAttributes; this.gatewayAuthentication = gatewayAuthentication; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.passwordOptions = passwordOptions; this.assertionDecryptionSettings = assertionDecryptionSettings; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -403,15 +399,6 @@ public OptionalNullable getGatewayAuthenticatio return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("password_options") public Optional getPasswordOptions() { return passwordOptions; @@ -555,12 +542,6 @@ private OptionalNullable _getGatewayAuthenticat return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -632,7 +613,6 @@ private boolean equalTo(UpdateConnectionOptions other) { && upstreamParams.equals(other.upstreamParams) && setUserRootAttributes.equals(other.setUserRootAttributes) && gatewayAuthentication.equals(other.gatewayAuthentication) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && passwordOptions.equals(other.passwordOptions) && assertionDecryptionSettings.equals(other.assertionDecryptionSettings) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -677,7 +657,6 @@ public int hashCode() { this.upstreamParams, this.setUserRootAttributes, this.gatewayAuthentication, - this.federatedConnectionsAccessTokens, this.passwordOptions, this.assertionDecryptionSettings, this.idTokenSignedResponseAlgs, @@ -762,9 +741,6 @@ public static final class Builder { private OptionalNullable gatewayAuthentication = OptionalNullable.absent(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional passwordOptions = Optional.empty(); private Optional assertionDecryptionSettings = Optional.empty(); @@ -823,7 +799,6 @@ public Builder from(UpdateConnectionOptions other) { upstreamParams(other.getUpstreamParams()); setUserRootAttributes(other.getSetUserRootAttributes()); gatewayAuthentication(other.getGatewayAuthentication()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); passwordOptions(other.getPasswordOptions()); assertionDecryptionSettings(other.getAssertionDecryptionSettings()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1437,43 +1412,6 @@ public Builder gatewayAuthentication( return this; } - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public Builder federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - - public Builder federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - public Builder federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - public Builder federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - @JsonSetter(value = "password_options", nulls = Nulls.SKIP) public Builder passwordOptions(Optional passwordOptions) { this.passwordOptions = passwordOptions; @@ -1731,7 +1669,6 @@ public UpdateConnectionOptions build() { upstreamParams, setUserRootAttributes, gatewayAuthentication, - federatedConnectionsAccessTokens, passwordOptions, assertionDecryptionSettings, idTokenSignedResponseAlgs, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java index 62d8416e..9c5e0a48 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java @@ -361,7 +361,6 @@ public Builder from(UpdateCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +372,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +383,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java index 97fdeb39..a1327f6c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java @@ -99,7 +99,6 @@ public Builder from(UpdateDefaultCanonicalDomainResponseContent other) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java index 4779ecd9..9a166c69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java @@ -380,7 +380,6 @@ public Builder from(UpdateDefaultCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -392,7 +391,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -404,7 +402,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java index 75dfb1d0..37f90ae5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java @@ -350,7 +350,6 @@ public Builder from(UpdateDirectoryProvisioningResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -362,7 +361,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -374,7 +372,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -386,7 +383,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -398,7 +394,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -410,7 +405,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java index 85ea275e..bd18331d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java @@ -121,7 +121,6 @@ public Builder from(UpdateEnabledClientConnectionsRequestContentItem other) { } /** - *

The client_id of the client whose status will be changed. Note that the limit per PATCH request is 50 clients.

*

The client_id of the client whose status will be changed. Note that the limit per PATCH request is 50 clients.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public StatusStage clientId(@NotNull String clientId) { } /** - *

Whether the connection is enabled or not for this client_id

*

Whether the connection is enabled or not for this client_id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java index ebda4b62..c4a3bb5e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java @@ -323,7 +323,6 @@ public Builder from(UpdateFlowsVaultConnectionResponseContent other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -335,7 +334,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -347,7 +345,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -359,7 +356,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -371,7 +367,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -383,7 +378,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java index 8eebc23f..4c5e4431 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java @@ -223,11 +223,6 @@ public UpdateFlowsVaultConnectionSetup deserialize(JsonParser p, Deserialization } catch (RuntimeException e) { } } - try { - return of( - ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupBigqueryOauthJwt.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("type") && ((Map) value).containsKey("secret_key")) { @@ -319,10 +314,6 @@ public UpdateFlowsVaultConnectionSetup deserialize(JsonParser p, Deserialization } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupOauthCode.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("type") && ((Map) value).containsKey("account_id") @@ -333,6 +324,15 @@ public UpdateFlowsVaultConnectionSetup deserialize(JsonParser p, Deserialization } catch (RuntimeException e) { } } + try { + return of( + ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupBigqueryOauthJwt.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupOauthCode.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java index c73c1e9f..20b27472 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java @@ -260,7 +260,6 @@ public Builder from(UpdateOrganizationAllConnectionResponseContent other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java index f687785f..ad61730e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java @@ -219,7 +219,6 @@ public Builder from(UpdateOrganizationDiscoveryDomainResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 314750ed..75cbd4a8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java @@ -220,7 +220,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java index 3b534755..8dab5664 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java @@ -232,7 +232,6 @@ public Builder from(UpdateRateLimitPolicyResponseContent other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -258,7 +257,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java index 475b3669..8f0704d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -99,7 +99,6 @@ public Builder from(UpdateRiskAssessmentsSettingsNewDeviceResponseContent other) } /** - *

Length of time to remember devices for, in days.

*

Length of time to remember devices for, in days.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java index 1f20b862..281f86da 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java @@ -98,7 +98,6 @@ public Builder from(UpdateRiskAssessmentsSettingsResponseContent other) { } /** - *

Whether or not risk assessment is enabled.

*

Whether or not risk assessment is enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java index 7852ae67..8e765d5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java @@ -284,7 +284,6 @@ public Builder from(UpdateScimConfigurationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -332,7 +328,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +339,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +350,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java index ec7bff38..4750b240 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java @@ -98,7 +98,6 @@ public Builder from(UpdateSupplementalSignalsRequestContent other) { } /** - *

Indicates if incoming Akamai Headers should be processed

*

Indicates if incoming Akamai Headers should be processed

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java index f795f0cc..ea3fa958 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java @@ -85,10 +85,6 @@ static final class Deserializer extends StdDeserializer && ((Map) value).containsKey("template")) { try { return of(ObjectMappers.JSON_MAPPER.convertValue( @@ -96,6 +92,10 @@ public UpdateUniversalLoginTemplateRequestContent deserialize(JsonParser p, Dese } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java index 27aae165..bd29db92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java @@ -122,7 +122,6 @@ public Builder from(UserAttributeProfileOidcMapping other) { } /** - *

OIDC mapping field

*

OIDC mapping field

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java index 37fb0d77..d7acd394 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java @@ -262,7 +262,6 @@ public Builder from(UserAttributeProfileUserAttributeAdditionalProperties other) } /** - *

Description of this attribute

*

Description of this attribute

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -274,7 +273,6 @@ public LabelStage description(@NotNull String description) { } /** - *

Display label for this attribute

*

Display label for this attribute

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -286,7 +284,6 @@ public ProfileRequiredStage label(@NotNull String label) { } /** - *

Whether this attribute is required in the profile

*

Whether this attribute is required in the profile

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -298,7 +295,6 @@ public Auth0MappingStage profileRequired(boolean profileRequired) { } /** - *

Auth0 mapping for this attribute

*

Auth0 mapping for this attribute

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java index 9b55fe4e..863e0571 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java @@ -592,7 +592,6 @@ public Builder from(UserAuthenticationMethod other) { } /** - *

The ID of the authentication method (auto generated)

*

The ID of the authentication method (auto generated)

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -611,7 +610,6 @@ public CreatedAtStage type(@NotNull AuthenticationMethodTypeEnum type) { } /** - *

Authenticator creation date

*

Authenticator creation date

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java b/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java index d7bceb84..b948447e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java @@ -174,7 +174,6 @@ public Builder from(UserEffectiveRole other) { } /** - *

Role ID

*

Role ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -186,7 +185,6 @@ public NameStage id(@NotNull String id) { } /** - *

Role name

*

Role name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -198,7 +196,6 @@ public DescriptionStage name(@NotNull String name) { } /** - *

Role description

*

Role description

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java index 2669f8a1..3136a82f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java @@ -265,7 +265,6 @@ public Builder from(UserIdentity other) { } /** - *

Connection name of this identity.

*

Connection name of this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -277,7 +276,6 @@ public UserIdStage connection(@NotNull String connection) { } /** - *

user_id of this identity.

*

user_id of this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -289,7 +287,6 @@ public ProviderStage userId(@NotNull UserId userId) { } /** - *

Type of identity provider.

*

Type of identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java index 5c024437..2a719487 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java @@ -355,7 +355,6 @@ public Builder from(VerifyCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +366,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +377,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java index fda1c69e..cdd6e5c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java @@ -241,7 +241,6 @@ public Builder from(VerifyEmailTicketRequestContent other) { } /** - *

user_id of for whom the ticket should be created.

*

user_id of for whom the ticket should be created.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java index 2de3747c..b396bba1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java @@ -98,7 +98,6 @@ public Builder from(VerifyEmailTicketResponseContent other) { } /** - *

URL representing the ticket.

*

URL representing the ticket.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java index 88630790..97294df4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java @@ -147,7 +147,6 @@ public PemStage credentialType(@NotNull X509CertificateCredentialTypeEnum creden } /** - *

PEM-formatted X509 certificate. Must be JSON escaped.

*

PEM-formatted X509 certificate. Must be JSON escaped.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java deleted file mode 100644 index a94c43cb..00000000 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import java.util.List; -import java.util.concurrent.CompletableFuture; - -public class AsyncFederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - private final AsyncRawFederatedConnectionsTokensetsClient rawClient; - - public AsyncFederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - this.rawClient = new AsyncRawFederatedConnectionsTokensetsClient(clientOptions); - } - - /** - * Get responses with HTTP metadata like headers - */ - public AsyncRawFederatedConnectionsTokensetsClient withRawResponse() { - return this.rawClient; - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture> list(String id) { - return this.rawClient.list(id).thenApply(response -> response.body()); - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture> list(String id, RequestOptions requestOptions) { - return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); - } - - public CompletableFuture delete(String id, String tokensetId) { - return this.rawClient.delete(id, tokensetId).thenApply(response -> response.body()); - } - - public CompletableFuture delete(String id, String tokensetId, RequestOptions requestOptions) { - return this.rawClient.delete(id, tokensetId, requestOptions).thenApply(response -> response.body()); - } -} diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java index 1b429fb2..06d5cc42 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -106,6 +107,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -176,6 +186,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -230,6 +243,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -284,6 +306,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -342,6 +367,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -392,6 +426,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -436,6 +473,15 @@ public CompletableFuture> deleteAll(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -476,6 +522,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -517,6 +566,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -566,6 +624,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -612,6 +673,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -657,6 +727,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -738,6 +811,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -787,6 +869,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java index 8ff7d25b..99ed44ac 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public CompletableFuture> deleteAll(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -104,6 +114,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java index 43ab0f82..4bd582f8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -95,6 +96,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -161,6 +171,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java index 3ef25084..a591bb5f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public AsyncRawEffectivePermissionsClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -149,6 +159,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 ed55240d..a687f143 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -95,6 +96,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -161,6 +171,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java index bd99fd7d..e22a7baa 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -117,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java deleted file mode 100644 index 6f4456f4..00000000 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,208 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.ManagementApiException; -import com.auth0.client.mgmt.core.ManagementApiHttpResponse; -import com.auth0.client.mgmt.core.ManagementException; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.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.FederatedConnectionTokenSet; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.CompletableFuture; -import okhttp3.Call; -import okhttp3.Callback; -import okhttp3.Headers; -import okhttp3.HttpUrl; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; -import okhttp3.ResponseBody; -import org.jetbrains.annotations.NotNull; - -public class AsyncRawFederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - public AsyncRawFederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture>> list(String id) { - return list(id, null); - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture>> list( - String id, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets"); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("GET", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - CompletableFuture>> future = - new CompletableFuture<>(); - client.newCall(okhttpRequest).enqueue(new Callback() { - @Override - public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { - try (ResponseBody responseBody = response.body()) { - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - if (response.isSuccessful()) { - future.complete(new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, new TypeReference>() {}), - response)); - return; - } - try { - switch (response.code()) { - case 401: - future.completeExceptionally(new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 403: - future.completeExceptionally(new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 404: - future.completeExceptionally(new NotFoundError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 429: - future.completeExceptionally(new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - future.completeExceptionally(new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response)); - return; - } catch (IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - } - - @Override - public void onFailure(@NotNull Call call, @NotNull IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - }); - return future; - } - - public CompletableFuture> delete(String id, String tokensetId) { - return delete(id, tokensetId, null); - } - - public CompletableFuture> delete( - String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("DELETE", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - CompletableFuture> future = new CompletableFuture<>(); - client.newCall(okhttpRequest).enqueue(new Callback() { - @Override - public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { - try (ResponseBody responseBody = response.body()) { - if (response.isSuccessful()) { - future.complete(new ManagementApiHttpResponse<>(null, response)); - return; - } - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - try { - switch (response.code()) { - case 400: - future.completeExceptionally(new BadRequestError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 401: - future.completeExceptionally(new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 403: - future.completeExceptionally(new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 429: - future.completeExceptionally(new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - future.completeExceptionally(new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response)); - return; - } catch (IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - } - - @Override - public void onFailure(@NotNull Call call, @NotNull IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - }); - return future; - } -} 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 49ee7a1a..eeb67bd9 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java index 6ccf3ce8..e5b76edf 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -198,6 +199,15 @@ public CompletableFuture>> link( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -246,6 +256,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -296,6 +309,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -341,6 +363,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java index 6bf435ec..bd681f3a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -110,6 +111,15 @@ public CompletableFuture>> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -170,6 +180,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java index 5b3f0340..a931921e 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> invalidateRememberBrow if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -104,6 +114,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -151,6 +164,15 @@ public CompletableFuture> deleteProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -196,6 +218,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java index 1a914d65..73524c2c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -94,6 +95,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java index 95e0a5bd..d91515cf 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -222,6 +235,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -321,6 +346,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -366,6 +400,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java index 4e3afc4a..562e8012 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -202,6 +215,15 @@ public CompletableFuture> delete(String userId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -247,6 +269,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java index 93f01b84..5bcc6b8c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -77,6 +78,15 @@ public CompletableFuture> clear( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -117,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java index ad6652d1..41f4e642 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -169,6 +179,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -224,6 +237,15 @@ public CompletableFuture> assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -269,6 +291,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -324,6 +349,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -364,6 +398,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java index b2773d9a..1803065b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -202,6 +215,15 @@ public CompletableFuture> delete(String userId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -247,6 +269,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java deleted file mode 100644 index 6970674f..00000000 --- a/src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import java.util.List; - -public class FederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - private final RawFederatedConnectionsTokensetsClient rawClient; - - public FederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - this.rawClient = new RawFederatedConnectionsTokensetsClient(clientOptions); - } - - /** - * Get responses with HTTP metadata like headers - */ - public RawFederatedConnectionsTokensetsClient withRawResponse() { - return this.rawClient; - } - - /** - * List active federated connections tokensets for a provided user - */ - public List list(String id) { - return this.rawClient.list(id).body(); - } - - /** - * List active federated connections tokensets for a provided user - */ - public List list(String id, RequestOptions requestOptions) { - return this.rawClient.list(id, requestOptions).body(); - } - - public void delete(String id, String tokensetId) { - this.rawClient.delete(id, tokensetId).body(); - } - - public void delete(String id, String tokensetId, RequestOptions requestOptions) { - this.rawClient.delete(id, tokensetId, requestOptions).body(); - } -} diff --git a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java index e18e745b..548bd679 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -101,6 +102,15 @@ public ManagementApiHttpResponse> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -147,6 +157,8 @@ public ManagementApiHttpResponse> l Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -193,6 +205,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -229,6 +250,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -279,6 +302,15 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -376,6 +419,8 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -409,6 +454,15 @@ public ManagementApiHttpResponse get if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -442,6 +496,8 @@ public ManagementApiHttpResponse get Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -480,6 +536,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -510,6 +575,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -583,6 +650,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -616,6 +692,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java index 84bbdde3..bff9121d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -60,6 +61,15 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -87,6 +97,8 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java index 26e6724b..85df9faf 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -90,6 +91,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java index f6174576..9f22430b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -77,6 +78,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -133,6 +143,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java index 0617f71d..a1a5fddc 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse> get(String id, RequestOp if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -97,6 +107,8 @@ public ManagementApiHttpResponse> get(String id, RequestOp Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java deleted file mode 100644 index b74867d4..00000000 --- a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,159 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.ManagementApiException; -import com.auth0.client.mgmt.core.ManagementApiHttpResponse; -import com.auth0.client.mgmt.core.ManagementException; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.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.FederatedConnectionTokenSet; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.IOException; -import java.util.List; -import okhttp3.Headers; -import okhttp3.HttpUrl; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; -import okhttp3.ResponseBody; - -public class RawFederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - public RawFederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - } - - /** - * List active federated connections tokensets for a provided user - */ - public ManagementApiHttpResponse> list(String id) { - return list(id, null); - } - - /** - * List active federated connections tokensets for a provided user - */ - public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets"); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("GET", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - try (Response response = client.newCall(okhttpRequest).execute()) { - ResponseBody responseBody = response.body(); - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - if (response.isSuccessful()) { - return new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, new TypeReference>() {}), - response); - } - try { - switch (response.code()) { - case 401: - throw new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 403: - throw new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 404: - throw new NotFoundError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 429: - throw new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - throw new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response); - } catch (IOException e) { - throw new ManagementException("Network error executing HTTP request", e); - } - } - - public ManagementApiHttpResponse delete(String id, String tokensetId) { - return delete(id, tokensetId, null); - } - - public ManagementApiHttpResponse delete(String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("DELETE", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - try (Response response = client.newCall(okhttpRequest).execute()) { - ResponseBody responseBody = response.body(); - if (response.isSuccessful()) { - return new ManagementApiHttpResponse<>(null, response); - } - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - try { - switch (response.code()) { - case 400: - throw new BadRequestError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 401: - throw new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 403: - throw new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 429: - throw new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - throw new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response); - } catch (IOException e) { - throw new ManagementException("Network error executing HTTP request", e); - } - } -} 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 41718b64..e87f4c81 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -141,6 +151,8 @@ public ManagementApiHttpResponse> g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java index 31bb0f9b..7507804d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -192,6 +193,15 @@ public ManagementApiHttpResponse> link( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -225,6 +235,8 @@ public ManagementApiHttpResponse> link( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -267,6 +279,15 @@ public ManagementApiHttpResponse> de if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -298,6 +319,8 @@ public ManagementApiHttpResponse> de Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java index fde9cf5d..04a96263 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -143,6 +153,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java index f7143323..69efe0bb 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse invalidateRememberBrowser(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -88,6 +98,8 @@ public ManagementApiHttpResponse invalidateRememberBrowser(String id, Requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -126,6 +138,15 @@ public ManagementApiHttpResponse deleteProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -156,6 +177,8 @@ public ManagementApiHttpResponse deleteProvider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java index e85f553a..4bc76a45 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -88,6 +89,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -129,6 +139,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java index f6683d0b..bdf323e6 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -213,6 +234,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +281,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -288,6 +320,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java index 468cb010..c09a6ed0 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -91,6 +92,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -132,6 +142,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -168,6 +180,15 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -198,6 +219,8 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java index 35b0673d..59053543 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse clear( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -100,6 +110,8 @@ public ManagementApiHttpResponse clear( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java index 24333f89..3b109e6f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -186,6 +198,15 @@ public ManagementApiHttpResponse assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -216,6 +237,8 @@ public ManagementApiHttpResponse assign( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -263,6 +286,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -290,6 +322,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java index a21ed36a..1d0bcf57 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -91,6 +92,15 @@ public ManagementApiHttpResponse> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -132,6 +142,8 @@ public ManagementApiHttpResponse> lis Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -168,6 +180,15 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -198,6 +219,8 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java index e2c61e49..d21f83bd 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -89,6 +90,15 @@ public AsyncRawRolesClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture< ManagementApiHttpResponse>> future = new CompletableFuture<>(); @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java index 97756a6a..f96c8322 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -79,6 +80,15 @@ public ManagementApiHttpResponse getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -60,7 +62,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -71,7 +74,7 @@ public OptionalNullable getTake() { /** * @return The identifier of the resource server for which to calculate user permissions. */ - @JsonIgnore + @JsonProperty("resource_server_identifier") public String getResourceServerIdentifier() { return resourceServerIdentifier; } @@ -79,11 +82,23 @@ public String getResourceServerIdentifier() { /** * @return Name of this permission */ - @JsonIgnore + @JsonProperty("permission_name") public String getPermissionName() { return permissionName; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -188,7 +203,6 @@ public Builder from(ListUserEffectivePermissionRoleSourceRequestParameters other } /** - *

The identifier of the resource server for which to calculate user permissions.

*

The identifier of the resource server for which to calculate user permissions.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -201,7 +215,6 @@ public PermissionNameStage resourceServerIdentifier(@NotNull String resourceServ } /** - *

Name of this permission

*

Name of this permission

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3356b51e..2b27052c 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -146,6 +156,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 d515a5e2..44704908 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -77,6 +78,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -120,6 +130,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java index fdae70c6..f507b2e1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.effectiveroles.sources.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,7 @@ private ListUserRoleSourceGroupsRequestParameters( /** * @return ID of the role to get source groups for. */ - @JsonIgnore + @JsonProperty("role_id") public String getRoleId() { return roleId; } @@ -53,7 +54,8 @@ public String getRoleId() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -64,7 +66,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -72,6 +75,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -163,7 +178,6 @@ public Builder from(ListUserRoleSourceGroupsRequestParameters other) { } /** - *

ID of the role to get source groups for.

*

ID of the role to get source groups for.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java index 54c8a842..c6030cd9 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java @@ -126,7 +126,6 @@ public Builder from(ClearAssessorsRequestContent other) { } /** - *

The name of the connection containing the user whose assessors should be cleared.

*

The name of the connection containing the user whose assessors should be cleared.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java index bbfe5187..d3744832 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private GetUserConnectedAccountsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results to return. Defaults to 10 with a maximum of 20 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java index 6ee63b76..5fd93815 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private GetUserGroupsRequestParameters( /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getIncludeFields() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java index 0c206742..0164af02 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListRefreshTokensRequestParameters( /** * @return An optional cursor from which to start the selection (exclusive). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java index adfa218a..8ea18bf5 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserAuthenticationMethodsRequestParameters( /** * @return Page index of the results to return. First page is 0. Default is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Default is 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java index 827c5556..622bdc87 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,8 @@ private ListUserEffectivePermissionsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -56,7 +58,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -67,11 +70,23 @@ public OptionalNullable getTake() { /** * @return The identifier of the resource server for which to calculate user permissions. */ - @JsonIgnore + @JsonProperty("resource_server_identifier") public String getResourceServerIdentifier() { return resourceServerIdentifier; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -165,7 +180,6 @@ public Builder from(ListUserEffectivePermissionsRequestParameters other) { } /** - *

The identifier of the resource server for which to calculate user permissions.

*

The identifier of the resource server for which to calculate user permissions.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java index 69597670..66016480 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListUserEffectiveRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java index cb208906..faed1557 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListUserLogsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Paging is disabled if parameter not sent. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getPerPage() { /** * @return Field to sort by. Use fieldname:1 for ascending order and fieldname:-1 for descending. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getSort() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java index 28f64e78..38b0dee5 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserOrganizationsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java index 0aa312f9..e9f9bdc1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserPermissionsRequestParameters( /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java index 72499547..11374e9d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserRolesRequestParameters( /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java index 75bf5cd8..79dcdfd8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.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.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListUserSessionsRequestParameters( /** * @return An optional cursor from which to start the selection (exclusive). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java index 4fa0a46b..5d31c14e 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -218,6 +231,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -311,6 +336,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -403,6 +440,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -443,6 +489,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -514,6 +563,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -563,6 +621,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java index ef1139d1..2e6381c0 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -285,6 +317,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -320,6 +354,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -347,6 +390,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -409,6 +454,15 @@ public ManagementApiHttpResponse getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java index 7fa7b9ed..ff431cf2 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.actions.modules.types.GetActionModuleVersionsRequestParameters; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionModuleVersion; import com.auth0.client.mgmt.types.CreateActionModuleVersionResponseContent; @@ -50,8 +49,8 @@ public void testList() throws Exception { .list( "id", GetActionModuleVersionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java index f772b44e..b7a09008 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java @@ -6,7 +6,6 @@ import com.auth0.client.mgmt.actions.types.RollbackActionModuleRequestParameters; import com.auth0.client.mgmt.actions.types.UpdateActionModuleRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionModuleAction; import com.auth0.client.mgmt.types.ActionModuleListItem; @@ -54,8 +53,8 @@ public void testList() throws Exception { SyncPagingIterable response = client.actions() .modules() .list(GetActionModulesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -396,8 +395,8 @@ public void testListActions() throws Exception { .listActions( "id", GetActionModuleActionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java index a6a673b8..ae17c722 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java @@ -3,7 +3,6 @@ import com.auth0.client.mgmt.actions.triggers.types.ListActionTriggerBindingsRequestParameters; import com.auth0.client.mgmt.actions.triggers.types.UpdateActionBindingsRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionBinding; import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; @@ -51,8 +50,8 @@ public void testList() throws Exception { .list( ActionTriggerTypeEnum.POST_LOGIN, ListActionTriggerBindingsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java index 519274b6..b33e1bc9 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java @@ -5,6 +5,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionVersion; +import com.auth0.client.mgmt.types.DeployActionVersionRequestContent; import com.auth0.client.mgmt.types.DeployActionVersionResponseContent; import com.auth0.client.mgmt.types.GetActionVersionResponseContent; import com.fasterxml.jackson.databind.JsonNode; @@ -49,8 +50,8 @@ public void testList() throws Exception { .list( "actionId", ListActionVersionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -113,8 +114,13 @@ public void testDeploy() throws Exception { server.enqueue(new MockResponse() .setResponseCode(200) .setBody(TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testDeploy_response.json"))); - DeployActionVersionResponseContent response = - client.actions().versions().deploy("actionId", "id", OptionalNullable.absent()); + DeployActionVersionResponseContent response = client.actions() + .versions() + .deploy( + "actionId", + "id", + OptionalNullable.of( + DeployActionVersionRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java index 424ad76d..c293b9be 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Action; import com.auth0.client.mgmt.types.ActionTrigger; @@ -57,12 +56,12 @@ public void testList() throws Exception { "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"actions\":[{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"post-login\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{}],\"runtime\":\"runtime\",\"secrets\":[{}],\"installed_integration_id\":\"installed_integration_id\",\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{}]}]}")); SyncPagingIterable response = client.actions() .list(ListActionsRequestParameters.builder() - .triggerId(OptionalNullable.of(ActionTriggerTypeEnum.POST_LOGIN)) - .actionName(OptionalNullable.of("actionName")) - .deployed(OptionalNullable.of(true)) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .installed(OptionalNullable.of(true)) + .triggerId(ActionTriggerTypeEnum.POST_LOGIN) + .actionName("actionName") + .deployed(true) + .page(1) + .perPage(1) + .installed(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -214,9 +213,7 @@ public void testDelete() throws Exception { client.actions() .delete( "id", - DeleteActionRequestParameters.builder() - .force(OptionalNullable.of(true)) - .build()); + DeleteActionRequestParameters.builder().force(true).build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("DELETE", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java b/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java index 24bbe8ac..ec5c46d1 100644 --- a/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java @@ -5,7 +5,6 @@ import com.auth0.client.mgmt.branding.phone.types.ListBrandingPhoneProvidersRequestParameters; import com.auth0.client.mgmt.branding.phone.types.UpdateBrandingPhoneProviderRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.CreateBrandingPhoneProviderResponseContent; import com.auth0.client.mgmt.types.CreatePhoneProviderSendTestResponseContent; import com.auth0.client.mgmt.types.GetBrandingPhoneProviderResponseContent; @@ -55,7 +54,7 @@ public void testList() throws Exception { .phone() .providers() .list(ListBrandingPhoneProvidersRequestParameters.builder() - .disabled(OptionalNullable.of(true)) + .disabled(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java b/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java index f4ff1e23..52fe39f7 100644 --- a/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java @@ -5,7 +5,6 @@ import com.auth0.client.mgmt.branding.phone.types.ListPhoneTemplatesRequestParameters; import com.auth0.client.mgmt.branding.phone.types.UpdatePhoneTemplateRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.CreatePhoneTemplateResponseContent; import com.auth0.client.mgmt.types.CreatePhoneTemplateTestNotificationResponseContent; import com.auth0.client.mgmt.types.GetPhoneTemplateResponseContent; @@ -55,7 +54,7 @@ public void testList() throws Exception { .phone() .templates() .list(ListPhoneTemplatesRequestParameters.builder() - .disabled(OptionalNullable.of(true)) + .disabled(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java index e6979f83..4eed91a6 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.clientgrants.types.ListClientGrantOrganizationsRequestParameters; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Organization; import com.fasterxml.jackson.databind.JsonNode; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "id", ListClientGrantOrganizationsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java index 0afed0d6..3a33b8d5 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ClientGrantDefaultForEnum; import com.auth0.client.mgmt.types.ClientGrantResponseContent; @@ -51,13 +50,13 @@ public void testList() throws Exception { "{\"next\":\"next\",\"client_grants\":[{\"id\":\"id\",\"client_id\":\"client_id\",\"audience\":\"audience\",\"scope\":[\"scope\"],\"organization_usage\":\"deny\",\"allow_any_organization\":true,\"default_for\":\"third_party_clients\",\"is_system\":true,\"subject_type\":\"client\",\"authorization_details_types\":[\"authorization_details_types\"],\"allow_all_scopes\":true}]}")); SyncPagingIterable response = client.clientGrants() .list(ListClientGrantsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .audience(OptionalNullable.of("audience")) - .clientId(OptionalNullable.of("client_id")) - .allowAnyOrganization(OptionalNullable.of(true)) - .subjectType(OptionalNullable.of(ClientGrantSubjectTypeEnum.CLIENT)) - .defaultFor(OptionalNullable.of(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS)) + .from("from") + .take(1) + .audience("audience") + .clientId("client_id") + .allowAnyOrganization(true) + .subjectType(ClientGrantSubjectTypeEnum.CLIENT) + .defaultFor(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java index db3475f6..8dcb8309 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.clients.types.ConnectionsGetRequest; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionForList; import com.auth0.client.mgmt.types.ConnectionStrategyEnum; @@ -49,10 +48,10 @@ public void testGet() throws Exception { .get( "id", ConnectionsGetRequest.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .strategy(Arrays.asList(ConnectionStrategyEnum.AD)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java index 9daf459c..cf5d3e42 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Client; import com.auth0.client.mgmt.types.CreateClientRequestContent; @@ -53,16 +52,16 @@ public void testList() throws Exception { .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testList_response.json"))); SyncPagingIterable response = client.clients() .list(ListClientsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .isGlobal(OptionalNullable.of(true)) - .isFirstParty(OptionalNullable.of(true)) - .appType(OptionalNullable.of("app_type")) - .externalClientId(OptionalNullable.of("external_client_id")) - .q(OptionalNullable.of("q")) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .isGlobal(true) + .isFirstParty(true) + .appType("app_type") + .externalClientId("external_client_id") + .q("q") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -396,8 +395,8 @@ public void testGet() throws Exception { .get( "id", GetClientRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java index 5fd615de..d62104e3 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionProfile; import com.auth0.client.mgmt.types.CreateConnectionProfileRequestContent; @@ -51,8 +50,8 @@ public void testList() throws Exception { "{\"next\":\"next\",\"connection_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"]}]}")); SyncPagingIterable response = client.connectionProfiles() .list(ListConnectionProfileRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java index cfcb3595..83a11c14 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.connections.types.GetConnectionEnabledClientsRequestParameters; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionEnabledClient; import com.auth0.client.mgmt.types.UpdateEnabledClientConnectionsRequestContentItem; @@ -47,8 +46,8 @@ public void testGet() throws Exception { .get( "id", GetConnectionEnabledClientsRequestParameters.builder() - .take(OptionalNullable.of(1)) - .from(OptionalNullable.of("from")) + .take(1) + .from("from") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java index 75257a9e..19f3893b 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java @@ -6,11 +6,13 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.CreateDirectoryProvisioningRequestContent; import com.auth0.client.mgmt.types.CreateDirectoryProvisioningResponseContent; import com.auth0.client.mgmt.types.DirectoryProvisioning; import com.auth0.client.mgmt.types.GetDirectoryProvisioningDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetDirectoryProvisioningResponseContent; import com.auth0.client.mgmt.types.SynchronizedGroupPayload; +import com.auth0.client.mgmt.types.UpdateDirectoryProvisioningRequestContent; import com.auth0.client.mgmt.types.UpdateDirectoryProvisioningResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -53,8 +55,8 @@ public void testList() throws Exception { SyncPagingIterable response = client.connections() .directoryProvisioning() .list(ListDirectoryProvisioningsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -139,8 +141,12 @@ public void testCreate() throws Exception { .setResponseCode(200) .setBody( "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"all\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); - CreateDirectoryProvisioningResponseContent response = - client.connections().directoryProvisioning().create("id", OptionalNullable.absent()); + CreateDirectoryProvisioningResponseContent response = client.connections() + .directoryProvisioning() + .create( + "id", + OptionalNullable.of(CreateDirectoryProvisioningRequestContent.builder() + .build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); @@ -214,8 +220,12 @@ public void testUpdate() throws Exception { .setResponseCode(200) .setBody( "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"all\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); - UpdateDirectoryProvisioningResponseContent response = - client.connections().directoryProvisioning().update("id", OptionalNullable.absent()); + UpdateDirectoryProvisioningResponseContent response = client.connections() + .directoryProvisioning() + .update( + "id", + OptionalNullable.of(UpdateDirectoryProvisioningRequestContent.builder() + .build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("PATCH", request.getMethod()); @@ -336,8 +346,8 @@ public void testListSynchronizedGroups() throws Exception { .listSynchronizedGroups( "id", ListSynchronizedGroupsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java index 7783e78b..31ba6382 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java @@ -3,7 +3,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.ConnectionKey; +import com.auth0.client.mgmt.types.PostConnectionKeysRequestContent; import com.auth0.client.mgmt.types.PostConnectionsKeysResponseContentItem; +import com.auth0.client.mgmt.types.RotateConnectionKeysRequestContent; import com.auth0.client.mgmt.types.RotateConnectionsKeysResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -106,8 +108,12 @@ public void testCreate() throws Exception { .setResponseCode(200) .setBody( "[{\"kid\":\"kid\",\"cert\":\"cert\",\"pkcs\":\"pkcs\",\"current\":true,\"next\":true,\"current_since\":\"current_since\",\"fingerprint\":\"fingerprint\",\"thumbprint\":\"thumbprint\",\"algorithm\":\"algorithm\",\"key_use\":\"encryption\",\"subject_dn\":\"subject_dn\"}]")); - List response = - client.connections().keys().create("id", OptionalNullable.absent()); + List response = client.connections() + .keys() + .create( + "id", + OptionalNullable.of( + PostConnectionKeysRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); @@ -169,8 +175,12 @@ public void testRotate() throws Exception { .setResponseCode(200) .setBody( "{\"kid\":\"kid\",\"cert\":\"cert\",\"pkcs\":\"pkcs\",\"next\":true,\"fingerprint\":\"fingerprint\",\"thumbprint\":\"thumbprint\",\"algorithm\":\"algorithm\",\"key_use\":\"encryption\",\"subject_dn\":\"subject_dn\"}")); - RotateConnectionsKeysResponseContent response = - client.connections().keys().rotate("id", OptionalNullable.absent()); + RotateConnectionsKeysResponseContent response = client.connections() + .keys() + .rotate( + "id", + OptionalNullable.of( + RotateConnectionKeysRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java index 7ba0ab3b..dc5991b1 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java @@ -5,6 +5,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.CreateScimConfigurationRequestContent; import com.auth0.client.mgmt.types.CreateScimConfigurationResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationResponseContent; @@ -52,8 +53,8 @@ public void testList() throws Exception { SyncPagingIterable response = client.connections() .scimConfiguration() .list(ListScimConfigurationsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -135,8 +136,12 @@ public void testCreate() throws Exception { .setResponseCode(200) .setBody( "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_on\":\"2024-01-15T09:30:00Z\"}")); - CreateScimConfigurationResponseContent response = - client.connections().scimConfiguration().create("id", OptionalNullable.absent()); + CreateScimConfigurationResponseContent response = client.connections() + .scimConfiguration() + .create( + "id", + OptionalNullable.of( + CreateScimConfigurationRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java index 3a5ca65b..01a2b409 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionForList; import com.auth0.client.mgmt.types.ConnectionIdentityProviderEnum; @@ -53,11 +52,11 @@ public void testList() throws Exception { "{\"next\":\"next\",\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true}}]}")); SyncPagingIterable response = client.connections() .list(ListConnectionsQueryParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .name(OptionalNullable.of("name")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .name("name") + .fields("fields") + .includeFields(true) .strategy(Arrays.asList(ConnectionStrategyEnum.AD)) .build()); RecordedRequest request = server.takeRequest(); @@ -191,8 +190,8 @@ public void testGet() throws Exception { .get( "id", GetConnectionRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java index 0249aef2..f8b0f513 100644 --- a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.CreateCustomDomainRequestContent; import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent; import com.auth0.client.mgmt.types.CustomDomain; @@ -55,10 +54,10 @@ public void testList() throws Exception { "[{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"is_default\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"},\"relying_party_identifier\":\"relying_party_identifier\"}]")); List response = client.customDomains() .list(ListCustomDomainsRequestParameters.builder() - .q(OptionalNullable.of("q")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .sort(OptionalNullable.of("sort")) + .q("q") + .fields("fields") + .includeFields(true) + .sort("sort") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java b/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java index 2bfe290f..b487d7f6 100644 --- a/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreatePublicKeyDeviceCredentialRequestContent; import com.auth0.client.mgmt.types.CreatePublicKeyDeviceCredentialResponseContent; @@ -48,14 +47,14 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"device_credentials\":[{\"id\":\"id\",\"device_name\":\"device_name\",\"device_id\":\"device_id\",\"type\":\"public_key\",\"user_id\":\"user_id\",\"client_id\":\"client_id\"}]}")); SyncPagingIterable response = client.deviceCredentials() .list(ListDeviceCredentialsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .userId(OptionalNullable.of("user_id")) - .clientId(OptionalNullable.of("client_id")) - .type(OptionalNullable.of(DeviceCredentialTypeEnum.PUBLIC_KEY)) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .userId("user_id") + .clientId("client_id") + .type(DeviceCredentialTypeEnum.PUBLIC_KEY) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java b/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java index 197c9026..fcd3e445 100644 --- a/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.emails.types.CreateEmailProviderRequestContent; import com.auth0.client.mgmt.emails.types.GetEmailProviderRequestParameters; import com.auth0.client.mgmt.emails.types.UpdateEmailProviderRequestContent; @@ -51,8 +50,8 @@ public void testGet() throws Exception { GetEmailProviderResponseContent response = client.emails() .provider() .get(GetEmailProviderRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java index c5750f9c..f86d8b64 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.eventstreams.types.ListEventStreamDeliveriesRequestParameters; import com.auth0.client.mgmt.types.EventStreamDelivery; import com.auth0.client.mgmt.types.GetEventStreamDeliveryHistoryResponseContent; @@ -48,12 +47,12 @@ public void testList() throws Exception { .list( "id", ListEventStreamDeliveriesRequestParameters.builder() - .statuses(OptionalNullable.of("statuses")) - .eventTypes(OptionalNullable.of("event_types")) - .dateFrom(OptionalNullable.of("date_from")) - .dateTo(OptionalNullable.of("date_to")) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .statuses("statuses") + .eventTypes("event_types") + .dateFrom("date_from") + .dateTo("date_to") + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java index 56f4e7da..3872db15 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateEventStreamResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventRequestContent; @@ -59,8 +58,8 @@ public void testList() throws Exception { "{\"eventStreams\":[{\"id\":\"id\",\"name\":\"name\",\"subscriptions\":[{}],\"destination\":{\"type\":\"webhook\",\"configuration\":{\"webhook_endpoint\":\"webhook_endpoint\",\"webhook_authorization\":{\"method\":\"basic\",\"username\":\"username\"}}},\"status\":\"enabled\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); SyncPagingIterable response = client.eventStreams() .list(ListEventStreamsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java index 28b8c35a..5b8d25d8 100644 --- a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.EventStreamSubscribeEventsEventTypeEnum; import com.auth0.client.mgmt.types.EventStreamSubscribeEventsResponseContent; import com.auth0.client.mgmt.types.SubscribeEventsRequestParameters; @@ -41,8 +40,8 @@ public void testSubscribe() throws Exception { server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); Iterable response = client.events() .subscribe(SubscribeEventsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .fromTimestamp(OptionalNullable.of("from_timestamp")) + .from("from") + .fromTimestamp("from_timestamp") .eventType(Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java b/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java index d61853f1..7d1ae52d 100644 --- a/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.flows.types.GetFlowExecutionRequestParameters; import com.auth0.client.mgmt.flows.types.ListFlowExecutionsRequestParameters; @@ -51,8 +50,8 @@ public void testList() throws Exception { .list( "flow_id", ListFlowExecutionsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java index f35431d6..60ef90a1 100644 --- a/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.flows.vault.types.ListFlowsVaultConnectionsRequestParameters; import com.auth0.client.mgmt.flows.vault.types.UpdateFlowsVaultConnectionRequestContent; @@ -56,9 +55,9 @@ public void testList() throws Exception { .vault() .connections() .list(ListFlowsVaultConnectionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java b/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java index 7eb3fc2a..dd9a550a 100644 --- a/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateFlowRequestContent; import com.auth0.client.mgmt.types.CreateFlowResponseContent; @@ -53,10 +52,10 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"flows\":[{\"id\":\"id\",\"name\":\"name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"executed_at\":\"executed_at\"}]}")); SyncPagingIterable response = client.flows() .list(ListFlowsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .synchronous(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .synchronous(true) .hydrate(Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java index afbbcc10..29fa7b20 100644 --- a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateFormRequestContent; import com.auth0.client.mgmt.types.CreateFormResponseContent; @@ -52,9 +51,9 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"forms\":[{\"id\":\"id\",\"name\":\"name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}]}")); SyncPagingIterable response = client.forms() .list(ListFormsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .hydrate(Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java index ba2fdfeb..16612e1a 100644 --- a/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; import com.auth0.client.mgmt.types.GroupMember; @@ -47,10 +46,10 @@ public void testGet() throws Exception { .get( "id", GetGroupMembersRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java index 428bbc47..921d6267 100644 --- a/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.groups.types.CreateGroupRolesRequestParameters; import com.auth0.client.mgmt.groups.types.DeleteGroupRolesRequestContent; @@ -50,8 +49,8 @@ public void testList() throws Exception { .list( "id", ListGroupRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java index b45bcac3..47a11f02 100644 --- a/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.GetGroupResponseContent; import com.auth0.client.mgmt.types.Group; @@ -45,14 +44,14 @@ public void testList() throws Exception { "{\"groups\":[{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"tenant_name\":\"tenant_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\",\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); SyncPagingIterable response = client.groups() .list(ListGroupsRequestParameters.builder() - .connectionId(OptionalNullable.of("connection_id")) - .name(OptionalNullable.of("name")) - .externalId(OptionalNullable.of("external_id")) - .search(OptionalNullable.of("search")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .connectionId("connection_id") + .name("name") + .externalId("external_id") + .search("search") + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java b/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java index 6a11a7e9..19bbda9a 100644 --- a/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.Optional; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import okhttp3.mockwebserver.RecordedRequest; @@ -309,7 +310,7 @@ public void testGetTemplates() throws Exception { .setResponseCode(200) .setBody( "{\"enrollment_message\":\"enrollment_message\",\"verification_message\":\"verification_message\"}")); - GetGuardianFactorSmsTemplatesResponseContent response = + Optional response = client.guardian().factors().sms().getTemplates(); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/HooksWireTest.java b/src/test/java/com/auth0/client/mgmt/HooksWireTest.java index 2fe6f78a..4f0d3264 100644 --- a/src/test/java/com/auth0/client/mgmt/HooksWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/HooksWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateHookRequestContent; import com.auth0.client.mgmt.types.CreateHookResponseContent; @@ -51,12 +50,12 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"hooks\":[{\"triggerId\":\"triggerId\",\"id\":\"id\",\"name\":\"name\",\"enabled\":true,\"script\":\"script\",\"dependencies\":{\"key\":\"value\"}}]}")); SyncPagingIterable response = client.hooks() .list(ListHooksRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .enabled(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .triggerId(OptionalNullable.of(HookTriggerIdEnum.CREDENTIALS_EXCHANGE)) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -172,11 +171,7 @@ public void testGet() throws Exception { .setBody( "{\"triggerId\":\"triggerId\",\"id\":\"id\",\"name\":\"name\",\"enabled\":true,\"script\":\"script\",\"dependencies\":{\"key\":\"value\"}}")); GetHookResponseContent response = client.hooks() - .get( - "id", - GetHookRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .build()); + .get("id", GetHookRequestParameters.builder().fields("fields").build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("GET", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java b/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java index e3602abf..56fb8104 100644 --- a/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java @@ -4,6 +4,7 @@ import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.Optional; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import okhttp3.mockwebserver.RecordedRequest; @@ -36,7 +37,7 @@ public void teardown() throws Exception { public void testGet() throws Exception { server.enqueue( new MockResponse().setResponseCode(200).setBody("[{\"user\":{\"key\":\"value\"},\"errors\":[{}]}]")); - ErrorsGetResponse response = client.jobs().errors().get("id"); + Optional response = client.jobs().errors().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("GET", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java b/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java index 527fbe67..2e0743a4 100644 --- a/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.keys.types.CreateEncryptionKeyRequestContent; import com.auth0.client.mgmt.keys.types.ImportEncryptionKeyRequestContent; @@ -52,9 +51,9 @@ public void testList() throws Exception { SyncPagingIterable response = client.keys() .encryption() .list(ListEncryptionKeysRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/LogsWireTest.java b/src/test/java/com/auth0/client/mgmt/LogsWireTest.java index 56248e03..17e51576 100644 --- a/src/test/java/com/auth0/client/mgmt/LogsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/LogsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.GetLogResponseContent; import com.auth0.client.mgmt.types.ListLogsRequestParameters; @@ -45,13 +44,13 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"length\":1.1,\"total\":1.1,\"logs\":[{\"date\":\"date\",\"type\":\"type\",\"description\":\"description\",\"connection\":\"connection\",\"connection_id\":\"connection_id\",\"client_id\":\"client_id\",\"client_name\":\"client_name\",\"ip\":\"ip\",\"hostname\":\"hostname\",\"user_id\":\"user_id\",\"user_name\":\"user_name\",\"audience\":\"audience\",\"scope\":\"scope\",\"strategy\":\"strategy\",\"strategy_type\":\"strategy_type\",\"log_id\":\"log_id\",\"isMobile\":true,\"details\":{\"key\":\"value\"},\"user_agent\":\"user_agent\"}]}")); SyncPagingIterable response = client.logs() .list(ListLogsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .sort(OptionalNullable.of("sort")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .includeTotals(OptionalNullable.of(true)) - .search(OptionalNullable.of("search")) + .page(1) + .perPage(1) + .sort("sort") + .fields("fields") + .includeFields(true) + .includeTotals(true) + .search("search") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java index 1018aebe..96e0f919 100644 --- a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateNetworkAclRequestContent; import com.auth0.client.mgmt.types.GetNetworkAclsResponseContent; @@ -53,9 +52,9 @@ public void testList() throws Exception { "{\"network_acls\":[{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}],\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); SyncPagingIterable response = client.networkAcls() .list(ListNetworkAclsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java index cc1eddc7..cfb2847b 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.AssociateOrganizationClientGrantRequestContent; import com.auth0.client.mgmt.organizations.types.ListOrganizationClientGrantsRequestParameters; @@ -50,11 +49,11 @@ public void testList() throws Exception { .list( "id", ListOrganizationClientGrantsRequestParameters.builder() - .audience(OptionalNullable.of("audience")) - .clientId(OptionalNullable.of("client_id")) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .audience("audience") + .clientId("client_id") + .page(1) + .perPage(1) + .includeTotals(true) .grantIds(Arrays.asList("grant_ids")) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java index 084ae162..6352f0fb 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationAllConnectionRequestParameters; import com.auth0.client.mgmt.organizations.types.ListOrganizationAllConnectionsRequestParameters; @@ -52,10 +51,10 @@ public void testList() throws Exception { .list( "id", ListOrganizationAllConnectionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .isEnabled(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .isEnabled(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java index e3e17eed..2c94c550 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationDiscoveryDomainRequestContent; import com.auth0.client.mgmt.organizations.types.ListOrganizationDiscoveryDomainsRequestParameters; @@ -53,8 +52,8 @@ public void testList() throws Exception { .list( "id", ListOrganizationDiscoveryDomainsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java index 00eb0d9b..38420ee5 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.AddOrganizationConnectionRequestContent; import com.auth0.client.mgmt.organizations.types.ListOrganizationConnectionsRequestParameters; @@ -52,9 +51,9 @@ public void testList() throws Exception { .list( "id", ListOrganizationConnectionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java index 97b14b84..1b770d2e 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.groups.types.CreateOrganizationGroupRolesRequestContent; import com.auth0.client.mgmt.organizations.groups.types.DeleteOrganizationGroupRolesRequestContent; @@ -52,8 +51,8 @@ public void testList() throws Exception { "organization_id", "group_id", ListOrganizationGroupRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java index 04a42544..da3667f9 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.ListOrganizationGroupsRequestParameters; import com.auth0.client.mgmt.types.Group; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "organization_id", ListOrganizationGroupsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java index 93c81cd3..3f90d23f 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationInvitationRequestContent; import com.auth0.client.mgmt.organizations.types.GetOrganizationInvitationRequestParameters; @@ -53,12 +52,12 @@ public void testList() throws Exception { .list( "id", ListOrganizationInvitationsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .sort(OptionalNullable.of("sort")) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .sort("sort") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -205,8 +204,8 @@ public void testGet() throws Exception { "id", "invitation_id", GetOrganizationInvitationRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java index 8ede4bf6..185af002 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.members.effectiveroles.sources.types.ListOrganizationMemberRoleSourceGroupsRequestParameters; import com.auth0.client.mgmt.types.Group; @@ -52,8 +51,8 @@ public void testList() throws Exception { "user_id", ListOrganizationMemberRoleSourceGroupsRequestParameters.builder() .roleId("role_id") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java index 1d71bf6e..241d1bbb 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.members.types.ListOrganizationMemberEffectiveRolesRequestParameters; import com.auth0.client.mgmt.types.OrganizationMemberEffectiveRole; @@ -49,8 +48,8 @@ public void testList() throws Exception { "id", "user_id", ListOrganizationMemberEffectiveRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java index f9112346..cd617553 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.members.types.AssignOrganizationMemberRolesRequestContent; import com.auth0.client.mgmt.organizations.members.types.DeleteOrganizationMemberRolesRequestContent; @@ -52,9 +51,9 @@ public void testList() throws Exception { "id", "user_id", ListOrganizationMemberRolesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java index 395b97a5..eaff5333 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationMemberRequestContent; import com.auth0.client.mgmt.organizations.types.DeleteOrganizationMembersRequestContent; @@ -50,10 +49,10 @@ public void testList() throws Exception { .list( "id", ListOrganizationMembersRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java index a1656a2e..6a7bd5c5 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; import com.auth0.client.mgmt.types.RoleMember; @@ -49,10 +48,10 @@ public void testList() throws Exception { "id", "role_id", ListOrganizationRoleMembersRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java index 5330fd23..5507d18f 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; @@ -50,9 +49,9 @@ public void testList() throws Exception { "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.organizations() .list(ListOrganizationsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .sort(OptionalNullable.of("sort")) + .from("from") + .take(1) + .sort("sort") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java b/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java index 4dad4ed1..171b08c6 100644 --- a/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.prompts.types.BulkUpdateAculRequestContent; import com.auth0.client.mgmt.prompts.types.ListAculsRequestParameters; @@ -55,14 +54,14 @@ public void testList() throws Exception { SyncPagingIterable response = client.prompts() .rendering() .list(ListAculsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .prompt(OptionalNullable.of("prompt")) - .screen(OptionalNullable.of("screen")) - .renderingMode(OptionalNullable.of(AculRenderingModeEnum.ADVANCED)) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .prompt("prompt") + .screen("screen") + .renderingMode(AculRenderingModeEnum.ADVANCED) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java b/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java index e34af91e..2751c90f 100644 --- a/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateRateLimitPolicyRequestContent; import com.auth0.client.mgmt.types.CreateRateLimitPolicyResponseContent; @@ -57,11 +56,11 @@ public void testList() throws Exception { "{\"rate_limit_policies\":[{\"id\":\"id\",\"resource\":\"oauth_authentication_api\",\"consumer\":\"client\",\"consumer_selector\":\"consumer_selector\",\"configuration\":{\"action\":\"allow\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); SyncPagingIterable response = client.rateLimitPolicies() .list(ListRateLimitPoliciesRequestParameters.builder() - .resource(OptionalNullable.of(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API)) - .consumer(OptionalNullable.of(RateLimitPolicyConsumerEnum.CLIENT)) - .consumerSelector(OptionalNullable.of("consumer_selector")) - .take(OptionalNullable.of(1)) - .from(OptionalNullable.of("from")) + .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) + .consumer(RateLimitPolicyConsumerEnum.CLIENT) + .consumerSelector("consumer_selector") + .take(1) + .from("from") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java b/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java index 743ec853..9f7cff2c 100644 --- a/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.GetRefreshTokenResponseContent; import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters; @@ -49,11 +48,11 @@ public void testList() throws Exception { SyncPagingIterable response = client.refreshTokens() .list(GetRefreshTokensRequestParameters.builder() .userId("user_id") - .clientId(OptionalNullable.of("client_id")) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .clientId("client_id") + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java b/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java index a3c51d64..9e142aa8 100644 --- a/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateResourceServerRequestContent; import com.auth0.client.mgmt.types.CreateResourceServerResponseContent; @@ -51,10 +50,10 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"resource_servers\":[{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"allow_online_access\":true,\"allow_online_access_with_ephemeral_sessions\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"alg\":\"RSA-OAEP-256\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true},\"authorization_policy\":{\"policy_id\":\"policy_id\"},\"client_id\":\"client_id\"}]}")); SyncPagingIterable response = client.resourceServers() .list(ListResourceServerRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .includeFields(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .includeFields(true) .identifiers(Arrays.asList("identifiers")) .build()); RecordedRequest request = server.takeRequest(); @@ -154,7 +153,7 @@ public void testGet() throws Exception { .get( "id", GetResourceServerRequestParameters.builder() - .includeFields(OptionalNullable.of(true)) + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java index 8d4fd06a..7c855896 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.roles.types.AssignRoleGroupsRequestContent; import com.auth0.client.mgmt.roles.types.DeleteRoleGroupsRequestContent; @@ -49,10 +48,7 @@ public void testGet() throws Exception { .groups() .get( "id", - ListRoleGroupsParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .build()); + ListRoleGroupsParameters.builder().from("from").take(1).build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("GET", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java index af57125a..02921701 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.roles.types.AddRolePermissionsRequestContent; import com.auth0.client.mgmt.roles.types.DeleteRolePermissionsRequestContent; @@ -51,9 +50,9 @@ public void testList() throws Exception { .list( "id", ListRolePermissionsRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .perPage(1) + .page(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java index 710571a6..4f628283 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.roles.types.AssignRoleUsersRequestContent; import com.auth0.client.mgmt.roles.types.ListRoleUsersRequestParameters; @@ -49,8 +48,8 @@ public void testList() throws Exception { .list( "id", ListRoleUsersRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RolesWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesWireTest.java index 461ba389..aadfadda 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateRoleRequestContent; import com.auth0.client.mgmt.types.CreateRoleResponseContent; @@ -49,10 +48,10 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"roles\":[{\"id\":\"id\",\"name\":\"name\",\"description\":\"description\"}]}")); SyncPagingIterable response = client.roles() .list(ListRolesRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .nameFilter(OptionalNullable.of("name_filter")) + .perPage(1) + .page(1) + .includeTotals(true) + .nameFilter("name_filter") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RulesWireTest.java b/src/test/java/com/auth0/client/mgmt/RulesWireTest.java index f8b04fc5..f886cf00 100644 --- a/src/test/java/com/auth0/client/mgmt/RulesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RulesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateRuleRequestContent; import com.auth0.client.mgmt.types.CreateRuleResponseContent; @@ -50,12 +49,12 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"rules\":[{\"name\":\"name\",\"id\":\"id\",\"enabled\":true,\"script\":\"script\",\"order\":1.1,\"stage\":\"stage\"}]}")); SyncPagingIterable response = client.rules() .list(ListRulesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .enabled(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -166,8 +165,8 @@ public void testGet() throws Exception { .get( "id", GetRuleRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java index 2d195406..1fcacba3 100644 --- a/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateSelfServiceProfileRequestContent; import com.auth0.client.mgmt.types.CreateSelfServiceProfileResponseContent; @@ -49,9 +48,9 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"self_service_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"description\":\"description\",\"user_attributes\":[{\"name\":\"name\",\"description\":\"description\",\"is_optional\":true}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"allowed_strategies\":[\"oidc\"],\"user_attribute_profile_id\":\"user_attribute_profile_id\"}]}")); SyncPagingIterable response = client.selfServiceProfiles() .list(ListSelfServiceProfilesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/StatsWireTest.java b/src/test/java/com/auth0/client/mgmt/StatsWireTest.java index 0b912d2e..605afe74 100644 --- a/src/test/java/com/auth0/client/mgmt/StatsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/StatsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.DailyStats; import com.auth0.client.mgmt.types.GetDailyStatsRequestParameters; import com.fasterxml.jackson.databind.JsonNode; @@ -87,8 +86,8 @@ public void testGetDaily() throws Exception { "[{\"date\":\"date\",\"logins\":1,\"signups\":1,\"leaked_passwords\":1,\"updated_at\":\"updated_at\",\"created_at\":\"created_at\"}]")); List response = client.stats() .getDaily(GetDailyStatsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .to(OptionalNullable.of("to")) + .from("from") + .to("to") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java index 390f6ea5..ae99ffd2 100644 --- a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.tenants.types.GetTenantSettingsRequestParameters; import com.auth0.client.mgmt.tenants.types.UpdateTenantSettingsRequestContent; import com.auth0.client.mgmt.types.GetTenantSettingsResponseContent; @@ -44,8 +43,8 @@ public void testGet() throws Exception { GetTenantSettingsResponseContent response = client.tenants() .settings() .get(GetTenantSettingsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java index ab630d02..22d45007 100644 --- a/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateTokenExchangeProfileRequestContent; import com.auth0.client.mgmt.types.CreateTokenExchangeProfileResponseContent; @@ -49,8 +48,8 @@ public void testList() throws Exception { "{\"next\":\"next\",\"token_exchange_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"subject_token_type\":\"subject_token_type\",\"action_id\":\"action_id\",\"type\":\"custom_authentication\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); SyncPagingIterable response = client.tokenExchangeProfiles() .list(TokenExchangeProfilesListRequest.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java index 6f98db41..961f7d2e 100644 --- a/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateUserAttributeProfileRequestContent; import com.auth0.client.mgmt.types.CreateUserAttributeProfileResponseContent; @@ -53,8 +52,8 @@ public void testList() throws Exception { "{\"next\":\"next\",\"user_attribute_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"user_attributes\":{\"key\":{\"description\":\"description\",\"label\":\"label\",\"profile_required\":true,\"auth0_mapping\":\"auth0_mapping\"}}}]}")); SyncPagingIterable response = client.userAttributeProfiles() .list(ListUserAttributeProfileRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java b/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java index 0fad1f5e..29ed194d 100644 --- a/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.DeleteUserBlocksByIdentifierRequestParameters; import com.auth0.client.mgmt.types.ListUserBlocksByIdentifierRequestParameters; import com.auth0.client.mgmt.types.ListUserBlocksByIdentifierResponseContent; @@ -47,7 +46,7 @@ public void testListByIdentifier() throws Exception { ListUserBlocksByIdentifierResponseContent response = client.userBlocks() .listByIdentifier(ListUserBlocksByIdentifierRequestParameters.builder() .identifier("identifier") - .considerBruteForceEnablement(OptionalNullable.of(true)) + .considerBruteForceEnablement(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -120,7 +119,7 @@ public void testList() throws Exception { .list( "id", ListUserBlocksRequestParameters.builder() - .considerBruteForceEnablement(OptionalNullable.of(true)) + .considerBruteForceEnablement(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java index 6a8bb629..4951facc 100644 --- a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.DeleteUserGrantByUserIdRequestParameters; import com.auth0.client.mgmt.types.ListUserGrantsRequestParameters; @@ -45,12 +44,12 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"grants\":[{\"id\":\"id\",\"clientID\":\"clientID\",\"user_id\":\"user_id\",\"audience\":\"audience\",\"scope\":[\"scope\"],\"organization_id\":\"organization_id\"}]}")); SyncPagingIterable response = client.userGrants() .list(ListUserGrantsRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .userId(OptionalNullable.of("user_id")) - .clientId(OptionalNullable.of("client_id")) - .audience(OptionalNullable.of("audience")) + .perPage(1) + .page(1) + .includeTotals(true) + .userId("user_id") + .clientId("client_id") + .audience("audience") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java index 4e644b1a..00778ed3 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.AuthenticationTypeEnum; import com.auth0.client.mgmt.types.CreateUserAuthenticationMethodResponseContent; @@ -58,9 +57,9 @@ public void testList() throws Exception { .list( "id", ListUserAuthenticationMethodsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java index 3dc8b55f..a74338fc 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectedAccount; import com.auth0.client.mgmt.users.types.GetUserConnectedAccountsRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "id", GetUserConnectedAccountsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java index 54c0c7dd..7fe639a9 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserEffectivePermissionRoleSourceResponseContent; import com.auth0.client.mgmt.users.effectivepermissions.sources.types.ListUserEffectivePermissionRoleSourceRequestParameters; @@ -51,8 +50,8 @@ public void testList() throws Exception { ListUserEffectivePermissionRoleSourceRequestParameters.builder() .resourceServerIdentifier("resource_server_identifier") .permissionName("permission_name") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java index e1584faa..d0829a20 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserEffectivePermissionResponseContent; import com.auth0.client.mgmt.users.types.ListUserEffectivePermissionsRequestParameters; @@ -48,8 +47,8 @@ public void testList() throws Exception { "id", ListUserEffectivePermissionsRequestParameters.builder() .resourceServerIdentifier("resource_server_identifier") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java index 9f6471f6..7f9fbeab 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Group; import com.auth0.client.mgmt.users.effectiveroles.sources.types.ListUserRoleSourceGroupsRequestParameters; @@ -50,8 +49,8 @@ public void testList() throws Exception { "id", ListUserRoleSourceGroupsRequestParameters.builder() .roleId("role_id") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java index 20eeae31..df417b61 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserEffectiveRole; import com.auth0.client.mgmt.users.types.ListUserEffectiveRolesRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "id", ListUserEffectiveRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java deleted file mode 100644 index fcf09446..00000000 --- a/src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.auth0.client.mgmt; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.util.List; -import okhttp3.mockwebserver.MockResponse; -import okhttp3.mockwebserver.MockWebServer; -import okhttp3.mockwebserver.RecordedRequest; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; - -public class UsersFederatedConnectionsTokensetsWireTest { - private MockWebServer server; - private ManagementApi client; - private ObjectMapper objectMapper = ObjectMappers.JSON_MAPPER; - - @BeforeEach - public void setup() throws Exception { - server = new MockWebServer(); - server.start(); - client = ManagementApi.builder() - .url(server.url("/").toString()) - .token("test-token") - .build(); - } - - @AfterEach - public void teardown() throws Exception { - server.shutdown(); - } - - @Test - public void testList() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "[{\"id\":\"id\",\"connection\":\"connection\",\"scope\":\"scope\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"issued_at\":\"2024-01-15T09:30:00Z\",\"last_used_at\":\"2024-01-15T09:30:00Z\"}]")); - List response = - client.users().federatedConnectionsTokensets().list("id"); - RecordedRequest request = server.takeRequest(); - Assertions.assertNotNull(request); - Assertions.assertEquals("GET", request.getMethod()); - - // Validate response body - Assertions.assertNotNull(response, "Response should not be null"); - String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "[\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"connection\": \"connection\",\n" - + " \"scope\": \"scope\",\n" - + " \"expires_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"issued_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"last_used_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + "]"; - JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); - JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); - Assertions.assertTrue( - jsonEquals(expectedResponseNode, actualResponseNode), - "Response body structure does not match expected"); - if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { - String discriminator = null; - if (actualResponseNode.has("type")) - discriminator = actualResponseNode.get("type").asText(); - else if (actualResponseNode.has("_type")) - discriminator = actualResponseNode.get("_type").asText(); - else if (actualResponseNode.has("kind")) - discriminator = actualResponseNode.get("kind").asText(); - Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); - Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); - } - - if (!actualResponseNode.isNull()) { - Assertions.assertTrue( - actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), - "response should be a valid JSON value"); - } - - if (actualResponseNode.isArray()) { - Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); - } - if (actualResponseNode.isObject()) { - Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); - } - } - - @Test - public void testDelete() throws Exception { - server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); - client.users().federatedConnectionsTokensets().delete("id", "tokenset_id"); - RecordedRequest request = server.takeRequest(); - Assertions.assertNotNull(request); - Assertions.assertEquals("DELETE", request.getMethod()); - } - - /** - * Compares two JsonNodes with numeric equivalence and null safety. - * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. - * Allows 'actual' to have extra fields (e.g., default values added during serialization). - */ - private boolean jsonEquals(JsonNode expected, JsonNode actual) { - if (expected == null && actual == null) return true; - if (expected == null || actual == null) return false; - if (expected.equals(actual)) return true; - if (expected.isNumber() && actual.isNumber()) - return Math.abs(expected.doubleValue() - actual.doubleValue()) < 1e-10; - if (expected.isObject() && actual.isObject()) { - java.util.Iterator> iter = expected.fields(); - while (iter.hasNext()) { - java.util.Map.Entry entry = iter.next(); - JsonNode actualValue = actual.get(entry.getKey()); - if (actualValue == null) { - if (!entry.getValue().isNull()) return false; - } else if (!jsonEquals(entry.getValue(), actualValue)) return false; - } - return true; - } - if (expected.isArray() && actual.isArray()) { - if (expected.size() != actual.size()) return false; - for (int i = 0; i < expected.size(); i++) { - if (!jsonEquals(expected.get(i), actual.get(i))) return false; - } - return true; - } - return false; - } -} diff --git a/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java index ad51418f..13198b1f 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserGroupsResponseSchema; import com.auth0.client.mgmt.users.types.GetUserGroupsRequestParameters; @@ -47,10 +46,10 @@ public void testGet() throws Exception { .get( "id", GetUserGroupsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java index 3316ff72..bb7b8b8b 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Log; import com.auth0.client.mgmt.users.types.ListUserLogsRequestParameters; @@ -47,10 +46,10 @@ public void testList() throws Exception { .list( "id", ListUserLogsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .sort(OptionalNullable.of("sort")) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .sort("sort") + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java index be1a82cf..8c133e1d 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Organization; import com.auth0.client.mgmt.users.types.ListUserOrganizationsRequestParameters; @@ -47,9 +46,9 @@ public void testList() throws Exception { .list( "id", ListUserOrganizationsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java index 24ba7238..2997a796 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.PermissionRequestPayload; import com.auth0.client.mgmt.types.UserPermissionSchema; @@ -51,9 +50,9 @@ public void testList() throws Exception { .list( "id", ListUserPermissionsRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .perPage(1) + .page(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java index 13f3008b..79ce31f9 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.RefreshTokenResponseContent; import com.auth0.client.mgmt.users.types.ListRefreshTokensRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "user_id", ListRefreshTokensRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java index 7c9f540e..2470c1bc 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Role; import com.auth0.client.mgmt.users.types.AssignUserRolesRequestContent; @@ -50,9 +49,9 @@ public void testList() throws Exception { .list( "id", ListUserRolesRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .perPage(1) + .page(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java index 213c34ba..97409e06 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.SessionResponseContent; import com.auth0.client.mgmt.users.types.ListUserSessionsRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "user_id", ListUserSessionsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersWireTest.java index 3f3a5e2f..f575aefa 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateUserRequestContent; import com.auth0.client.mgmt.types.CreateUserResponseContent; @@ -55,16 +54,16 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"length\":1.1,\"total\":1.1,\"users\":[{\"user_id\":\"user_id\",\"email\":\"email\",\"email_verified\":true,\"username\":\"username\",\"phone_number\":\"phone_number\",\"phone_verified\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"identities\":[{}],\"app_metadata\":{\"key\":\"value\"},\"user_metadata\":{\"key\":\"value\"},\"picture\":\"picture\",\"name\":\"name\",\"nickname\":\"nickname\",\"multifactor\":[\"multifactor\"],\"multifactor_last_modified\":\"2024-01-15T09:30:00Z\",\"last_ip\":\"last_ip\",\"last_login\":\"2024-01-15T09:30:00Z\",\"last_password_reset\":\"2024-01-15T09:30:00Z\",\"logins_count\":1,\"blocked\":true,\"given_name\":\"given_name\",\"family_name\":\"family_name\"}]}")); SyncPagingIterable response = client.users() .list(ListUsersRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .sort(OptionalNullable.of("sort")) - .connection(OptionalNullable.of("connection")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .q(OptionalNullable.of("q")) - .searchEngine(OptionalNullable.of(SearchEngineVersionsEnum.V1)) - .primaryOrder(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .sort("sort") + .connection("connection") + .fields("fields") + .includeFields(true) + .q("q") + .searchEngine(SearchEngineVersionsEnum.V1) + .primaryOrder(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -206,8 +205,8 @@ public void testListUsersByEmail() throws Exception { List response = client.users() .listUsersByEmail(ListUsersByEmailRequestParameters.builder() .email("email") - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -294,8 +293,8 @@ public void testGet() throws Exception { .get( "id", GetUserRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java b/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java index ff1f81ab..2db0c27c 100644 --- a/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateVerifiableCredentialTemplateResponseContent; import com.auth0.client.mgmt.types.GetVerifiableCredentialTemplateResponseContent; @@ -54,8 +53,8 @@ public void testList() throws Exception { .verification() .templates() .list(ListVerifiableCredentialTemplatesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json index d8b0169a..3dc352a5 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -50,6 +53,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json index d8b0169a..3dc352a5 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -50,6 +53,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json index d8b0169a..3dc352a5 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -50,6 +53,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], From ec28244b9fc3bce518088b96a5402cbb8ad1dcc6 Mon Sep 17 00:00:00 2001 From: Tanya Sinha Date: Wed, 15 Jul 2026 14:03:02 +0530 Subject: [PATCH 04/13] feat: add MIGRATION_GUIDE (#900) --- .fernignore | 2 +- CHANGELOG.md | 4 +- README.md | 3 +- MIGRATION_GUIDE.md => v3_MIGRATION_GUIDE.md | 0 v4_MIGRATION_GUIDE.md | 165 ++++++++++++++++++++ 5 files changed, 170 insertions(+), 4 deletions(-) rename MIGRATION_GUIDE.md => v3_MIGRATION_GUIDE.md (100%) create mode 100644 v4_MIGRATION_GUIDE.md diff --git a/.fernignore b/.fernignore index 819c62a7..da1783c7 100644 --- a/.fernignore +++ b/.fernignore @@ -6,7 +6,7 @@ README.md # Examples and Migration Guide from auth0-real EXAMPLES.md v3_MIGRATION_GUIDE.md -MIGRATION_GUIDE.md +v4_MIGRATION_GUIDE.md LICENSE CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c058de9..b549e4f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -143,7 +143,7 @@ ManagementApi client = ManagementApi ``` **Note**: The Authentication API remains supported, with deprecated APIs removed. -A complete migration guide is available at [MIGRATION_GUIDE](MIGRATION_GUIDE.md). +A complete migration guide is available at [MIGRATION_GUIDE](v3_MIGRATION_GUIDE). ## [3.0.0-beta.0](https://github.com/auth0/auth0-java/tree/3.0.0-beta.0) (2025-12-18) [Full Changelog](https://github.com/auth0/auth0-java/compare/2.27.0...3.0.0-beta.0) @@ -157,7 +157,7 @@ A complete migration guide is available at [MIGRATION_GUIDE](MIGRATION_GUIDE.md) - Nullability annotations to POJO classes - Fully compatible **Authentication API client** — no breaking changes -- [Migration guide](MIGRATION_GUIDE) available for upgrading from v2.x +- [Migration guide](v3_MIGRATION_GUIDE) available for upgrading from v2.x ## [2.27.0](https://github.com/auth0/auth0-java/tree/2.27.0) (2025-12-18) diff --git a/README.md b/README.md index 8f24453e..5b217127 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ ## Documentation - [Reference](./reference.md) - code samples for Management APIs. - [Examples](./EXAMPLES.md) - code samples for common auth0-java scenarios. -- [Migration Guide](./MIGRATION_GUIDE.md) - guidance for updating your application to use version 3 of auth0-java. +- [v4 Migration Guide](./v4_MIGRATION_GUIDE.md) - guidance for updating your application from version 3 to version 4 of auth0-java. +- [v3 Migration Guide](./v3_MIGRATION_GUIDE.md) - guidance for updating your application from version 2 to version 3 of auth0-java. - [Docs site](https://www.auth0.com/docs) - explore our docs site and learn more about Auth0. ## Getting Started diff --git a/MIGRATION_GUIDE.md b/v3_MIGRATION_GUIDE.md similarity index 100% rename from MIGRATION_GUIDE.md rename to v3_MIGRATION_GUIDE.md diff --git a/v4_MIGRATION_GUIDE.md b/v4_MIGRATION_GUIDE.md new file mode 100644 index 00000000..084b0a78 --- /dev/null +++ b/v4_MIGRATION_GUIDE.md @@ -0,0 +1,165 @@ +# Migrating from v3 to v4 + +`v4` is a compatible evolution of `v3`. The Authentication API is unchanged, and the Management API keeps the same client structure, builder patterns, and pagination introduced in `v3`. The breaking changes are narrow: a few generated Management API types where field types were tightened or split for type-safety, and the removal of the Federated Connections Tokensets API. + +- [Overview](#overview) +- [Breaking changes](#breaking-changes) + - [1. Role pagination fields are now non-optional primitives](#1-role-pagination-fields-are-now-non-optional-primitives) + - [2. Connection attribute `identifier` is split by attribute type](#2-connection-attribute-identifier-is-split-by-attribute-type) + - [3. Phone provider protection backoff strategy enum value changed](#3-phone-provider-protection-backoff-strategy-enum-value-changed) + - [4. Federated Connections Tokensets API removed](#4-federated-connections-tokensets-api-removed) +- [Other changes](#other-changes) + - [Per-request retry configuration](#per-request-retry-configuration) + - [Query parameter serialization](#query-parameter-serialization) +- [Migration steps](#migration-steps) + +## Overview + +Most `v3` code compiles and runs unchanged on `v4`. You only need to act if your code touches one of the following: + +| Area | What changed | Impact | +|------|--------------|--------| +| `ListRolesOffsetPaginatedResponseContent` | `start` / `limit` / `total` changed from `Optional` to primitive `double`, and are now required builder stages | Callers reading these getters or constructing the type | +| Connection attributes | The shared `ConnectionAttributeIdentifier` type is removed and replaced by dedicated `EmailAttributeIdentifier`, `PhoneAttributeIdentifier`, and `UsernameAttributeIdentifier` types | Callers reading/setting `identifier` on `EmailAttribute`, `PhoneAttribute`, `UsernameAttribute` | +| `PhoneProviderProtectionBackoffStrategyEnum` | `NONE` (`"none"`) removed, replaced by `DEFAULT` (`"default"`) | Callers referencing the `NONE` constant or visitor | +| Federated Connections Tokensets | `client.users().federatedConnectionsTokensets()` and its types removed | Callers of that API | + +Everything else in `v4` is additive or internal. + +## Breaking changes + +### 1. Role pagination fields are now non-optional primitives + +In `ListRolesOffsetPaginatedResponseContent`, the `start`, `limit`, and `total` fields change from `Optional` to primitive `double`, and the builder now requires them as mandatory, staged arguments. + +**v3:** +```java +private final Optional start; +public Optional getStart() { ... } +``` + +**v4:** +```java +private final double start; +public double getStart() { ... } +``` + +If you read these getters, drop the `Optional` handling: + +```java +// v3 +double start = response.getStart().orElse(0d); + +// v4 +double start = response.getStart(); +``` + +If you construct the type, the builder is now staged and requires `start`, `limit`, and `total` in order: + +```java +// v4 +ListRolesOffsetPaginatedResponseContent content = ListRolesOffsetPaginatedResponseContent.builder() + .start(0) + .limit(50) + .total(200) + .roles(roles) + .build(); +``` + +### 2. Connection attribute `identifier` is split by attribute type + +The shared `ConnectionAttributeIdentifier` type is removed and replaced with dedicated types per attribute. The `identifier` field on `EmailAttribute`, `PhoneAttribute`, and `UsernameAttribute` now uses the matching type, so their `getIdentifier()` and builder `identifier(...)` signatures change. + +| Attribute | v3 identifier type | v4 identifier type | +|-----------|--------------------|--------------------| +| `EmailAttribute` | `ConnectionAttributeIdentifier` | `EmailAttributeIdentifier` | +| `PhoneAttribute` | `ConnectionAttributeIdentifier` | `PhoneAttributeIdentifier` | +| `UsernameAttribute` | `ConnectionAttributeIdentifier` | `UsernameAttributeIdentifier` | + +**v3:** +```java +public Optional getIdentifier() { ... } +``` + +**v4 (`EmailAttribute`):** +```java +public Optional getIdentifier() { ... } +``` + +Update your imports and any variables holding the identifier. The new types expose `active` (`Optional`); `EmailAttributeIdentifier` and `PhoneAttributeIdentifier` additionally expose a `defaultMethod` (`DefaultMethodEmailIdentifierEnum` / `DefaultMethodPhoneNumberIdentifierEnum`). + +```java +// v4 +EmailAttribute email = EmailAttribute.builder() + .identifier(EmailAttributeIdentifier.builder() + .active(true) + .build()) + .build(); +``` + +### 3. Phone provider protection backoff strategy enum value changed + +`PhoneProviderProtectionBackoffStrategyEnum.NONE` (`"none"`, `visitNone()`) is removed and replaced by `PhoneProviderProtectionBackoffStrategyEnum.DEFAULT` (`"default"`, `visitDefault()`). + +**v3:** +```java +PhoneProviderProtectionBackoffStrategyEnum strategy = PhoneProviderProtectionBackoffStrategyEnum.NONE; +``` + +**v4:** +```java +PhoneProviderProtectionBackoffStrategyEnum strategy = PhoneProviderProtectionBackoffStrategyEnum.DEFAULT; +``` + +If you implement the visitor interface, rename `visitNone()` to `visitDefault()`. + +### 4. Federated Connections Tokensets API removed + +The Federated Connections Tokensets API is removed. The following are no longer available: + +- Client accessor: `client.users().federatedConnectionsTokensets()` (and its async/raw variants) +- Types: `FederatedConnectionTokenSet`, `ConnectionFederatedConnectionsAccessTokens` + +**v3:** +```java +List tokensets = + client.users().federatedConnectionsTokensets().list("user_id"); + +client.users().federatedConnectionsTokensets().delete("user_id", "tokenset_id"); +``` + +**v4:** + +No replacement is generated in the SDK. Remove these calls; if you still need this functionality, call the corresponding Management API endpoint directly. + +## Other changes + +These are backward-compatible but worth noting. + +### Per-request retry configuration + +Requests now honor a per-request `maxRetries` value via `RequestOptions`, alongside the existing `timeout`: + +```java +GetUserResponseContent user = client.users().get( + "user_id", + GetUserRequestParameters.builder().build(), + RequestOptions.builder() + .timeout(10) + .maxRetries(2) + .build() +); +``` + +### Query parameter serialization + +List/query parameter types (e.g. `ListUsersRequestParameters`, `ListClientsRequestParameters`, `ListLogsRequestParameters`, `ListConnectionsQueryParameters`) now serialize their optional/nullable query parameters through a nullable-nonempty filter instead of being marked `@JsonIgnore`. Builder usage is unchanged; this only affects how parameters are emitted on the wire. + +## Migration steps + +1. Update the dependency to the `v4` release. +2. Replace any `ConnectionAttributeIdentifier` imports/usages with the matching `EmailAttributeIdentifier`, `PhoneAttributeIdentifier`, or `UsernameAttributeIdentifier`. +3. Remove `Optional` handling around `ListRolesOffsetPaginatedResponseContent#getStart/getLimit/getTotal`, and update any builder usage to the staged `start` → `limit` → `total` form. +4. Replace `PhoneProviderProtectionBackoffStrategyEnum.NONE` with `DEFAULT` (and `visitNone()` with `visitDefault()` in any visitor implementations). +5. Remove any usage of `client.users().federatedConnectionsTokensets()` and the `FederatedConnectionTokenSet` / `ConnectionFederatedConnectionsAccessTokens` types. +6. Run `mvn verify` (or your build) and fix any remaining compilation errors surfaced by the above. From 2e51e0583f6f23fea8bec06a26c050c7f3695375 Mon Sep 17 00:00:00 2001 From: Tanya Sinha Date: Wed, 15 Jul 2026 14:20:28 +0530 Subject: [PATCH 05/13] Release 4.0.0 (#902) --- .version | 2 +- CHANGELOG.md | 10 ++++++++++ README.md | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.version b/.version index 30291cba..fcdb2e10 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.10.0 +4.0.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index b549e4f9..e48ee533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## [4.0.0](https://github.com/auth0/auth0-java/tree/4.0.0) (2026-07-15) +[Full Changelog](https://github.com/auth0/auth0-java/compare/3.10.0...4.0.0) + +**Added** +- feat: add MIGRATION_GUIDE [\#900](https://github.com/auth0/auth0-java/pull/900) ([tanya732](https://github.com/tanya732)) +- feat: remove Federated Connections Tokensets, add per-request retries [\#899](https://github.com/auth0/auth0-java/pull/899) ([fern-api[bot]](https://github.com/apps/fern-api)) +- feat: add Organization Role Members, thirdPartyClientAccess, optional fields and contains breaking changes [\#893](https://github.com/auth0/auth0-java/pull/893) ([fern-api[bot]](https://github.com/apps/fern-api)) +- chore: update jackson version [\#898](https://github.com/auth0/auth0-java/pull/898) ([tanya732](https://github.com/tanya732)) +- feat: Add Token Vault support to the Authentication API [\#894](https://github.com/auth0/auth0-java/pull/894) ([kailash-b](https://github.com/kailash-b)) + ## [3.10.0](https://github.com/auth0/auth0-java/tree/3.10.0) (2026-07-03) [Full Changelog](https://github.com/auth0/auth0-java/compare/3.9.0...3.10.0) diff --git a/README.md b/README.md index 5b217127..faa9c5f6 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ Add the dependency via Maven: com.auth0 auth0 - 3.10.0 + 4.0.0 ``` or Gradle: ```gradle -implementation 'com.auth0:auth0:3.10.0' +implementation 'com.auth0:auth0:4.0.0' ``` ### Configure the SDK From 4fff6a95126cd16a8290a59b49badcd43667fad1 Mon Sep 17 00:00:00 2001 From: Kailash B Date: Wed, 22 Jul 2026 15:24:41 +0530 Subject: [PATCH 06/13] =?UTF-8?q?feat:=20add=20access=20token=20exchange?= =?UTF-8?q?=20and=20generic=20subject=20token=20type=20to=20Tok=E2=80=A6?= =?UTF-8?q?=20(#904)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EXAMPLES.md | 52 +++++ .../java/com/auth0/client/auth/AuthAPI.java | 115 +++++++++- .../com/auth0/client/auth/AuthAPITest.java | 203 +++++++++++++++++- 3 files changed, 355 insertions(+), 15 deletions(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index 67608c55..c5731b7a 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -5,6 +5,7 @@ - [Management API usage](#management-api-usage) - [Verifying an ID token](#verifying-an-id-token) - [Organizations](#organizations) +- [Token Vault](#token-vault) - [Logging](#logging) - [Asynchronous operations](#asynchronous-operations) @@ -325,6 +326,57 @@ String url = auth.authorizeUrl("https://me.auth0.com/callback") .build(); ``` +## Token Vault + +[Token Vault](https://auth0.com/docs/secure/tokens/token-vault) lets you exchange an Auth0 token for a federated identity provider's access token, so your application can call the provider's APIs on the user's behalf. The connection must have Token Vault enabled, and because this exchange requires a private client, the `AuthAPI` instance must be configured with a client secret or client assertion. + +### Exchange a refresh token + +Use `getTokenForConnectionWithRefreshToken()` to exchange an Auth0 refresh token for the federated provider's access token: + +```java +AuthAPI auth = AuthAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_CLIENT_ID}", "{YOUR_CLIENT_SECRET}").build(); +TokenHolder result = auth.getTokenForConnectionWithRefreshToken("google-oauth2", "{REFRESH_TOKEN}", null) + .execute() + .getBody(); +String federatedAccessToken = result.getAccessToken(); +``` + +### Exchange an access token + +Use `getTokenForConnectionWithAccessToken()` to exchange an Auth0 access token instead: + +```java +TokenHolder result = auth.getTokenForConnectionWithAccessToken("google-oauth2", "{ACCESS_TOKEN}", null) + .execute() + .getBody(); +String federatedAccessToken = result.getAccessToken(); +``` + +### Specifying a login hint + +When a user has multiple accounts on the same connection, pass their ID within the identity provider as the `loginHint` (the final argument). Pass `null` to omit it: + +```java +TokenHolder result = auth.getTokenForConnectionWithRefreshToken("google-oauth2", "{REFRESH_TOKEN}", "{GOOGLE_USER_ID}") + .execute() + .getBody(); +``` + +### Exchanging other token types + +For full control over the subject token type, use the generic `getTokenForConnection()` and supply the `subject_token_type` URN yourself: + +```java +TokenHolder result = auth.getTokenForConnection( + "google-oauth2", + "{SUBJECT_TOKEN}", + "urn:ietf:params:oauth:token-type:refresh_token", + "{GOOGLE_USER_ID}") + .execute() + .getBody(); +``` + ## Logging The SDK is silent by default. You can enable logging to see HTTP requests and responses, which is useful for debugging. diff --git a/src/main/java/com/auth0/client/auth/AuthAPI.java b/src/main/java/com/auth0/client/auth/AuthAPI.java index 342e70ca..c36975df 100644 --- a/src/main/java/com/auth0/client/auth/AuthAPI.java +++ b/src/main/java/com/auth0/client/auth/AuthAPI.java @@ -843,15 +843,20 @@ public TokenRequest exchangeToken(String subjectToken, String subjectTokenType) } /** - * Creates a request to exchange an Auth0 refresh token for a federated identity provider's access token + * Creates a request to exchange a subject token for a federated identity provider's access token * using the Token Vault grant * {@code urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token}. + * This is the generic entry point: the caller supplies both the {@code subjectToken} and its + * {@code subjectTokenType}, so no assumption is made about which kind of token is being exchanged. + * For the common cases, prefer {@link #getTokenForConnectionWithRefreshToken(String, String, String)} + * or {@link #getTokenForConnectionWithAccessToken(String, String, String)}. * The connection must have the token vault enabled, and client authentication * (client secret or client assertion) is required as this must be a private client. *
      * {@code
      * try {
-     *      TokenHolder result = authAPI.getTokenForConnection("google-oauth2", refreshToken, "google-user-id")
+     *      TokenHolder result = authAPI.getTokenForConnection(
+     *              "google-oauth2", subjectToken, "urn:ietf:params:oauth:token-type:refresh_token", "google-user-id")
      *          .execute()
      *          .getBody();
      *      String federatedAccessToken = result.getAccessToken();
@@ -864,22 +869,27 @@ public TokenRequest exchangeToken(String subjectToken, String subjectTokenType)
      * @see Token Vault documentation
      * @param connection the name of the federated connection to obtain an access token for
      *                   (for example {@code google-oauth2}). Must not be null.
-     * @param refreshToken a valid Auth0 refresh token to exchange. Must not be null.
+     * @param subjectToken the Auth0 token to exchange. Must not be null.
+     * @param subjectTokenType the identifier for the type of {@code subjectToken}, for example
+     *                         {@code urn:ietf:params:oauth:token-type:refresh_token} or
+     *                         {@code urn:ietf:params:oauth:token-type:access_token}. Must not be null.
      * @param loginHint the user's ID within the identity provider specified by the connection
      *                  (for example, the Google user ID when the connection is {@code google-oauth2}).
      *                  May be null, in which case no {@code login_hint} is sent.
      * @return a Request to configure and execute.
      */
-    public TokenRequest getTokenForConnection(String connection, String refreshToken, String loginHint) {
+    public TokenRequest getTokenForConnection(
+            String connection, String subjectToken, String subjectTokenType, String loginHint) {
         Asserts.assertNotNull(connection, "connection");
-        Asserts.assertNotNull(refreshToken, "refresh token");
+        Asserts.assertNotNull(subjectToken, "subject token");
+        Asserts.assertNotNull(subjectTokenType, "subject token type");
 
         TokenRequest request = new TokenRequest(client, getTokenUrl());
         request.addParameter(KEY_CLIENT_ID, clientId);
         request.addParameter(
                 KEY_GRANT_TYPE, "urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token");
-        request.addParameter(KEY_SUBJECT_TOKEN, refreshToken);
-        request.addParameter(KEY_SUBJECT_TOKEN_TYPE, "urn:ietf:params:oauth:token-type:refresh_token");
+        request.addParameter(KEY_SUBJECT_TOKEN, subjectToken);
+        request.addParameter(KEY_SUBJECT_TOKEN_TYPE, subjectTokenType);
         request.addParameter(
                 KEY_REQUESTED_TOKEN_TYPE, "http://auth0.com/oauth/token-type/federated-connection-access-token");
         request.addParameter(KEY_CONNECTION, connection);
@@ -890,6 +900,97 @@ public TokenRequest getTokenForConnection(String connection, String refreshToken
         return request;
     }
 
+    /**
+     * Convenience method to exchange an Auth0 refresh token for a federated identity provider's access token
+     * using the Token Vault grant. Delegates to
+     * {@link #getTokenForConnection(String, String, String, String)} with the subject token type
+     * {@code urn:ietf:params:oauth:token-type:refresh_token}.
+     * The connection must have the token vault enabled, and client authentication
+     * (client secret or client assertion) is required as this must be a private client.
+     * 
+     * {@code
+     * try {
+     *      TokenHolder result = authAPI.getTokenForConnectionWithRefreshToken("google-oauth2", refreshToken, "google-user-id")
+     *          .execute()
+     *          .getBody();
+     *      String federatedAccessToken = result.getAccessToken();
+     * } catch (Auth0Exception e) {
+     *      //Something happened
+     * }
+     * }
+     * 
+ * + * @see Token Vault documentation + * @param connection the name of the federated connection to obtain an access token for + * (for example {@code google-oauth2}). Must not be null. + * @param refreshToken a valid Auth0 refresh token to exchange. Must not be null. + * @param loginHint the user's ID within the identity provider specified by the connection + * (for example, the Google user ID when the connection is {@code google-oauth2}). + * May be null, in which case no {@code login_hint} is sent. + * @return a Request to configure and execute. + */ + public TokenRequest getTokenForConnectionWithRefreshToken( + String connection, String refreshToken, String loginHint) { + Asserts.assertNotNull(refreshToken, "refresh token"); + return getTokenForConnection( + connection, refreshToken, "urn:ietf:params:oauth:token-type:refresh_token", loginHint); + } + + /** + * Convenience method to exchange an Auth0 access token for a federated identity provider's access token + * using the Token Vault grant. Delegates to + * {@link #getTokenForConnection(String, String, String, String)} with the subject token type + * {@code urn:ietf:params:oauth:token-type:access_token}. + * The connection must have the token vault enabled, and client authentication + * (client secret or client assertion) is required as this must be a private client. + *
+     * {@code
+     * try {
+     *      TokenHolder result = authAPI.getTokenForConnectionWithAccessToken("google-oauth2", accessToken, "google-user-id")
+     *          .execute()
+     *          .getBody();
+     *      String federatedAccessToken = result.getAccessToken();
+     * } catch (Auth0Exception e) {
+     *      //Something happened
+     * }
+     * }
+     * 
+ * + * @see Token Vault documentation + * @param connection the name of the federated connection to obtain an access token for + * (for example {@code google-oauth2}). Must not be null. + * @param accessToken a valid Auth0 access token to exchange. Must not be null. + * @param loginHint the user's ID within the identity provider specified by the connection + * (for example, the Google user ID when the connection is {@code google-oauth2}). + * May be null, in which case no {@code login_hint} is sent. + * @return a Request to configure and execute. + */ + public TokenRequest getTokenForConnectionWithAccessToken(String connection, String accessToken, String loginHint) { + Asserts.assertNotNull(accessToken, "access token"); + return getTokenForConnection( + connection, accessToken, "urn:ietf:params:oauth:token-type:access_token", loginHint); + } + + /** + * Creates a request to exchange an Auth0 refresh token for a federated identity provider's access token + * using the Token Vault grant. + * + * @deprecated Use {@link #getTokenForConnectionWithRefreshToken(String, String, String)} to exchange a + * refresh token, or {@link #getTokenForConnectionWithAccessToken(String, String, String)} to + * exchange an access token. For full control over the subject token type, use + * {@link #getTokenForConnection(String, String, String, String)}. + * @param connection the name of the federated connection to obtain an access token for + * (for example {@code google-oauth2}). Must not be null. + * @param refreshToken a valid Auth0 refresh token to exchange. Must not be null. + * @param loginHint the user's ID within the identity provider specified by the connection. + * May be null, in which case no {@code login_hint} is sent. + * @return a Request to configure and execute. + */ + @Deprecated + public TokenRequest getTokenForConnection(String connection, String refreshToken, String loginHint) { + return getTokenForConnectionWithRefreshToken(connection, refreshToken, loginHint); + } + /** * Creates a request to revoke an existing Refresh Token. * Confidential clients (Regular Web Apps) must have a client secret configured on this {@code AuthAPI} instance. diff --git a/src/test/java/com/auth0/client/auth/AuthAPITest.java b/src/test/java/com/auth0/client/auth/AuthAPITest.java index 7278a80e..d7869938 100644 --- a/src/test/java/com/auth0/client/auth/AuthAPITest.java +++ b/src/test/java/com/auth0/client/auth/AuthAPITest.java @@ -1041,21 +1041,110 @@ public void shouldCreateTokenExchangeRequestWithClientAssertion() throws Excepti public void shouldThrowOnGetTokenForConnectionWithNullConnection() { verifyThrows( IllegalArgumentException.class, - () -> api.getTokenForConnection(null, "test-refresh-token", null), + () -> api.getTokenForConnection( + null, "test-token", "urn:ietf:params:oauth:token-type:refresh_token", null), "'connection' cannot be null!"); } @Test - public void shouldThrowOnGetTokenForConnectionWithNullRefreshToken() { + public void shouldThrowOnGetTokenForConnectionWithNullSubjectToken() { verifyThrows( IllegalArgumentException.class, - () -> api.getTokenForConnection("google-oauth2", null, null), + () -> api.getTokenForConnection( + "google-oauth2", null, "urn:ietf:params:oauth:token-type:refresh_token", null), + "'subject token' cannot be null!"); + } + + @Test + public void shouldThrowOnGetTokenForConnectionWithNullSubjectTokenType() { + verifyThrows( + IllegalArgumentException.class, + () -> api.getTokenForConnection("google-oauth2", "test-token", null, null), + "'subject token type' cannot be null!"); + } + + @Test + public void shouldCreateGetTokenForConnectionRequestWithCustomSubjectTokenType() throws Exception { + TokenRequest request = + api.getTokenForConnection("google-oauth2", "test-token", "urn:example:token-type:custom", null); + assertThat(request, is(notNullValue())); + + server.jsonResponse(AUTH_TOKENS, 200); + TokenHolder response = request.execute().getBody(); + RecordedRequest recordedRequest = server.takeRequest(); + + assertThat(recordedRequest, hasMethodAndPath(HttpMethod.POST, "/oauth/token")); + assertThat(recordedRequest, hasHeader("Content-Type", "application/json")); + + Map body = bodyFromRequest(recordedRequest); + assertThat( + body, + hasEntry( + "grant_type", + "urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token")); + assertThat(body, hasEntry("client_id", CLIENT_ID)); + assertThat(body, hasEntry("client_secret", CLIENT_SECRET)); + assertThat(body, hasEntry("subject_token", "test-token")); + assertThat(body, hasEntry("subject_token_type", "urn:example:token-type:custom")); + assertThat( + body, + hasEntry( + "requested_token_type", "http://auth0.com/oauth/token-type/federated-connection-access-token")); + assertThat(body, hasEntry("connection", "google-oauth2")); + assertThat(body, not(hasKey("login_hint"))); + + assertThat(response, is(notNullValue())); + assertThat(response.getAccessToken(), not(emptyOrNullString())); + } + + @Test + public void shouldCreateGetTokenForConnectionRequestWithLoginHint() throws Exception { + TokenRequest request = api.getTokenForConnection( + "google-oauth2", "test-token", "urn:example:token-type:custom", "google-user-id"); + assertThat(request, is(notNullValue())); + + server.jsonResponse(AUTH_TOKENS, 200); + TokenHolder response = request.execute().getBody(); + RecordedRequest recordedRequest = server.takeRequest(); + + Map body = bodyFromRequest(recordedRequest); + assertThat(body, hasEntry("subject_token", "test-token")); + assertThat(body, hasEntry("subject_token_type", "urn:example:token-type:custom")); + assertThat(body, hasEntry("connection", "google-oauth2")); + assertThat(body, hasEntry("login_hint", "google-user-id")); + + assertThat(response, is(notNullValue())); + assertThat(response.getAccessToken(), not(emptyOrNullString())); + } + + @Test + public void getTokenForConnectionRequiresClientAuthentication() { + verifyThrows( + IllegalStateException.class, + () -> apiNoClientAuthentication.getTokenForConnection( + "google-oauth2", "test-token", "urn:ietf:params:oauth:token-type:refresh_token", null), + "A client secret or client assertion signing key is required for this operation"); + } + + @Test + public void shouldThrowOnGetTokenForConnectionWithRefreshTokenWithNullConnection() { + verifyThrows( + IllegalArgumentException.class, + () -> api.getTokenForConnectionWithRefreshToken(null, "test-refresh-token", null), + "'connection' cannot be null!"); + } + + @Test + public void shouldThrowOnGetTokenForConnectionWithRefreshTokenWithNullRefreshToken() { + verifyThrows( + IllegalArgumentException.class, + () -> api.getTokenForConnectionWithRefreshToken("google-oauth2", null, null), "'refresh token' cannot be null!"); } @Test - public void shouldCreateGetTokenForConnectionRequest() throws Exception { - TokenRequest request = api.getTokenForConnection("google-oauth2", "test-refresh-token", null); + public void shouldCreateGetTokenForConnectionWithRefreshTokenRequest() throws Exception { + TokenRequest request = api.getTokenForConnectionWithRefreshToken("google-oauth2", "test-refresh-token", null); assertThat(request, is(notNullValue())); server.jsonResponse(AUTH_TOKENS, 200); @@ -1087,7 +1176,35 @@ public void shouldCreateGetTokenForConnectionRequest() throws Exception { } @Test - public void shouldCreateGetTokenForConnectionRequestWithLoginHint() throws Exception { + public void shouldCreateGetTokenForConnectionWithRefreshTokenRequestWithLoginHint() throws Exception { + TokenRequest request = + api.getTokenForConnectionWithRefreshToken("google-oauth2", "test-refresh-token", "google-user-id"); + assertThat(request, is(notNullValue())); + + server.jsonResponse(AUTH_TOKENS, 200); + TokenHolder response = request.execute().getBody(); + RecordedRequest recordedRequest = server.takeRequest(); + + Map body = bodyFromRequest(recordedRequest); + assertThat(body, hasEntry("connection", "google-oauth2")); + assertThat(body, hasEntry("login_hint", "google-user-id")); + + assertThat(response, is(notNullValue())); + assertThat(response.getAccessToken(), not(emptyOrNullString())); + } + + @Test + public void getTokenForConnectionWithRefreshTokenRequiresClientAuthentication() { + verifyThrows( + IllegalStateException.class, + () -> apiNoClientAuthentication.getTokenForConnectionWithRefreshToken( + "google-oauth2", "test-refresh-token", null), + "A client secret or client assertion signing key is required for this operation"); + } + + @Test + @SuppressWarnings("deprecation") + public void deprecatedGetTokenForConnectionExchangesRefreshToken() throws Exception { TokenRequest request = api.getTokenForConnection("google-oauth2", "test-refresh-token", "google-user-id"); assertThat(request, is(notNullValue())); @@ -1096,6 +1213,8 @@ public void shouldCreateGetTokenForConnectionRequestWithLoginHint() throws Excep RecordedRequest recordedRequest = server.takeRequest(); Map body = bodyFromRequest(recordedRequest); + assertThat(body, hasEntry("subject_token", "test-refresh-token")); + assertThat(body, hasEntry("subject_token_type", "urn:ietf:params:oauth:token-type:refresh_token")); assertThat(body, hasEntry("connection", "google-oauth2")); assertThat(body, hasEntry("login_hint", "google-user-id")); @@ -1104,10 +1223,78 @@ public void shouldCreateGetTokenForConnectionRequestWithLoginHint() throws Excep } @Test - public void getTokenForConnectionRequiresClientAuthentication() { + public void shouldThrowOnGetTokenForConnectionWithAccessTokenWithNullConnection() { + verifyThrows( + IllegalArgumentException.class, + () -> api.getTokenForConnectionWithAccessToken(null, "test-access-token", null), + "'connection' cannot be null!"); + } + + @Test + public void shouldThrowOnGetTokenForConnectionWithAccessTokenWithNullAccessToken() { + verifyThrows( + IllegalArgumentException.class, + () -> api.getTokenForConnectionWithAccessToken("google-oauth2", null, null), + "'access token' cannot be null!"); + } + + @Test + public void shouldCreateGetTokenForConnectionWithAccessTokenRequest() throws Exception { + TokenRequest request = api.getTokenForConnectionWithAccessToken("google-oauth2", "test-access-token", null); + assertThat(request, is(notNullValue())); + + server.jsonResponse(AUTH_TOKENS, 200); + TokenHolder response = request.execute().getBody(); + RecordedRequest recordedRequest = server.takeRequest(); + + assertThat(recordedRequest, hasMethodAndPath(HttpMethod.POST, "/oauth/token")); + assertThat(recordedRequest, hasHeader("Content-Type", "application/json")); + + Map body = bodyFromRequest(recordedRequest); + assertThat( + body, + hasEntry( + "grant_type", + "urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token")); + assertThat(body, hasEntry("client_id", CLIENT_ID)); + assertThat(body, hasEntry("client_secret", CLIENT_SECRET)); + assertThat(body, hasEntry("subject_token", "test-access-token")); + assertThat(body, hasEntry("subject_token_type", "urn:ietf:params:oauth:token-type:access_token")); + assertThat( + body, + hasEntry( + "requested_token_type", "http://auth0.com/oauth/token-type/federated-connection-access-token")); + assertThat(body, hasEntry("connection", "google-oauth2")); + assertThat(body, not(hasKey("login_hint"))); + + assertThat(response, is(notNullValue())); + assertThat(response.getAccessToken(), not(emptyOrNullString())); + } + + @Test + public void shouldCreateGetTokenForConnectionWithAccessTokenRequestWithLoginHint() throws Exception { + TokenRequest request = + api.getTokenForConnectionWithAccessToken("google-oauth2", "test-access-token", "google-user-id"); + assertThat(request, is(notNullValue())); + + server.jsonResponse(AUTH_TOKENS, 200); + TokenHolder response = request.execute().getBody(); + RecordedRequest recordedRequest = server.takeRequest(); + + Map body = bodyFromRequest(recordedRequest); + assertThat(body, hasEntry("connection", "google-oauth2")); + assertThat(body, hasEntry("login_hint", "google-user-id")); + + assertThat(response, is(notNullValue())); + assertThat(response.getAccessToken(), not(emptyOrNullString())); + } + + @Test + public void getTokenForConnectionWithAccessTokenRequiresClientAuthentication() { verifyThrows( IllegalStateException.class, - () -> apiNoClientAuthentication.getTokenForConnection("google-oauth2", "test-refresh-token", null), + () -> apiNoClientAuthentication.getTokenForConnectionWithAccessToken( + "google-oauth2", "test-access-token", null), "A client secret or client assertion signing key is required for this operation"); } From e6870e728b5f35f63d912f1d22d9dd51e32b842d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 18:03:21 +0530 Subject: [PATCH 07/13] feat: Branding Theme Identifiers, Self-Service Third-Party Client Access, Cross-App Access & Session Actor support (#906) Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Tanya Sinha --- .fern/replay.lock | 395 +++++++++++++++++- reference.md | 58 ++- .../CreateBrandingThemeRequestContent.java | 42 +- .../UpdateBrandingThemeRequestContent.java | 42 +- ...ServiceProfileSsoTicketRequestContent.java | 28 ++ .../mgmt/types/BrandingThemeIdentifiers.java | 179 ++++++++ ...ndingThemeIdentifiersLoginDisplayEnum.java | 86 ++++ .../BrandingThemeIdentifiersPhoneDisplay.java | 144 +++++++ ...IdentifiersPhoneDisplayFormattingEnum.java | 86 ++++ ...emeIdentifiersPhoneDisplayMaskingEnum.java | 97 +++++ .../com/auth0/client/mgmt/types/Client.java | 28 ++ .../client/mgmt/types/ClientAppTypeEnum.java | 11 + .../types/ClientGrantSubjectTypeEnum.java | 11 + .../ConnectionCrossAppAccessResourceApp.java | 120 ++++++ ...onCrossAppAccessResourceAppStatusEnum.java | 86 ++++ .../client/mgmt/types/ConnectionForList.java | 30 +- .../types/ConnectionResponseContentOidc.java | 76 ++++ .../CreateBrandingThemeResponseContent.java | 43 +- .../types/CreateClientRequestContent.java | 37 ++ .../types/CreateClientResponseContent.java | 28 ++ .../types/CreateConnectionRequestContent.java | 37 +- .../CreateConnectionRequestContentOidc.java | 76 ++++ .../CreateConnectionResponseContent.java | 30 +- .../CreateCrossAppAccessResourceApp.java | 119 ++++++ ...teIdentityAssertionAuthorizationGrant.java | 128 ++++++ .../mgmt/types/CrossAppAccessResourceApp.java | 119 ++++++ .../CrossAppAccessResourceAppStatusEnum.java | 86 ++++ ...etBrandingDefaultThemeResponseContent.java | 43 +- .../GetBrandingThemeResponseContent.java | 43 +- .../mgmt/types/GetClientResponseContent.java | 28 ++ .../types/GetConnectionResponseContent.java | 30 +- .../mgmt/types/GetSessionResponseContent.java | 30 +- .../IdentityAssertionAuthorizationGrant.java | 128 ++++++ .../types/ListClientsRequestParameters.java | 4 +- .../RotateClientSecretResponseContent.java | 28 ++ .../mgmt/types/SessionActorClaimValue.java | 105 +++++ .../mgmt/types/SessionActorMetadata.java | 128 ++++++ .../mgmt/types/SessionResponseContent.java | 30 +- ...ThrottlingPreCustomTokenExchangeStage.java | 141 +++++++ .../types/SuspiciousIpThrottlingStage.java | 34 +- .../types/ThirdPartyClientAccessConfig.java | 127 ++++++ .../UpdateBrandingThemeResponseContent.java | 43 +- .../types/UpdateClientRequestContent.java | 66 +++ .../types/UpdateClientResponseContent.java | 28 ++ .../types/UpdateConnectionRequestContent.java | 62 ++- .../UpdateConnectionRequestContentOidc.java | 62 +++ .../UpdateConnectionResponseContent.java | 30 +- .../UpdateCrossAppAccessResourceApp.java | 119 ++++++ ...teIdentityAssertionAuthorizationGrant.java | 128 ++++++ .../types/UpdateSessionResponseContent.java | 30 +- ...tectionSuspiciousIpThrottlingWireTest.java | 12 +- .../mgmt/ClientsConnectionsWireTest.java | 2 +- .../client/mgmt/ConnectionsWireTest.java | 17 +- .../auth0/client/mgmt/SessionsWireTest.java | 10 +- .../client/mgmt/UsersSessionsWireTest.java | 2 +- ...ingThemesWireTest_testCreate_response.json | 8 + ...hemesWireTest_testGetDefault_response.json | 8 + ...andingThemesWireTest_testGet_response.json | 8 + ...ingThemesWireTest_testUpdate_response.json | 8 + .../ClientsWireTest_testCreate_response.json | 3 + .../ClientsWireTest_testGet_response.json | 3 + .../ClientsWireTest_testList_response.json | 3 + ...ntsWireTest_testRotateSecret_response.json | 3 + .../ClientsWireTest_testUpdate_response.json | 3 + 64 files changed, 3735 insertions(+), 44 deletions(-) create mode 100644 src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiers.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersLoginDisplayEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplay.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayFormattingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayMaskingEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceApp.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceAppStatusEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateCrossAppAccessResourceApp.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateIdentityAssertionAuthorizationGrant.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceApp.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceAppStatusEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/IdentityAssertionAuthorizationGrant.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/SessionActorClaimValue.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/SessionActorMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreCustomTokenExchangeStage.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ThirdPartyClientAccessConfig.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateCrossAppAccessResourceApp.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateIdentityAssertionAuthorizationGrant.java diff --git a/.fern/replay.lock b/.fern/replay.lock index faf84d4b..0593e246 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,5 +18,396 @@ generations: cli_version: unknown generator_versions: fernapi/fern-java-sdk: 4.11.1 -current_generation: 653c66ddba4f88ad24d1bab64c0d820b57ec9c0d -patches: [] + - commit_sha: 6123049f4ae684b09b5bfb8da5ed607adc6f871d + tree_hash: 4d63c7b38b38d404803cfd5d9859d9711e9c03fa + timestamp: 2026-07-21T07:15:47.465Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.11.1 +current_generation: 6123049f4ae684b09b5bfb8da5ed607adc6f871d +patches: + - id: patch-ec28244b + content_hash: sha256:138547c31047858fa903f656bd52246c357d3c34bd650b5648c0ed7f0f37ee0f + original_commit: ec28244b9fc3bce518088b96a5402cbb8ad1dcc6 + original_message: "feat: add MIGRATION_GUIDE (#900)" + original_author: Tanya Sinha + base_generation: 6123049f4ae684b09b5bfb8da5ed607adc6f871d + files: + - v3_MIGRATION_GUIDE.md + patch_content: | + diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md + deleted file mode 100644 + index 9d98602c..00000000 + --- a/MIGRATION_GUIDE.md + +++ /dev/null + @@ -1,369 +0,0 @@ + -# V3 Migration Guide + - + -A guide to migrating the Auth0 Java SDK from `v2` to `v3`. + - + -- [Overall changes](#overall-changes) + - - [Java versions](#java-versions) + - - [Authentication API](#authentication-api) + - - [Management API](#management-api) + -- [Specific changes to the Management API](#specific-changes-to-the-management-api) + - - [Client initialization](#client-initialization) + - - [Sub-client organization](#sub-client-organization) + - - [Request and response patterns](#request-and-response-patterns) + - - [Pagination](#pagination) + - - [Exception handling](#exception-handling) + - - [Accessing raw HTTP responses](#accessing-raw-http-responses) + - - [Request-level configuration](#request-level-configuration) + - - [Type changes](#type-changes) + - + -## Overall changes + - + -### Java versions + - + -Both v2 and v3 require Java 8 or above. + - + -### Authentication API + - + -This major version change does not affect the Authentication API. The `AuthAPI` class has been ported directly from v2 to v3. Any code written for the Authentication API in the v2 version should work in the v3 version. + - + -```java + -// Works in both v2 and v3 + -AuthAPI auth = AuthAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_CLIENT_ID}", "{YOUR_CLIENT_SECRET}").build(); + -``` + - + -### Management API + - + -V3 introduces significant improvements to the Management API SDK by migrating to [Fern](https://github.com/fern-api/fern) as the code generation tool. This provides: + - + -- Better resource grouping with sub-client organization + -- Type-safe request and response objects using builder patterns + -- Automatic pagination with `SyncPagingIterable` + -- Simplified access to HTTP response metadata via `withRawResponse()` + -- Consistent method naming (`list`, `create`, `get`, `update`, `delete`) + - + -## Specific changes to the Management API + - + -### Client initialization + - + -The Management API client initialization has changed from `ManagementAPI` to `ManagementApi`, and uses a different builder pattern. + - + -**v2:** + -```java + -import com.auth0.client.mgmt.ManagementAPI; + - + -// Using domain and token + -ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}").build(); + - + -// Using TokenProvider + -TokenProvider tokenProvider = SimpleTokenProvider.create("{YOUR_API_TOKEN}"); + -ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", tokenProvider).build(); + -``` + - + -**v3:** + -1st Approach : Standard Token-Based + -```java + -import com.auth0.client.mgmt.ManagementApi; + - + -ManagementApi client = ManagementApi + - .builder() + - .url("https://{YOUR_DOMAIN}/api/v2") + - .token("{YOUR_API_TOKEN}") + - .build(); + -``` + - + -or + - + -2nd Approach : OAuth client credentials flow + - + -```java + -OAuthTokenSupplier tokenSupplier = new OAuthTokenSupplier( + -"{CLIENT_ID}", + -"{CLIENT_SECRET}", + -"https://{YOUR_DOMAIN}", + -"{YOUR_AUDIENCE}" + -); + - + -ClientOptions clientOptions = ClientOptions.builder() + -.environment(Environment.custom("https://{YOUR_AUDIENCE}")) + -.addHeader("Authorization", () -> "Bearer " + tokenSupplier.get()) + -.build(); + - + -ManagementApi client = new ManagementApi(clientOptions); + - + -``` + - + -#### Builder options comparison + - + -| Option | v2 | v3 | + -|--------|----|----| + -| Domain/URL | `newBuilder(domain, token)` | `.url("https://domain/api/v2")` | + -| Token | Constructor parameter | `.token(token)` | + -| Timeout | Via `HttpOptions` | `.timeout(seconds)` | + -| Max retries | Via `HttpOptions` | `.maxRetries(count)` | + -| Custom HTTP client | `.withHttpClient(Auth0HttpClient)` | `.httpClient(OkHttpClient)` | + -| Custom headers | Not directly supported | `.addHeader(name, value)` | + - + -### Sub-client organization + - + -V3 introduces a hierarchical sub-client structure. Operations on related resources are now accessed through nested clients instead of methods on a flat entity class. + - + -**v2:** + -```java + -// All user operations on UsersEntity + -Request userRequest = mgmt.users().get("user_id", new UserFilter()); + -Request> permissionsRequest = mgmt.users().getPermissions("user_id", new PermissionsFilter()); + -Request> rolesRequest = mgmt.users().getRoles("user_id", new RolesFilter()); + -Request logsRequest = mgmt.users().getLogEvents("user_id", new LogEventFilter()); + -``` + - + -**v3:** + -```java + -// Operations organized into sub-clients + -GetUserResponseContent user = client.users().get("user_id"); + -SyncPagingIterable permissions = client.users().permissions().list("user_id"); + -SyncPagingIterable roles = client.users().roles().list("user_id"); + -SyncPagingIterable logs = client.users().logs().list("user_id"); + -``` + - + -#### Common sub-client mappings + - + -| v2 Method | v3 Sub-client | + -|-----------|---------------| + -| `mgmt.users().getPermissions()` | `client.users().permissions().list()` | + -| `mgmt.users().getRoles()` | `client.users().roles().list()` | + -| `mgmt.users().getLogEvents()` | `client.users().logs().list()` | + -| `mgmt.users().getOrganizations()` | `client.users().organizations().list()` | + -| `mgmt.users().link()` | `client.users().identities().link()` | + -| `mgmt.users().unlink()` | `client.users().identities().delete()` | + -| `mgmt.users().deleteMultifactorProvider()` | `client.users().multifactor().deleteProvider()` | + -| `mgmt.organizations().getMembers()` | `client.organizations().members().list()` | + -| `mgmt.organizations().getInvitations()` | `client.organizations().invitations().list()` | + -| `mgmt.organizations().getEnabledConnections()` | `client.organizations().enabledConnections().list()` | + -| `mgmt.actions().getVersions()` | `client.actions().versions().list()` | + -| `mgmt.actions().getTriggerBindings()` | `client.actions().triggers().bindings().list()` | + -| `mgmt.guardian().getFactors()` | `client.guardian().factors().list()` | + -| `mgmt.branding().getUniversalLoginTemplate()` | `client.branding().templates().getUniversalLogin()` | + -| `mgmt.connections().getScimConfiguration()` | `client.connections().scimConfiguration().get()` | + - + -### Request and response patterns + - + -V3 uses type-safe request content objects with builders instead of domain objects or filter parameters. + - + -**v2:** + -```java + -import com.auth0.json.mgmt.users.User; + -import com.auth0.net.Request; + - + -// Creating a user + -User user = new User("Username-Password-Authentication"); + -user.setEmail("test@example.com"); + -user.setPassword("password123".toCharArray()); + - + -Request request = mgmt.users().create(user); + -User createdUser = request.execute().getBody(); + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.types.CreateUserRequestContent; + -import com.auth0.client.mgmt.types.CreateUserResponseContent; + - + -// Creating a user + -CreateUserResponseContent user = client.users().create( + - CreateUserRequestContent + - .builder() + - .connection("Username-Password-Authentication") + - .email("test@example.com") + - .password("password123") + - .build() + -); + -``` + - + -#### Key differences + - + -| Aspect | v2 | v3 | + -|--------|----|----| + -| Request building | Domain objects with setters | Builder pattern with `*RequestContent` types | + -| Response type | `Request` requiring `.execute().getBody()` | Direct return of response object | + -| Filtering | Filter classes (e.g., `UserFilter`) | `*RequestParameters` builder classes | + -| Execution | Explicit `.execute()` call | Implicit execution on method call | + - + -### Pagination + - + -V3 introduces `SyncPagingIterable` for automatic pagination, replacing the manual `Request` pattern. + - + -**v2:** + -```java + -import com.auth0.json.mgmt.users.UsersPage; + -import com.auth0.client.mgmt.filter.UserFilter; + - + -Request request = mgmt.users().list(new UserFilter().withPage(0, 50)); + -UsersPage page = request.execute().getBody(); + - + -for (User user : page.getItems()) { + - System.out.println(user.getEmail()); + -} + - + -// Manual pagination + -while (page.getNext() != null) { + - request = mgmt.users().list(new UserFilter().withPage(page.getNext(), 50)); + - page = request.execute().getBody(); + - for (User user : page.getItems()) { + - System.out.println(user.getEmail()); + - } + -} + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.SyncPagingIterable; + -import com.auth0.client.mgmt.types.UserResponseSchema; + -import com.auth0.client.mgmt.types.ListUsersRequestParameters; + - + -// Automatic iteration through all pages + -SyncPagingIterable users = client.users().list( + - ListUsersRequestParameters + - .builder() + - .perPage(50) + - .build() + -); + - + -for (UserResponseSchema user : users) { + - System.out.println(user.getEmail()); + -} + - + -// Or manual page control + -List pageItems = users.getItems(); + -while (users.hasNext()) { + - pageItems = users.nextPage().getItems(); + - // process page + -} + -``` + - + -### Exception handling + - + -V3 uses a unified `ManagementApiException` class instead of the v2 exception hierarchy. + - + -**v2:** + -```java + -import com.auth0.exception.Auth0Exception; + -import com.auth0.exception.APIException; + -import com.auth0.exception.RateLimitException; + - + -try { + - User user = mgmt.users().get("user_id", null).execute().getBody(); + -} catch (RateLimitException e) { + - // Rate limited + - long retryAfter = e.getLimit(); + -} catch (APIException e) { + - int statusCode = e.getStatusCode(); + - String error = e.getError(); + - String description = e.getDescription(); + -} catch (Auth0Exception e) { + - // Network or other errors + -} + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.ManagementApiException; + - + -try { + - GetUserResponseContent user = client.users().get("user_id"); + -} catch (ManagementApiException e) { + - int statusCode = e.statusCode(); + - Object body = e.body(); + - Map> headers = e.headers(); + - String message = e.getMessage(); + -} + -``` + - + -### Accessing raw HTTP responses + - + -V3 provides access to full HTTP response metadata via `withRawResponse()`. + - + -**v2:** + -```java + -// Response wrapper provided status code + -Response response = mgmt.users().get("user_id", null).execute(); + -int statusCode = response.getStatusCode(); + -User user = response.getBody(); + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.ManagementApiHttpResponse; + - + -// Use withRawResponse() to access headers and metadata + -ManagementApiHttpResponse response = client.users() + - .withRawResponse() + - .get("user_id"); + - + -GetUserResponseContent user = response.body(); + -Map> headers = response.headers(); + -``` + - + -### Request-level configuration + - + -V3 allows per-request configuration through `RequestOptions`. + - + -**v2:** + -```java + -// Most configuration was at client level only + -// Request-level headers required creating a new request manually + -Request request = mgmt.users().get("user_id", null); + -request.addHeader("X-Custom-Header", "value"); + -User user = request.execute().getBody(); + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.core.RequestOptions; + - + -GetUserResponseContent user = client.users().get( + - "user_id", + - GetUserRequestParameters.builder().build(), + - RequestOptions.builder() + - .timeout(10) + - .maxRetries(1) + - .addHeader("X-Custom-Header", "value") + - .build() + -); + -``` + - + -### Type changes + - + -V3 uses generated type classes located in `com.auth0.client.mgmt.types` instead of the hand-written POJOs in `com.auth0.json.mgmt`. + - + -**v2:** + -```java + -import com.auth0.json.mgmt.users.User; + -import com.auth0.json.mgmt.roles.Role; + -import com.auth0.json.mgmt.organizations.Organization; + -``` + - + -**v3:** + -```java + -import com.auth0.client.mgmt.types.UserResponseSchema; + -import com.auth0.client.mgmt.types.CreateUserRequestContent; + -import com.auth0.client.mgmt.types.CreateUserResponseContent; + -import com.auth0.client.mgmt.types.Role; + -import com.auth0.client.mgmt.types.Organization; + -``` + - + -Type naming conventions in v3: + -- Request body types: `*RequestContent` (e.g., `CreateUserRequestContent`) + -- Response types: `*ResponseContent` or `*ResponseSchema` (e.g., `GetUserResponseContent`, `UserResponseSchema`) + -- Query parameters: `*RequestParameters` (e.g., `ListUsersRequestParameters`) + - + -All types use immutable builders: + - + -```java + -// v3 type construction + -CreateUserRequestContent request = CreateUserRequestContent + - .builder() + - .connection("Username-Password-Authentication") + - .email("test@example.com") + - .password("secure-password") + - .build(); + -``` + user_owned: true diff --git a/reference.md b/reference.md index 0576977e..647fa3fc 100644 --- a/reference.md +++ b/reference.md @@ -1302,7 +1302,7 @@ client.clients().list(
-**externalClientId:** `Optional` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. +**externalClientId:** `Optional` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.
@@ -1786,6 +1786,14 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
+**identityAssertionAuthorizationGrant:** `Optional` + +
+
+ +
+
+ **thirdPartySecurityMode:** `Optional`
@@ -2411,6 +2419,14 @@ client.clients().update(
+**identityAssertionAuthorizationGrant:** `Optional` + +
+
+ +
+
+ **formTemplate:** `Optional` — Form template for WS-Federation protocol
@@ -3424,6 +3440,14 @@ client.connections().create( **crossAppAccessRequestingApp:** `Optional` + +
+ +
+
+ +**crossAppAccessResourceApp:** `Optional` +
@@ -3698,6 +3722,14 @@ client.connections().update( **crossAppAccessRequestingApp:** `Optional` + +
+ +
+
+ +**crossAppAccessResourceApp:** `Optional` +
@@ -16871,6 +16903,14 @@ client.branding().themes().create(
+**identifiers:** `Optional` + +
+
+ +
+
+ **pageBackground:** `BrandingThemePageBackground`
@@ -17228,6 +17268,14 @@ client.branding().themes().update(
+**identifiers:** `Optional` + +
+
+ +
+
+ **pageBackground:** `BrandingThemePageBackground`
@@ -29546,6 +29594,14 @@ client.selfServiceProfiles().ssoTicket().create(
+**thirdPartyClientAccessConfig:** `Optional` + +
+
+ +
+
+ **enabledFeatures:** `Optional`
diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java index 4016a847..710a805f 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java @@ -7,6 +7,7 @@ import com.auth0.client.mgmt.types.BrandingThemeBorders; import com.auth0.client.mgmt.types.BrandingThemeColors; import com.auth0.client.mgmt.types.BrandingThemeFonts; +import com.auth0.client.mgmt.types.BrandingThemeIdentifiers; import com.auth0.client.mgmt.types.BrandingThemePageBackground; import com.auth0.client.mgmt.types.BrandingThemeWidget; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -34,6 +35,8 @@ public final class CreateBrandingThemeRequestContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final BrandingThemeWidget widget; @@ -45,6 +48,7 @@ private CreateBrandingThemeRequestContent( BrandingThemeColors colors, Optional displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, BrandingThemeWidget widget, Map additionalProperties) { @@ -52,6 +56,7 @@ private CreateBrandingThemeRequestContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.widget = widget; this.additionalProperties = additionalProperties; @@ -80,6 +85,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -106,13 +116,21 @@ private boolean equalTo(CreateBrandingThemeRequestContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && widget.equals(other.widget); } @java.lang.Override public int hashCode() { - return Objects.hash(this.borders, this.colors, this.displayName, this.fonts, this.pageBackground, this.widget); + return Objects.hash( + this.borders, + this.colors, + this.displayName, + this.fonts, + this.identifiers, + this.pageBackground, + this.widget); } @java.lang.Override @@ -159,6 +177,10 @@ public interface _FinalStage { _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -174,6 +196,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + private Optional displayName = Optional.empty(); @JsonAnySetter @@ -187,6 +211,7 @@ public Builder from(CreateBrandingThemeRequestContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); widget(other.getWidget()); return this; @@ -227,6 +252,19 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + /** *

Display Name

* @return Reference to {@code this} so that method calls can be chained together. @@ -250,7 +288,7 @@ public _FinalStage displayName(Optional displayName) { @java.lang.Override public CreateBrandingThemeRequestContent build() { return new CreateBrandingThemeRequestContent( - borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); + borders, colors, displayName, fonts, identifiers, pageBackground, widget, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java index 80369901..7d70f1fa 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java @@ -7,6 +7,7 @@ import com.auth0.client.mgmt.types.BrandingThemeBorders; import com.auth0.client.mgmt.types.BrandingThemeColors; import com.auth0.client.mgmt.types.BrandingThemeFonts; +import com.auth0.client.mgmt.types.BrandingThemeIdentifiers; import com.auth0.client.mgmt.types.BrandingThemePageBackground; import com.auth0.client.mgmt.types.BrandingThemeWidget; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -34,6 +35,8 @@ public final class UpdateBrandingThemeRequestContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final BrandingThemeWidget widget; @@ -45,6 +48,7 @@ private UpdateBrandingThemeRequestContent( BrandingThemeColors colors, Optional displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, BrandingThemeWidget widget, Map additionalProperties) { @@ -52,6 +56,7 @@ private UpdateBrandingThemeRequestContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.widget = widget; this.additionalProperties = additionalProperties; @@ -80,6 +85,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -106,13 +116,21 @@ private boolean equalTo(UpdateBrandingThemeRequestContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && widget.equals(other.widget); } @java.lang.Override public int hashCode() { - return Objects.hash(this.borders, this.colors, this.displayName, this.fonts, this.pageBackground, this.widget); + return Objects.hash( + this.borders, + this.colors, + this.displayName, + this.fonts, + this.identifiers, + this.pageBackground, + this.widget); } @java.lang.Override @@ -159,6 +177,10 @@ public interface _FinalStage { _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -174,6 +196,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + private Optional displayName = Optional.empty(); @JsonAnySetter @@ -187,6 +211,7 @@ public Builder from(UpdateBrandingThemeRequestContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); widget(other.getWidget()); return this; @@ -227,6 +252,19 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + /** *

Display Name

* @return Reference to {@code this} so that method calls can be chained together. @@ -250,7 +288,7 @@ public _FinalStage displayName(Optional displayName) { @java.lang.Override public UpdateBrandingThemeRequestContent build() { return new UpdateBrandingThemeRequestContent( - borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); + borders, colors, displayName, fonts, identifiers, pageBackground, widget, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java index 93d33db8..333304ca 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.types.SelfServiceProfileSsoTicketEnabledFeatures; import com.auth0.client.mgmt.types.SelfServiceProfileSsoTicketEnabledOrganization; import com.auth0.client.mgmt.types.SelfServiceProfileSsoTicketProvisioningConfig; +import com.auth0.client.mgmt.types.ThirdPartyClientAccessConfig; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -42,6 +43,8 @@ public final class CreateSelfServiceProfileSsoTicketRequestContent { private final Optional useForOrganizationDiscovery; + private final Optional thirdPartyClientAccessConfig; + private final Optional enabledFeatures; private final Map additionalProperties; @@ -55,6 +58,7 @@ private CreateSelfServiceProfileSsoTicketRequestContent( Optional domainAliasesConfig, Optional provisioningConfig, Optional useForOrganizationDiscovery, + Optional thirdPartyClientAccessConfig, Optional enabledFeatures, Map additionalProperties) { this.connectionId = connectionId; @@ -65,6 +69,7 @@ private CreateSelfServiceProfileSsoTicketRequestContent( this.domainAliasesConfig = domainAliasesConfig; this.provisioningConfig = provisioningConfig; this.useForOrganizationDiscovery = useForOrganizationDiscovery; + this.thirdPartyClientAccessConfig = thirdPartyClientAccessConfig; this.enabledFeatures = enabledFeatures; this.additionalProperties = additionalProperties; } @@ -124,6 +129,11 @@ public Optional getUseForOrganizationDiscovery() { return useForOrganizationDiscovery; } + @JsonProperty("third_party_client_access_config") + public Optional getThirdPartyClientAccessConfig() { + return thirdPartyClientAccessConfig; + } + @JsonProperty("enabled_features") public Optional getEnabledFeatures() { return enabledFeatures; @@ -150,6 +160,7 @@ private boolean equalTo(CreateSelfServiceProfileSsoTicketRequestContent other) { && domainAliasesConfig.equals(other.domainAliasesConfig) && provisioningConfig.equals(other.provisioningConfig) && useForOrganizationDiscovery.equals(other.useForOrganizationDiscovery) + && thirdPartyClientAccessConfig.equals(other.thirdPartyClientAccessConfig) && enabledFeatures.equals(other.enabledFeatures); } @@ -164,6 +175,7 @@ public int hashCode() { this.domainAliasesConfig, this.provisioningConfig, this.useForOrganizationDiscovery, + this.thirdPartyClientAccessConfig, this.enabledFeatures); } @@ -194,6 +206,8 @@ public static final class Builder { private Optional useForOrganizationDiscovery = Optional.empty(); + private Optional thirdPartyClientAccessConfig = Optional.empty(); + private Optional enabledFeatures = Optional.empty(); @JsonAnySetter @@ -210,6 +224,7 @@ public Builder from(CreateSelfServiceProfileSsoTicketRequestContent other) { domainAliasesConfig(other.getDomainAliasesConfig()); provisioningConfig(other.getProvisioningConfig()); useForOrganizationDiscovery(other.getUseForOrganizationDiscovery()); + thirdPartyClientAccessConfig(other.getThirdPartyClientAccessConfig()); enabledFeatures(other.getEnabledFeatures()); return this; } @@ -319,6 +334,18 @@ public Builder useForOrganizationDiscovery(Boolean useForOrganizationDiscovery) return this; } + @JsonSetter(value = "third_party_client_access_config", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccessConfig( + Optional thirdPartyClientAccessConfig) { + this.thirdPartyClientAccessConfig = thirdPartyClientAccessConfig; + return this; + } + + public Builder thirdPartyClientAccessConfig(ThirdPartyClientAccessConfig thirdPartyClientAccessConfig) { + this.thirdPartyClientAccessConfig = Optional.ofNullable(thirdPartyClientAccessConfig); + return this; + } + @JsonSetter(value = "enabled_features", nulls = Nulls.SKIP) public Builder enabledFeatures(Optional enabledFeatures) { this.enabledFeatures = enabledFeatures; @@ -340,6 +367,7 @@ public CreateSelfServiceProfileSsoTicketRequestContent build() { domainAliasesConfig, provisioningConfig, useForOrganizationDiscovery, + thirdPartyClientAccessConfig, enabledFeatures, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiers.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiers.java new file mode 100644 index 00000000..a6520b39 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiers.java @@ -0,0 +1,179 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = BrandingThemeIdentifiers.Builder.class) +public final class BrandingThemeIdentifiers { + private final BrandingThemeIdentifiersLoginDisplayEnum loginDisplay; + + private final boolean otpAutocomplete; + + private final BrandingThemeIdentifiersPhoneDisplay phoneDisplay; + + private final Map additionalProperties; + + private BrandingThemeIdentifiers( + BrandingThemeIdentifiersLoginDisplayEnum loginDisplay, + boolean otpAutocomplete, + BrandingThemeIdentifiersPhoneDisplay phoneDisplay, + Map additionalProperties) { + this.loginDisplay = loginDisplay; + this.otpAutocomplete = otpAutocomplete; + this.phoneDisplay = phoneDisplay; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("login_display") + public BrandingThemeIdentifiersLoginDisplayEnum getLoginDisplay() { + return loginDisplay; + } + + /** + * @return OTP autocomplete + */ + @JsonProperty("otp_autocomplete") + public boolean getOtpAutocomplete() { + return otpAutocomplete; + } + + @JsonProperty("phone_display") + public BrandingThemeIdentifiersPhoneDisplay getPhoneDisplay() { + return phoneDisplay; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BrandingThemeIdentifiers && equalTo((BrandingThemeIdentifiers) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(BrandingThemeIdentifiers other) { + return loginDisplay.equals(other.loginDisplay) + && otpAutocomplete == other.otpAutocomplete + && phoneDisplay.equals(other.phoneDisplay); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.loginDisplay, this.otpAutocomplete, this.phoneDisplay); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static LoginDisplayStage builder() { + return new Builder(); + } + + public interface LoginDisplayStage { + OtpAutocompleteStage loginDisplay(@NotNull BrandingThemeIdentifiersLoginDisplayEnum loginDisplay); + + Builder from(BrandingThemeIdentifiers other); + } + + public interface OtpAutocompleteStage { + /** + *

OTP autocomplete

+ */ + PhoneDisplayStage otpAutocomplete(boolean otpAutocomplete); + } + + public interface PhoneDisplayStage { + _FinalStage phoneDisplay(@NotNull BrandingThemeIdentifiersPhoneDisplay phoneDisplay); + } + + public interface _FinalStage { + BrandingThemeIdentifiers build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements LoginDisplayStage, OtpAutocompleteStage, PhoneDisplayStage, _FinalStage { + private BrandingThemeIdentifiersLoginDisplayEnum loginDisplay; + + private boolean otpAutocomplete; + + private BrandingThemeIdentifiersPhoneDisplay phoneDisplay; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(BrandingThemeIdentifiers other) { + loginDisplay(other.getLoginDisplay()); + otpAutocomplete(other.getOtpAutocomplete()); + phoneDisplay(other.getPhoneDisplay()); + return this; + } + + @java.lang.Override + @JsonSetter("login_display") + public OtpAutocompleteStage loginDisplay(@NotNull BrandingThemeIdentifiersLoginDisplayEnum loginDisplay) { + this.loginDisplay = Objects.requireNonNull(loginDisplay, "loginDisplay must not be null"); + return this; + } + + /** + *

OTP autocomplete

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("otp_autocomplete") + public PhoneDisplayStage otpAutocomplete(boolean otpAutocomplete) { + this.otpAutocomplete = otpAutocomplete; + return this; + } + + @java.lang.Override + @JsonSetter("phone_display") + public _FinalStage phoneDisplay(@NotNull BrandingThemeIdentifiersPhoneDisplay phoneDisplay) { + this.phoneDisplay = Objects.requireNonNull(phoneDisplay, "phoneDisplay must not be null"); + return this; + } + + @java.lang.Override + public BrandingThemeIdentifiers build() { + return new BrandingThemeIdentifiers(loginDisplay, otpAutocomplete, phoneDisplay, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersLoginDisplayEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersLoginDisplayEnum.java new file mode 100644 index 00000000..74d74b51 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersLoginDisplayEnum.java @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class BrandingThemeIdentifiersLoginDisplayEnum { + public static final BrandingThemeIdentifiersLoginDisplayEnum SEPARATE = + new BrandingThemeIdentifiersLoginDisplayEnum(Value.SEPARATE, "separate"); + + public static final BrandingThemeIdentifiersLoginDisplayEnum UNIFIED = + new BrandingThemeIdentifiersLoginDisplayEnum(Value.UNIFIED, "unified"); + + private final Value value; + + private final String string; + + BrandingThemeIdentifiersLoginDisplayEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof BrandingThemeIdentifiersLoginDisplayEnum + && this.string.equals(((BrandingThemeIdentifiersLoginDisplayEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SEPARATE: + return visitor.visitSeparate(); + case UNIFIED: + return visitor.visitUnified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static BrandingThemeIdentifiersLoginDisplayEnum valueOf(String value) { + switch (value) { + case "separate": + return SEPARATE; + case "unified": + return UNIFIED; + default: + return new BrandingThemeIdentifiersLoginDisplayEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SEPARATE, + + UNIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitSeparate(); + + T visitUnified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplay.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplay.java new file mode 100644 index 00000000..2bc87b1f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplay.java @@ -0,0 +1,144 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = BrandingThemeIdentifiersPhoneDisplay.Builder.class) +public final class BrandingThemeIdentifiersPhoneDisplay { + private final BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting; + + private final BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking; + + private final Map additionalProperties; + + private BrandingThemeIdentifiersPhoneDisplay( + BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting, + BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking, + Map additionalProperties) { + this.formatting = formatting; + this.masking = masking; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("formatting") + public BrandingThemeIdentifiersPhoneDisplayFormattingEnum getFormatting() { + return formatting; + } + + @JsonProperty("masking") + public BrandingThemeIdentifiersPhoneDisplayMaskingEnum getMasking() { + return masking; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BrandingThemeIdentifiersPhoneDisplay + && equalTo((BrandingThemeIdentifiersPhoneDisplay) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(BrandingThemeIdentifiersPhoneDisplay other) { + return formatting.equals(other.formatting) && masking.equals(other.masking); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.formatting, this.masking); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static FormattingStage builder() { + return new Builder(); + } + + public interface FormattingStage { + MaskingStage formatting(@NotNull BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting); + + Builder from(BrandingThemeIdentifiersPhoneDisplay other); + } + + public interface MaskingStage { + _FinalStage masking(@NotNull BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking); + } + + public interface _FinalStage { + BrandingThemeIdentifiersPhoneDisplay build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements FormattingStage, MaskingStage, _FinalStage { + private BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting; + + private BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(BrandingThemeIdentifiersPhoneDisplay other) { + formatting(other.getFormatting()); + masking(other.getMasking()); + return this; + } + + @java.lang.Override + @JsonSetter("formatting") + public MaskingStage formatting(@NotNull BrandingThemeIdentifiersPhoneDisplayFormattingEnum formatting) { + this.formatting = Objects.requireNonNull(formatting, "formatting must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("masking") + public _FinalStage masking(@NotNull BrandingThemeIdentifiersPhoneDisplayMaskingEnum masking) { + this.masking = Objects.requireNonNull(masking, "masking must not be null"); + return this; + } + + @java.lang.Override + public BrandingThemeIdentifiersPhoneDisplay build() { + return new BrandingThemeIdentifiersPhoneDisplay(formatting, masking, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayFormattingEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayFormattingEnum.java new file mode 100644 index 00000000..7d69d61d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayFormattingEnum.java @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class BrandingThemeIdentifiersPhoneDisplayFormattingEnum { + public static final BrandingThemeIdentifiersPhoneDisplayFormattingEnum REGIONAL = + new BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value.REGIONAL, "regional"); + + public static final BrandingThemeIdentifiersPhoneDisplayFormattingEnum INTERNATIONAL = + new BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value.INTERNATIONAL, "international"); + + private final Value value; + + private final String string; + + BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof BrandingThemeIdentifiersPhoneDisplayFormattingEnum + && this.string.equals(((BrandingThemeIdentifiersPhoneDisplayFormattingEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case REGIONAL: + return visitor.visitRegional(); + case INTERNATIONAL: + return visitor.visitInternational(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static BrandingThemeIdentifiersPhoneDisplayFormattingEnum valueOf(String value) { + switch (value) { + case "regional": + return REGIONAL; + case "international": + return INTERNATIONAL; + default: + return new BrandingThemeIdentifiersPhoneDisplayFormattingEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + INTERNATIONAL, + + REGIONAL, + + UNKNOWN + } + + public interface Visitor { + T visitInternational(); + + T visitRegional(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayMaskingEnum.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayMaskingEnum.java new file mode 100644 index 00000000..c3f1a307 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeIdentifiersPhoneDisplayMaskingEnum.java @@ -0,0 +1,97 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class BrandingThemeIdentifiersPhoneDisplayMaskingEnum { + public static final BrandingThemeIdentifiersPhoneDisplayMaskingEnum SHOW_ALL = + new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.SHOW_ALL, "show_all"); + + public static final BrandingThemeIdentifiersPhoneDisplayMaskingEnum MASK_DIGITS = + new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.MASK_DIGITS, "mask_digits"); + + public static final BrandingThemeIdentifiersPhoneDisplayMaskingEnum HIDE_COUNTRY_CODE = + new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.HIDE_COUNTRY_CODE, "hide_country_code"); + + private final Value value; + + private final String string; + + BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof BrandingThemeIdentifiersPhoneDisplayMaskingEnum + && this.string.equals(((BrandingThemeIdentifiersPhoneDisplayMaskingEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHOW_ALL: + return visitor.visitShowAll(); + case MASK_DIGITS: + return visitor.visitMaskDigits(); + case HIDE_COUNTRY_CODE: + return visitor.visitHideCountryCode(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static BrandingThemeIdentifiersPhoneDisplayMaskingEnum valueOf(String value) { + switch (value) { + case "show_all": + return SHOW_ALL; + case "mask_digits": + return MASK_DIGITS; + case "hide_country_code": + return HIDE_COUNTRY_CODE; + default: + return new BrandingThemeIdentifiersPhoneDisplayMaskingEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + HIDE_COUNTRY_CODE, + + MASK_DIGITS, + + SHOW_ALL, + + UNKNOWN + } + + public interface Visitor { + T visitHideCountryCode(); + + T visitMaskDigits(); + + T visitShowAll(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/Client.java b/src/main/java/com/auth0/client/mgmt/types/Client.java index 2963c66b..6ff57f2f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Client.java +++ b/src/main/java/com/auth0/client/mgmt/types/Client.java @@ -134,6 +134,8 @@ public final class Client { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private Client( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private Client( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(Client other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(Client other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public Client build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java index 0bfdbff4..9be55678 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAppTypeEnum.java @@ -44,6 +44,9 @@ public final class ClientAppTypeEnum { public static final ClientAppTypeEnum RMS = new ClientAppTypeEnum(Value.RMS, "rms"); + public static final ClientAppTypeEnum B2B_INTEGRATION = + new ClientAppTypeEnum(Value.B2B_INTEGRATION, "b2b_integration"); + public static final ClientAppTypeEnum CLOUDBEES = new ClientAppTypeEnum(Value.CLOUDBEES, "cloudbees"); public static final ClientAppTypeEnum SALESFORCE = new ClientAppTypeEnum(Value.SALESFORCE, "salesforce"); @@ -127,6 +130,8 @@ public T visit(Visitor visitor) { return visitor.visitEchosign(); case RMS: return visitor.visitRms(); + case B2B_INTEGRATION: + return visitor.visitB2BIntegration(); case CLOUDBEES: return visitor.visitCloudbees(); case SALESFORCE: @@ -186,6 +191,8 @@ public static ClientAppTypeEnum valueOf(String value) { return ECHOSIGN; case "rms": return RMS; + case "b2b_integration": + return B2B_INTEGRATION; case "cloudbees": return CLOUDBEES; case "salesforce": @@ -220,6 +227,8 @@ public enum Value { EXPRESS_CONFIGURATION, + B2B_INTEGRATION, + RMS, BOX, @@ -274,6 +283,8 @@ public interface Visitor { T visitExpressConfiguration(); + T visitB2BIntegration(); + T visitRms(); T visitBox(); diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java index 7ea37cc4..0fbc8ad4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientGrantSubjectTypeEnum.java @@ -9,6 +9,9 @@ public final class ClientGrantSubjectTypeEnum { public static final ClientGrantSubjectTypeEnum USER = new ClientGrantSubjectTypeEnum(Value.USER, "user"); + public static final ClientGrantSubjectTypeEnum ANONYMOUS_USER = + new ClientGrantSubjectTypeEnum(Value.ANONYMOUS_USER, "anonymous_user"); + public static final ClientGrantSubjectTypeEnum CLIENT = new ClientGrantSubjectTypeEnum(Value.CLIENT, "client"); private final Value value; @@ -46,6 +49,8 @@ public T visit(Visitor visitor) { switch (value) { case USER: return visitor.visitUser(); + case ANONYMOUS_USER: + return visitor.visitAnonymousUser(); case CLIENT: return visitor.visitClient(); case UNKNOWN: @@ -59,6 +64,8 @@ public static ClientGrantSubjectTypeEnum valueOf(String value) { switch (value) { case "user": return USER; + case "anonymous_user": + return ANONYMOUS_USER; case "client": return CLIENT; default: @@ -71,6 +78,8 @@ public enum Value { USER, + ANONYMOUS_USER, + UNKNOWN } @@ -79,6 +88,8 @@ public interface Visitor { T visitUser(); + T visitAnonymousUser(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceApp.java new file mode 100644 index 00000000..08133903 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceApp.java @@ -0,0 +1,120 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionCrossAppAccessResourceApp.Builder.class) +public final class ConnectionCrossAppAccessResourceApp { + private final ConnectionCrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private ConnectionCrossAppAccessResourceApp( + ConnectionCrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public ConnectionCrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionCrossAppAccessResourceApp + && equalTo((ConnectionCrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionCrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull ConnectionCrossAppAccessResourceAppStatusEnum status); + + Builder from(ConnectionCrossAppAccessResourceApp other); + } + + public interface _FinalStage { + ConnectionCrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private ConnectionCrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ConnectionCrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull ConnectionCrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public ConnectionCrossAppAccessResourceApp build() { + return new ConnectionCrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceAppStatusEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceAppStatusEnum.java new file mode 100644 index 00000000..b7adf3dc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCrossAppAccessResourceAppStatusEnum.java @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class ConnectionCrossAppAccessResourceAppStatusEnum { + public static final ConnectionCrossAppAccessResourceAppStatusEnum ENABLED = + new ConnectionCrossAppAccessResourceAppStatusEnum(Value.ENABLED, "enabled"); + + public static final ConnectionCrossAppAccessResourceAppStatusEnum DISABLED = + new ConnectionCrossAppAccessResourceAppStatusEnum(Value.DISABLED, "disabled"); + + private final Value value; + + private final String string; + + ConnectionCrossAppAccessResourceAppStatusEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof ConnectionCrossAppAccessResourceAppStatusEnum + && this.string.equals(((ConnectionCrossAppAccessResourceAppStatusEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ENABLED: + return visitor.visitEnabled(); + case DISABLED: + return visitor.visitDisabled(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionCrossAppAccessResourceAppStatusEnum valueOf(String value) { + switch (value) { + case "enabled": + return ENABLED; + case "disabled": + return DISABLED; + default: + return new ConnectionCrossAppAccessResourceAppStatusEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + DISABLED, + + ENABLED, + + UNKNOWN + } + + public interface Visitor { + T visitDisabled(); + + T visitEnabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java index 7879f24a..667bb23a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java @@ -46,6 +46,8 @@ public final class ConnectionForList { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private ConnectionForList( @@ -61,6 +63,7 @@ private ConnectionForList( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -74,6 +77,7 @@ private ConnectionForList( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -158,6 +162,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -181,7 +190,8 @@ private boolean equalTo(ConnectionForList other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -198,7 +208,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -236,6 +247,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -254,6 +267,7 @@ public Builder from(ConnectionForList other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -410,6 +424,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public ConnectionForList build() { return new ConnectionForList( name, @@ -424,6 +449,7 @@ public ConnectionForList build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java index 040dc79d..4fe75d33 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -19,6 +20,7 @@ import java.util.Objects; import java.util.Optional; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentOidc.Builder.class) @@ -45,6 +47,8 @@ public final class ConnectionResponseContentOidc implements IConnectionResponseC private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional options; private final Optional showAsButton; @@ -63,6 +67,7 @@ private ConnectionResponseContentOidc( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Optional options, Optional showAsButton, Map additionalProperties) { @@ -77,6 +82,7 @@ private ConnectionResponseContentOidc( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.options = options; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; @@ -147,6 +153,15 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + public OptionalNullable getCrossAppAccessResourceApp() { + if (crossAppAccessResourceApp == null) { + return OptionalNullable.absent(); + } + return crossAppAccessResourceApp; + } + @JsonProperty("options") public Optional getOptions() { return options; @@ -157,6 +172,12 @@ public Optional getShowAsButton() { return showAsButton; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + private OptionalNullable _getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -180,6 +201,7 @@ private boolean equalTo(ConnectionResponseContentOidc other) { && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && options.equals(other.options) && showAsButton.equals(other.showAsButton); } @@ -198,6 +220,7 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp, this.options, this.showAsButton); } @@ -267,6 +290,16 @@ public interface _FinalStage { _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp); + _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(Optional crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp); + _FinalStage options(Optional options); _FinalStage options(ConnectionOptionsOidc options); @@ -288,6 +321,9 @@ public static final class Builder implements IdStage, NameStage, StrategyStage, private Optional options = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional crossAppAccessRequestingApp = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -322,6 +358,7 @@ public Builder from(ConnectionResponseContentOidc other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); options(other.getOptions()); showAsButton(other.getShowAsButton()); return this; @@ -374,6 +411,44 @@ public _FinalStage options(Optional options) { return this; } + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isNull()) { + this.crossAppAccessResourceApp = OptionalNullable.ofNull(); + } else if (crossAppAccessResourceApp.isEmpty()) { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } else { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isPresent()) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } else { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + @java.lang.Override public _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp) { this.crossAppAccessRequestingApp = Optional.ofNullable(crossAppAccessRequestingApp); @@ -500,6 +575,7 @@ public ConnectionResponseContentOidc build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, options, showAsButton, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java index 6b67cf5e..15a1c453 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java @@ -10,10 +10,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.Optional; import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @@ -27,6 +29,8 @@ public final class CreateBrandingThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private CreateBrandingThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private CreateBrandingThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -112,6 +123,7 @@ private boolean equalTo(CreateBrandingThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -124,6 +136,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -180,6 +193,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -206,6 +223,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,6 +236,7 @@ public Builder from(CreateBrandingThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -280,10 +300,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public CreateBrandingThemeResponseContent build() { return new CreateBrandingThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java index 98f40f19..ccc847ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -125,6 +125,8 @@ public final class CreateClientRequestContent { private final Optional resourceServerIdentifier; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -188,6 +190,7 @@ private CreateClientRequestContent( OptionalNullable parRequestExpiry, Optional tokenQuota, Optional resourceServerIdentifier, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional expressConfiguration, @@ -244,6 +247,7 @@ private CreateClientRequestContent( this.parRequestExpiry = parRequestExpiry; this.tokenQuota = tokenQuota; this.resourceServerIdentifier = resourceServerIdentifier; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.expressConfiguration = expressConfiguration; @@ -615,6 +619,11 @@ public Optional getResourceServerIdentifier() { return resourceServerIdentifier; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -739,6 +748,7 @@ private boolean equalTo(CreateClientRequestContent other) { && parRequestExpiry.equals(other.parRequestExpiry) && tokenQuota.equals(other.tokenQuota) && resourceServerIdentifier.equals(other.resourceServerIdentifier) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && expressConfiguration.equals(other.expressConfiguration) @@ -799,6 +809,7 @@ public int hashCode() { this.parRequestExpiry, this.tokenQuota, this.resourceServerIdentifier, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.expressConfiguration, @@ -1145,6 +1156,12 @@ _FinalStage skipNonVerifiableCallbackUriConfirmationPrompt( _FinalStage resourceServerIdentifier(String resourceServerIdentifier); + _FinalStage identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant); + + _FinalStage identityAssertionAuthorizationGrant( + CreateIdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant); + _FinalStage thirdPartySecurityMode(Optional thirdPartySecurityMode); _FinalStage thirdPartySecurityMode(ClientThirdPartySecurityModeEnum thirdPartySecurityMode); @@ -1184,6 +1201,9 @@ public static final class Builder implements NameStage, _FinalStage { private Optional thirdPartySecurityMode = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = + Optional.empty(); + private Optional resourceServerIdentifier = Optional.empty(); private Optional tokenQuota = Optional.empty(); @@ -1339,6 +1359,7 @@ public Builder from(CreateClientRequestContent other) { parRequestExpiry(other.getParRequestExpiry()); tokenQuota(other.getTokenQuota()); resourceServerIdentifier(other.getResourceServerIdentifier()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); expressConfiguration(other.getExpressConfiguration()); @@ -1427,6 +1448,21 @@ public _FinalStage thirdPartySecurityMode(Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + /** *

The identifier of the resource server that this client is linked to.

* @return Reference to {@code this} so that method calls can be chained together. @@ -2474,6 +2510,7 @@ public CreateClientRequestContent build() { parRequestExpiry, tokenQuota, resourceServerIdentifier, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, expressConfiguration, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java index 7f909743..12e65eb1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java @@ -134,6 +134,8 @@ public final class CreateClientResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private CreateClientResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private CreateClientResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(CreateClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(CreateClientResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public CreateClientResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java index b841315a..061777d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java @@ -47,6 +47,8 @@ public final class CreateConnectionRequestContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private CreateConnectionRequestContent( @@ -62,6 +64,7 @@ private CreateConnectionRequestContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -75,6 +78,7 @@ private CreateConnectionRequestContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -156,6 +160,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -179,7 +188,8 @@ private boolean equalTo(CreateConnectionRequestContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -196,7 +206,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -282,6 +293,10 @@ public interface _FinalStage { _FinalStage crossAppAccessRequestingApp(Optional crossAppAccessRequestingApp); _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp); + + _FinalStage crossAppAccessResourceApp(Optional crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(CreateCrossAppAccessResourceApp crossAppAccessResourceApp); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -290,6 +305,8 @@ public static final class Builder implements NameStage, StrategyStage, _FinalSta private ConnectionIdentityProviderEnum strategy; + private Optional crossAppAccessResourceApp = Optional.empty(); + private Optional crossAppAccessRequestingApp = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -329,6 +346,7 @@ public Builder from(CreateConnectionRequestContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -350,6 +368,20 @@ public _FinalStage strategy(@NotNull ConnectionIdentityProviderEnum strategy) { return this; } + @java.lang.Override + public _FinalStage crossAppAccessResourceApp(CreateCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public _FinalStage crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + @java.lang.Override public _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp) { this.crossAppAccessRequestingApp = Optional.ofNullable(crossAppAccessRequestingApp); @@ -531,6 +563,7 @@ public CreateConnectionRequestContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java index f9df64c6..e061026a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -19,6 +20,7 @@ import java.util.Objects; import java.util.Optional; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentOidc.Builder.class) @@ -41,6 +43,8 @@ public final class CreateConnectionRequestContentOidc implements ICreateConnecti private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional options; private final Optional showAsButton; @@ -57,6 +61,7 @@ private CreateConnectionRequestContentOidc( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Optional options, Optional showAsButton, Map additionalProperties) { @@ -69,6 +74,7 @@ private CreateConnectionRequestContentOidc( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.options = options; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; @@ -127,6 +133,15 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + public OptionalNullable getCrossAppAccessResourceApp() { + if (crossAppAccessResourceApp == null) { + return OptionalNullable.absent(); + } + return crossAppAccessResourceApp; + } + @JsonProperty("options") public Optional getOptions() { return options; @@ -137,6 +152,12 @@ public Optional getShowAsButton() { return showAsButton; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + private OptionalNullable _getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -159,6 +180,7 @@ private boolean equalTo(CreateConnectionRequestContentOidc other) { && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && options.equals(other.options) && showAsButton.equals(other.showAsButton); } @@ -175,6 +197,7 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp, this.options, this.showAsButton); } @@ -236,6 +259,16 @@ public interface _FinalStage { _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp); + _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp(Optional crossAppAccessResourceApp); + + _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp); + _FinalStage options(Optional options); _FinalStage options(ConnectionOptionsOidc options); @@ -255,6 +288,9 @@ public static final class Builder implements NameStage, StrategyStage, _FinalSta private Optional options = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional crossAppAccessRequestingApp = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -285,6 +321,7 @@ public Builder from(CreateConnectionRequestContentOidc other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); options(other.getOptions()); showAsButton(other.getShowAsButton()); return this; @@ -330,6 +367,44 @@ public _FinalStage options(Optional options) { return this; } + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isNull()) { + this.crossAppAccessResourceApp = OptionalNullable.ofNull(); + } else if (crossAppAccessResourceApp.isEmpty()) { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } else { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isPresent()) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } else { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public _FinalStage crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + @java.lang.Override public _FinalStage crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppAccessRequestingApp) { this.crossAppAccessRequestingApp = Optional.ofNullable(crossAppAccessRequestingApp); @@ -441,6 +516,7 @@ public CreateConnectionRequestContentOidc build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, options, showAsButton, additionalProperties); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java index 93142c14..e92f8f2e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java @@ -48,6 +48,8 @@ public final class CreateConnectionResponseContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private CreateConnectionResponseContent( @@ -64,6 +66,7 @@ private CreateConnectionResponseContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -78,6 +81,7 @@ private CreateConnectionResponseContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -170,6 +174,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -194,7 +203,8 @@ private boolean equalTo(CreateConnectionResponseContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -212,7 +222,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -252,6 +263,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -271,6 +284,7 @@ public Builder from(CreateConnectionResponseContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -441,6 +455,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public CreateConnectionResponseContent build() { return new CreateConnectionResponseContent( name, @@ -456,6 +481,7 @@ public CreateConnectionResponseContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/CreateCrossAppAccessResourceApp.java new file mode 100644 index 00000000..60cf3acc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCrossAppAccessResourceApp.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CreateCrossAppAccessResourceApp.Builder.class) +public final class CreateCrossAppAccessResourceApp { + private final CrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private CreateCrossAppAccessResourceApp( + CrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public CrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreateCrossAppAccessResourceApp && equalTo((CreateCrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CreateCrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status); + + Builder from(CreateCrossAppAccessResourceApp other); + } + + public interface _FinalStage { + CreateCrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private CrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CreateCrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public CreateCrossAppAccessResourceApp build() { + return new CreateCrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateIdentityAssertionAuthorizationGrant.java b/src/main/java/com/auth0/client/mgmt/types/CreateIdentityAssertionAuthorizationGrant.java new file mode 100644 index 00000000..6d815eef --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CreateIdentityAssertionAuthorizationGrant.java @@ -0,0 +1,128 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CreateIdentityAssertionAuthorizationGrant.Builder.class) +public final class CreateIdentityAssertionAuthorizationGrant { + private final boolean active; + + private final Map additionalProperties; + + private CreateIdentityAssertionAuthorizationGrant(boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return If set to true, the client can exchange ID-JAGs for access tokens. + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreateIdentityAssertionAuthorizationGrant + && equalTo((CreateIdentityAssertionAuthorizationGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CreateIdentityAssertionAuthorizationGrant other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ */ + _FinalStage active(boolean active); + + Builder from(CreateIdentityAssertionAuthorizationGrant other); + } + + public interface _FinalStage { + CreateIdentityAssertionAuthorizationGrant build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CreateIdentityAssertionAuthorizationGrant other) { + active(other.getActive()); + return this; + } + + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public CreateIdentityAssertionAuthorizationGrant build() { + return new CreateIdentityAssertionAuthorizationGrant(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceApp.java new file mode 100644 index 00000000..caa3160c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceApp.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CrossAppAccessResourceApp.Builder.class) +public final class CrossAppAccessResourceApp { + private final CrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private CrossAppAccessResourceApp( + CrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public CrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CrossAppAccessResourceApp && equalTo((CrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status); + + Builder from(CrossAppAccessResourceApp other); + } + + public interface _FinalStage { + CrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private CrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public CrossAppAccessResourceApp build() { + return new CrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceAppStatusEnum.java b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceAppStatusEnum.java new file mode 100644 index 00000000..f7caaf76 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessResourceAppStatusEnum.java @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class CrossAppAccessResourceAppStatusEnum { + public static final CrossAppAccessResourceAppStatusEnum ENABLED = + new CrossAppAccessResourceAppStatusEnum(Value.ENABLED, "enabled"); + + public static final CrossAppAccessResourceAppStatusEnum DISABLED = + new CrossAppAccessResourceAppStatusEnum(Value.DISABLED, "disabled"); + + private final Value value; + + private final String string; + + CrossAppAccessResourceAppStatusEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof CrossAppAccessResourceAppStatusEnum + && this.string.equals(((CrossAppAccessResourceAppStatusEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ENABLED: + return visitor.visitEnabled(); + case DISABLED: + return visitor.visitDisabled(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static CrossAppAccessResourceAppStatusEnum valueOf(String value) { + switch (value) { + case "enabled": + return ENABLED; + case "disabled": + return DISABLED; + default: + return new CrossAppAccessResourceAppStatusEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ENABLED, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitEnabled(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java index 26ba4168..d9fbae0d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java @@ -10,10 +10,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.Optional; import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @@ -27,6 +29,8 @@ public final class GetBrandingDefaultThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private GetBrandingDefaultThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private GetBrandingDefaultThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -112,6 +123,7 @@ private boolean equalTo(GetBrandingDefaultThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -124,6 +136,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -180,6 +193,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -206,6 +223,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,6 +236,7 @@ public Builder from(GetBrandingDefaultThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -280,10 +300,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public GetBrandingDefaultThemeResponseContent build() { return new GetBrandingDefaultThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java index 3a5eee56..7c5086f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java @@ -10,10 +10,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.Optional; import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @@ -27,6 +29,8 @@ public final class GetBrandingThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private GetBrandingThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private GetBrandingThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -111,6 +122,7 @@ private boolean equalTo(GetBrandingThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -123,6 +135,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -179,6 +192,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -205,6 +222,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -216,6 +235,7 @@ public Builder from(GetBrandingThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -279,10 +299,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public GetBrandingThemeResponseContent build() { return new GetBrandingThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java index 33b4da23..2393fa70 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java @@ -134,6 +134,8 @@ public final class GetClientResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private GetClientResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private GetClientResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(GetClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(GetClientResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public GetClientResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java index b6f35694..de53c143 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java @@ -48,6 +48,8 @@ public final class GetConnectionResponseContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private GetConnectionResponseContent( @@ -64,6 +66,7 @@ private GetConnectionResponseContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -78,6 +81,7 @@ private GetConnectionResponseContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -170,6 +174,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -194,7 +203,8 @@ private boolean equalTo(GetConnectionResponseContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -212,7 +222,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -252,6 +263,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -271,6 +284,7 @@ public Builder from(GetConnectionResponseContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -441,6 +455,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public GetConnectionResponseContent build() { return new GetConnectionResponseContent( name, @@ -456,6 +481,7 @@ public GetConnectionResponseContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java index 237791f1..8acf25af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java @@ -50,6 +50,8 @@ public final class GetSessionResponseContent { private final OptionalNullable> sessionMetadata; + private final Optional actor; + private final Map additionalProperties; private GetSessionResponseContent( @@ -66,6 +68,7 @@ private GetSessionResponseContent( Optional authentication, Optional cookie, OptionalNullable> sessionMetadata, + Optional actor, Map additionalProperties) { this.id = id; this.userId = userId; @@ -80,6 +83,7 @@ private GetSessionResponseContent( this.authentication = authentication; this.cookie = cookie; this.sessionMetadata = sessionMetadata; + this.actor = actor; this.additionalProperties = additionalProperties; } @@ -161,6 +165,11 @@ public OptionalNullable> getSessionMetadata() { return sessionMetadata; } + @JsonProperty("actor") + public Optional getActor() { + return actor; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_metadata") private OptionalNullable> _getSessionMetadata() { @@ -191,7 +200,8 @@ private boolean equalTo(GetSessionResponseContent other) { && clients.equals(other.clients) && authentication.equals(other.authentication) && cookie.equals(other.cookie) - && sessionMetadata.equals(other.sessionMetadata); + && sessionMetadata.equals(other.sessionMetadata) + && actor.equals(other.actor); } @java.lang.Override @@ -209,7 +219,8 @@ public int hashCode() { this.clients, this.authentication, this.cookie, - this.sessionMetadata); + this.sessionMetadata, + this.actor); } @java.lang.Override @@ -249,6 +260,8 @@ public static final class Builder { private OptionalNullable> sessionMetadata = OptionalNullable.absent(); + private Optional actor = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -268,6 +281,7 @@ public Builder from(GetSessionResponseContent other) { authentication(other.getAuthentication()); cookie(other.getCookie()); sessionMetadata(other.getSessionMetadata()); + actor(other.getActor()); return this; } @@ -443,6 +457,17 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable actor) { + this.actor = actor; + return this; + } + + public Builder actor(SessionActorMetadata actor) { + this.actor = Optional.ofNullable(actor); + return this; + } + public GetSessionResponseContent build() { return new GetSessionResponseContent( id, @@ -458,6 +483,7 @@ public GetSessionResponseContent build() { authentication, cookie, sessionMetadata, + actor, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/IdentityAssertionAuthorizationGrant.java b/src/main/java/com/auth0/client/mgmt/types/IdentityAssertionAuthorizationGrant.java new file mode 100644 index 00000000..08ab976d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/IdentityAssertionAuthorizationGrant.java @@ -0,0 +1,128 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = IdentityAssertionAuthorizationGrant.Builder.class) +public final class IdentityAssertionAuthorizationGrant { + private final boolean active; + + private final Map additionalProperties; + + private IdentityAssertionAuthorizationGrant(boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return If set to true, the client can exchange ID-JAGs for access tokens. + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof IdentityAssertionAuthorizationGrant + && equalTo((IdentityAssertionAuthorizationGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(IdentityAssertionAuthorizationGrant other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ */ + _FinalStage active(boolean active); + + Builder from(IdentityAssertionAuthorizationGrant other); + } + + public interface _FinalStage { + IdentityAssertionAuthorizationGrant build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(IdentityAssertionAuthorizationGrant other) { + active(other.getActive()); + return this; + } + + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public IdentityAssertionAuthorizationGrant build() { + return new IdentityAssertionAuthorizationGrant(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java index 044877b8..426bd2d5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java @@ -167,7 +167,7 @@ public OptionalNullable getAppType() { } /** - * @return Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. + * @return Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("external_client_id") @@ -612,7 +612,7 @@ public Builder appType(com.auth0.client.mgmt.core.Nullable appType) { } /** - *

Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.

+ *

Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.

*/ @JsonSetter(value = "external_client_id", nulls = Nulls.SKIP) public Builder externalClientId(@Nullable OptionalNullable externalClientId) { diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java index d13d3585..dfa7d242 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java @@ -134,6 +134,8 @@ public final class RotateClientSecretResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private RotateClientSecretResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private RotateClientSecretResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(RotateClientSecretResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(RotateClientSecretResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public RotateClientSecretResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionActorClaimValue.java b/src/main/java/com/auth0/client/mgmt/types/SessionActorClaimValue.java new file mode 100644 index 00000000..99859a91 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/SessionActorClaimValue.java @@ -0,0 +1,105 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = SessionActorClaimValue.Deserializer.class) +public final class SessionActorClaimValue { + private final Object value; + + private final int type; + + private SessionActorClaimValue(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((boolean) this.value); + } else if (this.type == 2) { + return visitor.visit((double) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof SessionActorClaimValue && equalTo((SessionActorClaimValue) other); + } + + private boolean equalTo(SessionActorClaimValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static SessionActorClaimValue of(String value) { + return new SessionActorClaimValue(value, 0); + } + + public static SessionActorClaimValue of(boolean value) { + return new SessionActorClaimValue(value, 1); + } + + public static SessionActorClaimValue of(double value) { + return new SessionActorClaimValue(value, 2); + } + + public interface Visitor { + T visit(String value); + + T visit(boolean value); + + T visit(double value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(SessionActorClaimValue.class); + } + + @java.lang.Override + public SessionActorClaimValue deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Boolean) { + return of((Boolean) value); + } + if (value instanceof Double) { + return of((Double) value); + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionActorMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionActorMetadata.java new file mode 100644 index 00000000..dea0963c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/SessionActorMetadata.java @@ -0,0 +1,128 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = SessionActorMetadata.Builder.class) +public final class SessionActorMetadata { + private final String sub; + + private final Map additionalProperties; + + private SessionActorMetadata(String sub, Map additionalProperties) { + this.sub = sub; + this.additionalProperties = additionalProperties; + } + + /** + * @return Subject identifier of the actor + */ + @JsonProperty("sub") + public String getSub() { + return sub; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof SessionActorMetadata && equalTo((SessionActorMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(SessionActorMetadata other) { + return sub.equals(other.sub); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.sub); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static SubStage builder() { + return new Builder(); + } + + public interface SubStage { + /** + *

Subject identifier of the actor

+ */ + _FinalStage sub(@NotNull String sub); + + Builder from(SessionActorMetadata other); + } + + public interface _FinalStage { + SessionActorMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements SubStage, _FinalStage { + private String sub; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(SessionActorMetadata other) { + sub(other.getSub()); + return this; + } + + /** + *

Subject identifier of the actor

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("sub") + public _FinalStage sub(@NotNull String sub) { + this.sub = Objects.requireNonNull(sub, "sub must not be null"); + return this; + } + + @java.lang.Override + public SessionActorMetadata build() { + return new SessionActorMetadata(sub, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java index 49a66ea1..40fdb414 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java @@ -50,6 +50,8 @@ public final class SessionResponseContent { private final OptionalNullable> sessionMetadata; + private final Optional actor; + private final Map additionalProperties; private SessionResponseContent( @@ -66,6 +68,7 @@ private SessionResponseContent( Optional authentication, Optional cookie, OptionalNullable> sessionMetadata, + Optional actor, Map additionalProperties) { this.id = id; this.userId = userId; @@ -80,6 +83,7 @@ private SessionResponseContent( this.authentication = authentication; this.cookie = cookie; this.sessionMetadata = sessionMetadata; + this.actor = actor; this.additionalProperties = additionalProperties; } @@ -161,6 +165,11 @@ public OptionalNullable> getSessionMetadata() { return sessionMetadata; } + @JsonProperty("actor") + public Optional getActor() { + return actor; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_metadata") private OptionalNullable> _getSessionMetadata() { @@ -191,7 +200,8 @@ private boolean equalTo(SessionResponseContent other) { && clients.equals(other.clients) && authentication.equals(other.authentication) && cookie.equals(other.cookie) - && sessionMetadata.equals(other.sessionMetadata); + && sessionMetadata.equals(other.sessionMetadata) + && actor.equals(other.actor); } @java.lang.Override @@ -209,7 +219,8 @@ public int hashCode() { this.clients, this.authentication, this.cookie, - this.sessionMetadata); + this.sessionMetadata, + this.actor); } @java.lang.Override @@ -249,6 +260,8 @@ public static final class Builder { private OptionalNullable> sessionMetadata = OptionalNullable.absent(); + private Optional actor = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -268,6 +281,7 @@ public Builder from(SessionResponseContent other) { authentication(other.getAuthentication()); cookie(other.getCookie()); sessionMetadata(other.getSessionMetadata()); + actor(other.getActor()); return this; } @@ -443,6 +457,17 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable actor) { + this.actor = actor; + return this; + } + + public Builder actor(SessionActorMetadata actor) { + this.actor = Optional.ofNullable(actor); + return this; + } + public SessionResponseContent build() { return new SessionResponseContent( id, @@ -458,6 +483,7 @@ public SessionResponseContent build() { authentication, cookie, sessionMetadata, + actor, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreCustomTokenExchangeStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreCustomTokenExchangeStage.java new file mode 100644 index 00000000..e9cd02c8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreCustomTokenExchangeStage.java @@ -0,0 +1,141 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = SuspiciousIpThrottlingPreCustomTokenExchangeStage.Builder.class) +public final class SuspiciousIpThrottlingPreCustomTokenExchangeStage { + private final Optional maxAttempts; + + private final Optional rate; + + private final Map additionalProperties; + + private SuspiciousIpThrottlingPreCustomTokenExchangeStage( + Optional maxAttempts, Optional rate, Map additionalProperties) { + this.maxAttempts = maxAttempts; + this.rate = rate; + this.additionalProperties = additionalProperties; + } + + /** + * @return Total number of attempts allowed. + */ + @JsonProperty("max_attempts") + public Optional getMaxAttempts() { + return maxAttempts; + } + + /** + * @return Interval of time, given in milliseconds, at which new attempts are granted. + */ + @JsonProperty("rate") + public Optional getRate() { + return rate; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof SuspiciousIpThrottlingPreCustomTokenExchangeStage + && equalTo((SuspiciousIpThrottlingPreCustomTokenExchangeStage) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(SuspiciousIpThrottlingPreCustomTokenExchangeStage other) { + return maxAttempts.equals(other.maxAttempts) && rate.equals(other.rate); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.maxAttempts, this.rate); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional maxAttempts = Optional.empty(); + + private Optional rate = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(SuspiciousIpThrottlingPreCustomTokenExchangeStage other) { + maxAttempts(other.getMaxAttempts()); + rate(other.getRate()); + return this; + } + + /** + *

Total number of attempts allowed.

+ */ + @JsonSetter(value = "max_attempts", nulls = Nulls.SKIP) + public Builder maxAttempts(Optional maxAttempts) { + this.maxAttempts = maxAttempts; + return this; + } + + public Builder maxAttempts(Integer maxAttempts) { + this.maxAttempts = Optional.ofNullable(maxAttempts); + return this; + } + + /** + *

Interval of time, given in milliseconds, at which new attempts are granted.

+ */ + @JsonSetter(value = "rate", nulls = Nulls.SKIP) + public Builder rate(Optional rate) { + this.rate = rate; + return this; + } + + public Builder rate(Integer rate) { + this.rate = Optional.ofNullable(rate); + return this; + } + + public SuspiciousIpThrottlingPreCustomTokenExchangeStage build() { + return new SuspiciousIpThrottlingPreCustomTokenExchangeStage(maxAttempts, rate, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java index 8a22c967..0c8ed619 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java @@ -24,14 +24,18 @@ public final class SuspiciousIpThrottlingStage { private final Optional preUserRegistration; + private final Optional preCustomTokenExchange; + private final Map additionalProperties; private SuspiciousIpThrottlingStage( Optional preLogin, Optional preUserRegistration, + Optional preCustomTokenExchange, Map additionalProperties) { this.preLogin = preLogin; this.preUserRegistration = preUserRegistration; + this.preCustomTokenExchange = preCustomTokenExchange; this.additionalProperties = additionalProperties; } @@ -45,6 +49,11 @@ public Optional getPreUserRegist return preUserRegistration; } + @JsonProperty("pre-custom-token-exchange") + public Optional getPreCustomTokenExchange() { + return preCustomTokenExchange; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -57,12 +66,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(SuspiciousIpThrottlingStage other) { - return preLogin.equals(other.preLogin) && preUserRegistration.equals(other.preUserRegistration); + return preLogin.equals(other.preLogin) + && preUserRegistration.equals(other.preUserRegistration) + && preCustomTokenExchange.equals(other.preCustomTokenExchange); } @java.lang.Override public int hashCode() { - return Objects.hash(this.preLogin, this.preUserRegistration); + return Objects.hash(this.preLogin, this.preUserRegistration, this.preCustomTokenExchange); } @java.lang.Override @@ -80,6 +91,8 @@ public static final class Builder { private Optional preUserRegistration = Optional.empty(); + private Optional preCustomTokenExchange = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -88,6 +101,7 @@ private Builder() {} public Builder from(SuspiciousIpThrottlingStage other) { preLogin(other.getPreLogin()); preUserRegistration(other.getPreUserRegistration()); + preCustomTokenExchange(other.getPreCustomTokenExchange()); return this; } @@ -114,8 +128,22 @@ public Builder preUserRegistration(SuspiciousIpThrottlingPreUserRegistrationStag return this; } + @JsonSetter(value = "pre-custom-token-exchange", nulls = Nulls.SKIP) + public Builder preCustomTokenExchange( + Optional preCustomTokenExchange) { + this.preCustomTokenExchange = preCustomTokenExchange; + return this; + } + + public Builder preCustomTokenExchange( + SuspiciousIpThrottlingPreCustomTokenExchangeStage preCustomTokenExchange) { + this.preCustomTokenExchange = Optional.ofNullable(preCustomTokenExchange); + return this; + } + public SuspiciousIpThrottlingStage build() { - return new SuspiciousIpThrottlingStage(preLogin, preUserRegistration, additionalProperties); + return new SuspiciousIpThrottlingStage( + preLogin, preUserRegistration, preCustomTokenExchange, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ThirdPartyClientAccessConfig.java b/src/main/java/com/auth0/client/mgmt/types/ThirdPartyClientAccessConfig.java new file mode 100644 index 00000000..895d0d70 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ThirdPartyClientAccessConfig.java @@ -0,0 +1,127 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ThirdPartyClientAccessConfig.Builder.class) +public final class ThirdPartyClientAccessConfig { + private final boolean allowConfiguration; + + private final Map additionalProperties; + + private ThirdPartyClientAccessConfig(boolean allowConfiguration, Map additionalProperties) { + this.allowConfiguration = allowConfiguration; + this.additionalProperties = additionalProperties; + } + + /** + * @return Whether third-party applications can configure the connection as a domain-level connection during the Self-Service Enterprise Configuration flow. + */ + @JsonProperty("allow_configuration") + public boolean getAllowConfiguration() { + return allowConfiguration; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ThirdPartyClientAccessConfig && equalTo((ThirdPartyClientAccessConfig) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ThirdPartyClientAccessConfig other) { + return allowConfiguration == other.allowConfiguration; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.allowConfiguration); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AllowConfigurationStage builder() { + return new Builder(); + } + + public interface AllowConfigurationStage { + /** + *

Whether third-party applications can configure the connection as a domain-level connection during the Self-Service Enterprise Configuration flow.

+ */ + _FinalStage allowConfiguration(boolean allowConfiguration); + + Builder from(ThirdPartyClientAccessConfig other); + } + + public interface _FinalStage { + ThirdPartyClientAccessConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AllowConfigurationStage, _FinalStage { + private boolean allowConfiguration; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ThirdPartyClientAccessConfig other) { + allowConfiguration(other.getAllowConfiguration()); + return this; + } + + /** + *

Whether third-party applications can configure the connection as a domain-level connection during the Self-Service Enterprise Configuration flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("allow_configuration") + public _FinalStage allowConfiguration(boolean allowConfiguration) { + this.allowConfiguration = allowConfiguration; + return this; + } + + @java.lang.Override + public ThirdPartyClientAccessConfig build() { + return new ThirdPartyClientAccessConfig(allowConfiguration, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java index 40ef670c..bddfd226 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java @@ -10,10 +10,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.Optional; import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @@ -27,6 +29,8 @@ public final class UpdateBrandingThemeResponseContent { private final BrandingThemeFonts fonts; + private final Optional identifiers; + private final BrandingThemePageBackground pageBackground; private final String themeId; @@ -40,6 +44,7 @@ private UpdateBrandingThemeResponseContent( BrandingThemeColors colors, String displayName, BrandingThemeFonts fonts, + Optional identifiers, BrandingThemePageBackground pageBackground, String themeId, BrandingThemeWidget widget, @@ -48,6 +53,7 @@ private UpdateBrandingThemeResponseContent( this.colors = colors; this.displayName = displayName; this.fonts = fonts; + this.identifiers = identifiers; this.pageBackground = pageBackground; this.themeId = themeId; this.widget = widget; @@ -77,6 +83,11 @@ public BrandingThemeFonts getFonts() { return fonts; } + @JsonProperty("identifiers") + public Optional getIdentifiers() { + return identifiers; + } + @JsonProperty("page_background") public BrandingThemePageBackground getPageBackground() { return pageBackground; @@ -112,6 +123,7 @@ private boolean equalTo(UpdateBrandingThemeResponseContent other) { && colors.equals(other.colors) && displayName.equals(other.displayName) && fonts.equals(other.fonts) + && identifiers.equals(other.identifiers) && pageBackground.equals(other.pageBackground) && themeId.equals(other.themeId) && widget.equals(other.widget); @@ -124,6 +136,7 @@ public int hashCode() { this.colors, this.displayName, this.fonts, + this.identifiers, this.pageBackground, this.themeId, this.widget); @@ -180,6 +193,10 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage identifiers(Optional identifiers); + + _FinalStage identifiers(BrandingThemeIdentifiers identifiers); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -206,6 +223,8 @@ public static final class Builder private BrandingThemeWidget widget; + private Optional identifiers = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,6 +236,7 @@ public Builder from(UpdateBrandingThemeResponseContent other) { colors(other.getColors()); displayName(other.getDisplayName()); fonts(other.getFonts()); + identifiers(other.getIdentifiers()); pageBackground(other.getPageBackground()); themeId(other.getThemeId()); widget(other.getWidget()); @@ -280,10 +300,31 @@ public _FinalStage widget(@NotNull BrandingThemeWidget widget) { return this; } + @java.lang.Override + public _FinalStage identifiers(BrandingThemeIdentifiers identifiers) { + this.identifiers = Optional.ofNullable(identifiers); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) + public _FinalStage identifiers(Optional identifiers) { + this.identifiers = identifiers; + return this; + } + @java.lang.Override public UpdateBrandingThemeResponseContent build() { return new UpdateBrandingThemeResponseContent( - borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); + borders, + colors, + displayName, + fonts, + identifiers, + pageBackground, + themeId, + widget, + additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java index e6159838..e9e9631e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java @@ -82,6 +82,8 @@ public final class UpdateClientRequestContent { private final OptionalNullable tokenQuota; + private final OptionalNullable identityAssertionAuthorizationGrant; + private final Optional formTemplate; private final Optional addons; @@ -166,6 +168,7 @@ private UpdateClientRequestContent( Optional customLoginPage, Optional customLoginPagePreview, OptionalNullable tokenQuota, + OptionalNullable identityAssertionAuthorizationGrant, Optional formTemplate, Optional addons, Optional> clientMetadata, @@ -222,6 +225,7 @@ private UpdateClientRequestContent( this.customLoginPage = customLoginPage; this.customLoginPagePreview = customLoginPagePreview; this.tokenQuota = tokenQuota; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.formTemplate = formTemplate; this.addons = addons; this.clientMetadata = clientMetadata; @@ -485,6 +489,15 @@ public OptionalNullable getTokenQuota() { return tokenQuota; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("identity_assertion_authorization_grant") + public OptionalNullable getIdentityAssertionAuthorizationGrant() { + if (identityAssertionAuthorizationGrant == null) { + return OptionalNullable.absent(); + } + return identityAssertionAuthorizationGrant; + } + /** * @return Form template for WS-Federation protocol */ @@ -731,6 +744,12 @@ private OptionalNullable _getTokenQuota() { return tokenQuota; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("identity_assertion_authorization_grant") + private OptionalNullable _getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("native_social_login") private OptionalNullable _getNativeSocialLogin() { @@ -862,6 +881,7 @@ private boolean equalTo(UpdateClientRequestContent other) { && customLoginPage.equals(other.customLoginPage) && customLoginPagePreview.equals(other.customLoginPagePreview) && tokenQuota.equals(other.tokenQuota) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && formTemplate.equals(other.formTemplate) && addons.equals(other.addons) && clientMetadata.equals(other.clientMetadata) @@ -923,6 +943,7 @@ public int hashCode() { this.customLoginPage, this.customLoginPagePreview, this.tokenQuota, + this.identityAssertionAuthorizationGrant, this.formTemplate, this.addons, this.clientMetadata, @@ -1021,6 +1042,9 @@ public static final class Builder { private OptionalNullable tokenQuota = OptionalNullable.absent(); + private OptionalNullable identityAssertionAuthorizationGrant = + OptionalNullable.absent(); + private Optional formTemplate = Optional.empty(); private Optional addons = Optional.empty(); @@ -1113,6 +1137,7 @@ public Builder from(UpdateClientRequestContent other) { customLoginPage(other.getCustomLoginPage()); customLoginPagePreview(other.getCustomLoginPagePreview()); tokenQuota(other.getTokenQuota()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); formTemplate(other.getFormTemplate()); addons(other.getAddons()); clientMetadata(other.getClientMetadata()); @@ -1634,6 +1659,46 @@ public Builder tokenQuota(com.auth0.client.mgmt.core.Nullable return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + @Nullable + OptionalNullable + identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + UpdateIdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = OptionalNullable.of(identityAssertionAuthorizationGrant); + return this; + } + + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + if (identityAssertionAuthorizationGrant.isPresent()) { + this.identityAssertionAuthorizationGrant = + OptionalNullable.of(identityAssertionAuthorizationGrant.get()); + } else { + this.identityAssertionAuthorizationGrant = OptionalNullable.absent(); + } + return this; + } + + public Builder identityAssertionAuthorizationGrant( + com.auth0.client.mgmt.core.Nullable + identityAssertionAuthorizationGrant) { + if (identityAssertionAuthorizationGrant.isNull()) { + this.identityAssertionAuthorizationGrant = OptionalNullable.ofNull(); + } else if (identityAssertionAuthorizationGrant.isEmpty()) { + this.identityAssertionAuthorizationGrant = OptionalNullable.absent(); + } else { + this.identityAssertionAuthorizationGrant = + OptionalNullable.of(identityAssertionAuthorizationGrant.get()); + } + return this; + } + /** *

Form template for WS-Federation protocol

*/ @@ -2316,6 +2381,7 @@ public UpdateClientRequestContent build() { customLoginPage, customLoginPagePreview, tokenQuota, + identityAssertionAuthorizationGrant, formTemplate, addons, clientMetadata, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java index 05f995ff..fbe8087f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java @@ -134,6 +134,8 @@ public final class UpdateClientResponseContent { private final Optional myOrganizationConfiguration; + private final Optional identityAssertionAuthorizationGrant; + private final Optional thirdPartySecurityMode; private final Optional redirectionPolicy; @@ -208,6 +210,7 @@ private UpdateClientResponseContent( Optional tokenQuota, Optional expressConfiguration, Optional myOrganizationConfiguration, + Optional identityAssertionAuthorizationGrant, Optional thirdPartySecurityMode, Optional redirectionPolicy, Optional resourceServerIdentifier, @@ -272,6 +275,7 @@ private UpdateClientResponseContent( this.tokenQuota = tokenQuota; this.expressConfiguration = expressConfiguration; this.myOrganizationConfiguration = myOrganizationConfiguration; + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; this.thirdPartySecurityMode = thirdPartySecurityMode; this.redirectionPolicy = redirectionPolicy; this.resourceServerIdentifier = resourceServerIdentifier; @@ -685,6 +689,11 @@ public Optional getMyOrganizationConf return myOrganizationConfiguration; } + @JsonProperty("identity_assertion_authorization_grant") + public Optional getIdentityAssertionAuthorizationGrant() { + return identityAssertionAuthorizationGrant; + } + @JsonProperty("third_party_security_mode") public Optional getThirdPartySecurityMode() { return thirdPartySecurityMode; @@ -850,6 +859,7 @@ private boolean equalTo(UpdateClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && myOrganizationConfiguration.equals(other.myOrganizationConfiguration) + && identityAssertionAuthorizationGrant.equals(other.identityAssertionAuthorizationGrant) && thirdPartySecurityMode.equals(other.thirdPartySecurityMode) && redirectionPolicy.equals(other.redirectionPolicy) && resourceServerIdentifier.equals(other.resourceServerIdentifier) @@ -918,6 +928,7 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.myOrganizationConfiguration, + this.identityAssertionAuthorizationGrant, this.thirdPartySecurityMode, this.redirectionPolicy, this.resourceServerIdentifier, @@ -1050,6 +1061,8 @@ public static final class Builder { private Optional myOrganizationConfiguration = Optional.empty(); + private Optional identityAssertionAuthorizationGrant = Optional.empty(); + private Optional thirdPartySecurityMode = Optional.empty(); private Optional redirectionPolicy = Optional.empty(); @@ -1128,6 +1141,7 @@ public Builder from(UpdateClientResponseContent other) { tokenQuota(other.getTokenQuota()); expressConfiguration(other.getExpressConfiguration()); myOrganizationConfiguration(other.getMyOrganizationConfiguration()); + identityAssertionAuthorizationGrant(other.getIdentityAssertionAuthorizationGrant()); thirdPartySecurityMode(other.getThirdPartySecurityMode()); redirectionPolicy(other.getRedirectionPolicy()); resourceServerIdentifier(other.getResourceServerIdentifier()); @@ -2013,6 +2027,19 @@ public Builder myOrganizationConfiguration( return this; } + @JsonSetter(value = "identity_assertion_authorization_grant", nulls = Nulls.SKIP) + public Builder identityAssertionAuthorizationGrant( + Optional identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = identityAssertionAuthorizationGrant; + return this; + } + + public Builder identityAssertionAuthorizationGrant( + IdentityAssertionAuthorizationGrant identityAssertionAuthorizationGrant) { + this.identityAssertionAuthorizationGrant = Optional.ofNullable(identityAssertionAuthorizationGrant); + return this; + } + @JsonSetter(value = "third_party_security_mode", nulls = Nulls.SKIP) public Builder thirdPartySecurityMode(Optional thirdPartySecurityMode) { this.thirdPartySecurityMode = thirdPartySecurityMode; @@ -2170,6 +2197,7 @@ public UpdateClientResponseContent build() { tokenQuota, expressConfiguration, myOrganizationConfiguration, + identityAssertionAuthorizationGrant, thirdPartySecurityMode, redirectionPolicy, resourceServerIdentifier, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java index 350b4450..6853bb49 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java @@ -44,6 +44,8 @@ public final class UpdateConnectionRequestContent { private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Map additionalProperties; private UpdateConnectionRequestContent( @@ -57,6 +59,7 @@ private UpdateConnectionRequestContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Map additionalProperties) { this.displayName = displayName; this.options = options; @@ -68,6 +71,7 @@ private UpdateConnectionRequestContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -144,6 +148,15 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + public OptionalNullable getCrossAppAccessResourceApp() { + if (crossAppAccessResourceApp == null) { + return OptionalNullable.absent(); + } + return crossAppAccessResourceApp; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("options") private OptionalNullable _getOptions() { @@ -156,6 +169,12 @@ private OptionalNullable> _getEnabledClients() { return enabledClients; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + private OptionalNullable _getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -177,7 +196,8 @@ private boolean equalTo(UpdateConnectionRequestContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -192,7 +212,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -226,6 +247,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = OptionalNullable.absent(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -242,6 +265,7 @@ public Builder from(UpdateConnectionRequestContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -410,6 +434,39 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(UpdateCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp); + return this; + } + + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isPresent()) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } else { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } + return this; + } + + public Builder crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isNull()) { + this.crossAppAccessResourceApp = OptionalNullable.ofNull(); + } else if (crossAppAccessResourceApp.isEmpty()) { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } else { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } + return this; + } + public UpdateConnectionRequestContent build() { return new UpdateConnectionRequestContent( displayName, @@ -422,6 +479,7 @@ public UpdateConnectionRequestContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java index 05027d0b..e6551f71 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -18,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateConnectionRequestContentOidc.Builder.class) @@ -38,6 +40,8 @@ public final class UpdateConnectionRequestContentOidc implements IConnectionComm private final Optional crossAppAccessRequestingApp; + private final OptionalNullable crossAppAccessResourceApp; + private final Optional showAsButton; private final Map additionalProperties; @@ -51,6 +55,7 @@ private UpdateConnectionRequestContentOidc( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + OptionalNullable crossAppAccessResourceApp, Optional showAsButton, Map additionalProperties) { this.displayName = displayName; @@ -61,6 +66,7 @@ private UpdateConnectionRequestContentOidc( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -109,11 +115,26 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + public OptionalNullable getCrossAppAccessResourceApp() { + if (crossAppAccessResourceApp == null) { + return OptionalNullable.absent(); + } + return crossAppAccessResourceApp; + } + @JsonProperty("show_as_button") public Optional getShowAsButton() { return showAsButton; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("cross_app_access_resource_app") + private OptionalNullable _getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -135,6 +156,7 @@ private boolean equalTo(UpdateConnectionRequestContentOidc other) { && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp) && showAsButton.equals(other.showAsButton); } @@ -149,6 +171,7 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp, this.showAsButton); } @@ -179,6 +202,9 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private OptionalNullable crossAppAccessResourceApp = + OptionalNullable.absent(); + private Optional showAsButton = Optional.empty(); @JsonAnySetter @@ -195,6 +221,7 @@ public Builder from(UpdateConnectionRequestContentOidc other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); showAsButton(other.getShowAsButton()); return this; } @@ -287,6 +314,40 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp( + @Nullable OptionalNullable crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(ConnectionCrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp); + return this; + } + + public Builder crossAppAccessResourceApp( + Optional crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isPresent()) { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } else { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } + return this; + } + + public Builder crossAppAccessResourceApp( + com.auth0.client.mgmt.core.Nullable crossAppAccessResourceApp) { + if (crossAppAccessResourceApp.isNull()) { + this.crossAppAccessResourceApp = OptionalNullable.ofNull(); + } else if (crossAppAccessResourceApp.isEmpty()) { + this.crossAppAccessResourceApp = OptionalNullable.absent(); + } else { + this.crossAppAccessResourceApp = OptionalNullable.of(crossAppAccessResourceApp.get()); + } + return this; + } + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) public Builder showAsButton(Optional showAsButton) { this.showAsButton = showAsButton; @@ -308,6 +369,7 @@ public UpdateConnectionRequestContentOidc build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, showAsButton, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java index bcdd4cdf..10c1393c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java @@ -48,6 +48,8 @@ public final class UpdateConnectionResponseContent { private final Optional crossAppAccessRequestingApp; + private final Optional crossAppAccessResourceApp; + private final Map additionalProperties; private UpdateConnectionResponseContent( @@ -64,6 +66,7 @@ private UpdateConnectionResponseContent( Optional authentication, Optional connectedAccounts, Optional crossAppAccessRequestingApp, + Optional crossAppAccessResourceApp, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -78,6 +81,7 @@ private UpdateConnectionResponseContent( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.crossAppAccessRequestingApp = crossAppAccessRequestingApp; + this.crossAppAccessResourceApp = crossAppAccessResourceApp; this.additionalProperties = additionalProperties; } @@ -170,6 +174,11 @@ public Optional getCrossAppAccessRequestingApp() { return crossAppAccessRequestingApp; } + @JsonProperty("cross_app_access_resource_app") + public Optional getCrossAppAccessResourceApp() { + return crossAppAccessResourceApp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -194,7 +203,8 @@ private boolean equalTo(UpdateConnectionResponseContent other) { && metadata.equals(other.metadata) && authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) - && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp); + && crossAppAccessRequestingApp.equals(other.crossAppAccessRequestingApp) + && crossAppAccessResourceApp.equals(other.crossAppAccessResourceApp); } @java.lang.Override @@ -212,7 +222,8 @@ public int hashCode() { this.metadata, this.authentication, this.connectedAccounts, - this.crossAppAccessRequestingApp); + this.crossAppAccessRequestingApp, + this.crossAppAccessResourceApp); } @java.lang.Override @@ -252,6 +263,8 @@ public static final class Builder { private Optional crossAppAccessRequestingApp = Optional.empty(); + private Optional crossAppAccessResourceApp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -271,6 +284,7 @@ public Builder from(UpdateConnectionResponseContent other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); crossAppAccessRequestingApp(other.getCrossAppAccessRequestingApp()); + crossAppAccessResourceApp(other.getCrossAppAccessResourceApp()); return this; } @@ -441,6 +455,17 @@ public Builder crossAppAccessRequestingApp(CrossAppAccessRequestingApp crossAppA return this; } + @JsonSetter(value = "cross_app_access_resource_app", nulls = Nulls.SKIP) + public Builder crossAppAccessResourceApp(Optional crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = crossAppAccessResourceApp; + return this; + } + + public Builder crossAppAccessResourceApp(CrossAppAccessResourceApp crossAppAccessResourceApp) { + this.crossAppAccessResourceApp = Optional.ofNullable(crossAppAccessResourceApp); + return this; + } + public UpdateConnectionResponseContent build() { return new UpdateConnectionResponseContent( name, @@ -456,6 +481,7 @@ public UpdateConnectionResponseContent build() { authentication, connectedAccounts, crossAppAccessRequestingApp, + crossAppAccessResourceApp, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCrossAppAccessResourceApp.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCrossAppAccessResourceApp.java new file mode 100644 index 00000000..21a33078 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCrossAppAccessResourceApp.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateCrossAppAccessResourceApp.Builder.class) +public final class UpdateCrossAppAccessResourceApp { + private final CrossAppAccessResourceAppStatusEnum status; + + private final Map additionalProperties; + + private UpdateCrossAppAccessResourceApp( + CrossAppAccessResourceAppStatusEnum status, Map additionalProperties) { + this.status = status; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("status") + public CrossAppAccessResourceAppStatusEnum getStatus() { + return status; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateCrossAppAccessResourceApp && equalTo((UpdateCrossAppAccessResourceApp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateCrossAppAccessResourceApp other) { + return status.equals(other.status); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.status); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static StatusStage builder() { + return new Builder(); + } + + public interface StatusStage { + _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status); + + Builder from(UpdateCrossAppAccessResourceApp other); + } + + public interface _FinalStage { + UpdateCrossAppAccessResourceApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements StatusStage, _FinalStage { + private CrossAppAccessResourceAppStatusEnum status; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(UpdateCrossAppAccessResourceApp other) { + status(other.getStatus()); + return this; + } + + @java.lang.Override + @JsonSetter("status") + public _FinalStage status(@NotNull CrossAppAccessResourceAppStatusEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + public UpdateCrossAppAccessResourceApp build() { + return new UpdateCrossAppAccessResourceApp(status, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateIdentityAssertionAuthorizationGrant.java b/src/main/java/com/auth0/client/mgmt/types/UpdateIdentityAssertionAuthorizationGrant.java new file mode 100644 index 00000000..254be7f4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateIdentityAssertionAuthorizationGrant.java @@ -0,0 +1,128 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateIdentityAssertionAuthorizationGrant.Builder.class) +public final class UpdateIdentityAssertionAuthorizationGrant { + private final boolean active; + + private final Map additionalProperties; + + private UpdateIdentityAssertionAuthorizationGrant(boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return If set to true, the client can exchange ID-JAGs for access tokens. + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateIdentityAssertionAuthorizationGrant + && equalTo((UpdateIdentityAssertionAuthorizationGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateIdentityAssertionAuthorizationGrant other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ */ + _FinalStage active(boolean active); + + Builder from(UpdateIdentityAssertionAuthorizationGrant other); + } + + public interface _FinalStage { + UpdateIdentityAssertionAuthorizationGrant build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(UpdateIdentityAssertionAuthorizationGrant other) { + active(other.getActive()); + return this; + } + + /** + *

If set to true, the client can exchange ID-JAGs for access tokens.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public UpdateIdentityAssertionAuthorizationGrant build() { + return new UpdateIdentityAssertionAuthorizationGrant(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java index 2ac2fa6d..1eb45cda 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java @@ -50,6 +50,8 @@ public final class UpdateSessionResponseContent { private final OptionalNullable> sessionMetadata; + private final Optional actor; + private final Map additionalProperties; private UpdateSessionResponseContent( @@ -66,6 +68,7 @@ private UpdateSessionResponseContent( Optional authentication, Optional cookie, OptionalNullable> sessionMetadata, + Optional actor, Map additionalProperties) { this.id = id; this.userId = userId; @@ -80,6 +83,7 @@ private UpdateSessionResponseContent( this.authentication = authentication; this.cookie = cookie; this.sessionMetadata = sessionMetadata; + this.actor = actor; this.additionalProperties = additionalProperties; } @@ -161,6 +165,11 @@ public OptionalNullable> getSessionMetadata() { return sessionMetadata; } + @JsonProperty("actor") + public Optional getActor() { + return actor; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_metadata") private OptionalNullable> _getSessionMetadata() { @@ -191,7 +200,8 @@ private boolean equalTo(UpdateSessionResponseContent other) { && clients.equals(other.clients) && authentication.equals(other.authentication) && cookie.equals(other.cookie) - && sessionMetadata.equals(other.sessionMetadata); + && sessionMetadata.equals(other.sessionMetadata) + && actor.equals(other.actor); } @java.lang.Override @@ -209,7 +219,8 @@ public int hashCode() { this.clients, this.authentication, this.cookie, - this.sessionMetadata); + this.sessionMetadata, + this.actor); } @java.lang.Override @@ -249,6 +260,8 @@ public static final class Builder { private OptionalNullable> sessionMetadata = OptionalNullable.absent(); + private Optional actor = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -268,6 +281,7 @@ public Builder from(UpdateSessionResponseContent other) { authentication(other.getAuthentication()); cookie(other.getCookie()); sessionMetadata(other.getSessionMetadata()); + actor(other.getActor()); return this; } @@ -443,6 +457,17 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable actor) { + this.actor = actor; + return this; + } + + public Builder actor(SessionActorMetadata actor) { + this.actor = Optional.ofNullable(actor); + return this; + } + public UpdateSessionResponseContent build() { return new UpdateSessionResponseContent( id, @@ -458,6 +483,7 @@ public UpdateSessionResponseContent build() { authentication, cookie, sessionMetadata, + actor, additionalProperties); } diff --git a/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java b/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java index 7caa8b9a..5a75a05e 100644 --- a/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/AttackProtectionSuspiciousIpThrottlingWireTest.java @@ -40,7 +40,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1}}}")); + "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1},\"pre-custom-token-exchange\":{\"max_attempts\":1,\"rate\":1}}}")); GetSuspiciousIpThrottlingSettingsResponseContent response = client.attackProtection().suspiciousIpThrottling().get(); RecordedRequest request = server.takeRequest(); @@ -67,6 +67,10 @@ public void testGet() throws Exception { + " \"pre-user-registration\": {\n" + " \"max_attempts\": 1,\n" + " \"rate\": 1\n" + + " },\n" + + " \"pre-custom-token-exchange\": {\n" + + " \"max_attempts\": 1,\n" + + " \"rate\": 1\n" + " }\n" + " }\n" + "}"; @@ -107,7 +111,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1}}}")); + "{\"enabled\":true,\"shields\":[\"block\"],\"allowlist\":[\"allowlist\"],\"stage\":{\"pre-login\":{\"max_attempts\":1,\"rate\":1},\"pre-user-registration\":{\"max_attempts\":1,\"rate\":1},\"pre-custom-token-exchange\":{\"max_attempts\":1,\"rate\":1}}}")); UpdateSuspiciousIpThrottlingSettingsResponseContent response = client.attackProtection() .suspiciousIpThrottling() .update(UpdateSuspiciousIpThrottlingSettingsRequestContent.builder() @@ -165,6 +169,10 @@ else if (actualJson.has("kind")) + " \"pre-user-registration\": {\n" + " \"max_attempts\": 1,\n" + " \"rate\": 1\n" + + " },\n" + + " \"pre-custom-token-exchange\": {\n" + + " \"max_attempts\": 1,\n" + + " \"rate\": 1\n" + " }\n" + " }\n" + "}"; diff --git a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java index 8dcb8309..1c7a502e 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java @@ -42,7 +42,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true}}],\"next\":\"next\"}")); + "{\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}],\"next\":\"next\"}")); SyncPagingIterable response = client.clients() .connections() .get( diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java index 01a2b409..95689f6c 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java @@ -49,7 +49,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"next\":\"next\",\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true}}]}")); + "{\"next\":\"next\",\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}]}")); SyncPagingIterable response = client.connections() .list(ListConnectionsQueryParameters.builder() .from("from") @@ -75,7 +75,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true}}")); + "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}")); CreateConnectionResponseContent response = client.connections() .create(CreateConnectionRequestContent.builder() .name("name") @@ -146,6 +146,9 @@ else if (actualJson.has("kind")) + " },\n" + " \"cross_app_access_requesting_app\": {\n" + " \"active\": true\n" + + " },\n" + + " \"cross_app_access_resource_app\": {\n" + + " \"status\": \"enabled\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); @@ -185,7 +188,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true}}")); + "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}")); GetConnectionResponseContent response = client.connections() .get( "id", @@ -229,6 +232,9 @@ public void testGet() throws Exception { + " },\n" + " \"cross_app_access_requesting_app\": {\n" + " \"active\": true\n" + + " },\n" + + " \"cross_app_access_resource_app\": {\n" + + " \"status\": \"enabled\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); @@ -277,7 +283,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true}}")); + "{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"enabled_clients\":[\"enabled_clients\"],\"is_domain_connection\":true,\"show_as_button\":true,\"metadata\":{\"key\":\"value\"},\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true,\"cross_app_access\":true},\"cross_app_access_requesting_app\":{\"active\":true},\"cross_app_access_resource_app\":{\"status\":\"enabled\"}}")); UpdateConnectionResponseContent response = client.connections() .update("id", UpdateConnectionRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -345,6 +351,9 @@ else if (actualJson.has("kind")) + " },\n" + " \"cross_app_access_requesting_app\": {\n" + " \"active\": true\n" + + " },\n" + + " \"cross_app_access_resource_app\": {\n" + + " \"status\": \"enabled\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); diff --git a/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java b/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java index d44419d2..0ff88343 100644 --- a/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/SessionsWireTest.java @@ -40,7 +40,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"}}")); + "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"},\"actor\":{\"sub\":\"sub\"}}")); GetSessionResponseContent response = client.sessions().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -82,6 +82,9 @@ public void testGet() throws Exception { + " },\n" + " \"session_metadata\": {\n" + " \"key\": \"value\"\n" + + " },\n" + + " \"actor\": {\n" + + " \"sub\": \"sub\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); @@ -130,7 +133,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"}}")); + "{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"device\":{\"initial_user_agent\":\"initial_user_agent\",\"initial_ip\":\"initial_ip\",\"initial_asn\":\"initial_asn\",\"last_user_agent\":\"last_user_agent\",\"last_ip\":\"last_ip\",\"last_asn\":\"last_asn\"},\"clients\":[{\"client_id\":\"client_id\"}],\"authentication\":{\"methods\":[{}]},\"cookie\":{\"mode\":\"non-persistent\"},\"session_metadata\":{\"key\":\"value\"},\"actor\":{\"sub\":\"sub\"}}")); UpdateSessionResponseContent response = client.sessions() .update("id", UpdateSessionRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -202,6 +205,9 @@ else if (actualJson.has("kind")) + " },\n" + " \"session_metadata\": {\n" + " \"key\": \"value\"\n" + + " },\n" + + " \"actor\": {\n" + + " \"sub\": \"sub\"\n" + " }\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); diff --git a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java index 97409e06..90ed1bc7 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java @@ -40,7 +40,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"sessions\":[{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"clients\":[{}],\"session_metadata\":{\"key\":\"value\"}}],\"next\":\"next\"}")); + "{\"sessions\":[{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"authenticated_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"last_interacted_at\":\"2024-01-15T09:30:00Z\",\"clients\":[{}],\"session_metadata\":{\"key\":\"value\"},\"actor\":{\"sub\":\"sub\"}}],\"next\":\"next\"}")); SyncPagingIterable response = client.users() .sessions() .list( diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json index c42b4ed9..684d7ff8 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testCreate_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json index c42b4ed9..684d7ff8 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testGetDefault_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json index c42b4ed9..684d7ff8 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testGet_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json index c42b4ed9..684d7ff8 100644 --- a/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/BrandingThemesWireTest_testUpdate_response.json @@ -62,6 +62,14 @@ "size": 1.1 } }, + "identifiers": { + "login_display": "separate", + "otp_autocomplete": true, + "phone_display": { + "formatting": "international", + "masking": "hide_country_code" + } + }, "page_background": { "background_color": "background_color", "background_image_url": "background_image_url", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json index c02c3063..69e76cf5 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json index c02c3063..69e76cf5 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testList_response.json b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json index e1320f40..101ff956 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testList_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json @@ -97,6 +97,9 @@ ], "connection_deletion_behavior": "allow" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json index c02c3063..69e76cf5 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json index c02c3063..69e76cf5 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -389,6 +389,9 @@ "connection_deletion_behavior": "allow", "invitation_landing_client_id": "invitation_landing_client_id" }, + "identity_assertion_authorization_grant": { + "active": true + }, "third_party_security_mode": "strict", "redirection_policy": "allow_always", "resource_server_identifier": "resource_server_identifier", From 6d4d1916dfd68799abe29b9b73d2ad88a474ab1e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 18:22:54 +0530 Subject: [PATCH 08/13] Bump actions/setup-java from 5.3.0 to 5.6.0 (#903) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tanya Sinha --- .github/workflows/build-and-test.yml | 2 +- .github/workflows/rl-scanner.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index eed92317..8df60696 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - - uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 + - uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 with: distribution: temurin java-version: 8 diff --git a/.github/workflows/rl-scanner.yml b/.github/workflows/rl-scanner.yml index 2abc5e83..2b53f6f4 100644 --- a/.github/workflows/rl-scanner.yml +++ b/.github/workflows/rl-scanner.yml @@ -38,7 +38,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Set up Java - uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 + uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 with: distribution: temurin java-version: ${{ inputs.java-version }} From 302085aced5a4e60c723baabb0e253c62407d907 Mon Sep 17 00:00:00 2001 From: Tanya Sinha Date: Wed, 22 Jul 2026 18:31:50 +0530 Subject: [PATCH 09/13] Release 4.1.0 (#907) --- .version | 2 +- CHANGELOG.md | 7 +++++++ README.md | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.version b/.version index fcdb2e10..ee74734a 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -4.0.0 +4.1.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index e48ee533..db4f3e0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## [4.1.0](https://github.com/auth0/auth0-java/tree/4.1.0) (2026-07-22) +[Full Changelog](https://github.com/auth0/auth0-java/compare/4.0.0...4.1.0) + +**Added** +- feat: Branding Theme Identifiers, Self-Service Third-Party Client Access, Cross-App Access & Session Actor support [\#906](https://github.com/auth0/auth0-java/pull/906) ([fern-api[bot]](https://github.com/apps/fern-api)) +- feat: add access token exchange and generic subject token type to Tok… [\#904](https://github.com/auth0/auth0-java/pull/904) ([kailash-b](https://github.com/kailash-b)) + ## [4.0.0](https://github.com/auth0/auth0-java/tree/4.0.0) (2026-07-15) [Full Changelog](https://github.com/auth0/auth0-java/compare/3.10.0...4.0.0) diff --git a/README.md b/README.md index faa9c5f6..f3835030 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ Add the dependency via Maven: com.auth0 auth0 - 4.0.0 + 4.1.0 ``` or Gradle: ```gradle -implementation 'com.auth0:auth0:4.0.0' +implementation 'com.auth0:auth0:4.1.0' ``` ### Configure the SDK From a473c326013fef9a1577ddd5decc20163c97583f Mon Sep 17 00:00:00 2001 From: Tanya Sinha Date: Wed, 5 Aug 2026 12:55:18 +0530 Subject: [PATCH 10/13] ci: GitHub Actions against script injection (#910) --- .github/actions/maven-publish/action.yml | 4 +++- .github/workflows/rl-scanner.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/maven-publish/action.yml b/.github/actions/maven-publish/action.yml index 70a3aec3..5e519b4d 100644 --- a/.github/actions/maven-publish/action.yml +++ b/.github/actions/maven-publish/action.yml @@ -22,11 +22,13 @@ runs: - name: Setup Java shell: bash + env: + JAVA_VERSION: ${{ inputs.java-version }} run: | curl -s "https://get.sdkman.io" | bash source "/home/runner/.sdkman/bin/sdkman-init.sh" sdk list java - sdk install java ${{ inputs.java-version }} && sdk default java ${{ inputs.java-version }} + sdk install java "$JAVA_VERSION" && sdk default java "$JAVA_VERSION" export JAVA_HOME=${SDKMAN_DIR}/candidates/java/current echo "JAVA_HOME is set to $JAVA_HOME" diff --git a/.github/workflows/rl-scanner.yml b/.github/workflows/rl-scanner.yml index 2b53f6f4..4b49b98f 100644 --- a/.github/workflows/rl-scanner.yml +++ b/.github/workflows/rl-scanner.yml @@ -53,8 +53,10 @@ jobs: uses: ./.github/actions/get-version - name: Create tgz build artifact + env: + ARTIFACT_NAME: ${{ inputs.artifact-name }} run: | - tar -czvf ${{ inputs.artifact-name }} * + tar -czvf "$ARTIFACT_NAME" * - name: Run RL Scanner id: rl-scan-conclusion From 9a73082ad7de8332857d0c1f1bd263be86512458 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 17:19:02 +0530 Subject: [PATCH 11/13] feat: Agents client, Organization Clients & Role Groups, Directory Provisioning sync groups, Guardian factor settings & paginated Event Stream Deliveries (#909) Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Tanya Sinha --- .fern/replay.lock | 395 +- reference.md | 14881 +++++++++------- .../com/auth0/client/mgmt/AgentsClient.java | 129 + .../auth0/client/mgmt/AsyncAgentsClient.java | 132 + .../auth0/client/mgmt/AsyncManagementApi.java | 7 + .../client/mgmt/AsyncOrganizationsClient.java | 8 + .../client/mgmt/AsyncRawAgentsClient.java | 617 + .../mgmt/AsyncRawClientGrantsClient.java | 2 + .../mgmt/AsyncRawConnectionsClient.java | 2 + .../client/mgmt/AsyncRawGroupsClient.java | 2 + .../mgmt/AsyncRawOrganizationsClient.java | 9 + .../client/mgmt/AsyncRawRolesClient.java | 8 + .../com/auth0/client/mgmt/ManagementApi.java | 7 + .../client/mgmt/OrganizationsClient.java | 8 + .../auth0/client/mgmt/RawAgentsClient.java | 483 + .../client/mgmt/RawClientGrantsClient.java | 2 + .../client/mgmt/RawConnectionsClient.java | 2 + .../auth0/client/mgmt/RawGroupsClient.java | 2 + .../client/mgmt/RawOrganizationsClient.java | 9 + .../com/auth0/client/mgmt/RawRolesClient.java | 8 + .../AsyncRawOrganizationsClient.java | 2 + .../clientgrants/RawOrganizationsClient.java | 2 + ...ntGrantOrganizationsRequestParameters.java | 69 +- .../AsyncDirectoryProvisioningClient.java | 38 + .../AsyncRawDirectoryProvisioningClient.java | 229 + .../DirectoryProvisioningClient.java | 36 + .../RawDirectoryProvisioningClient.java | 181 + .../AddSynchronizedGroupsRequestContent.java | 125 + ...eleteSynchronizedGroupsRequestContent.java | 125 + ...stSynchronizedGroupsRequestParameters.java | 69 +- .../eventstreams/AsyncDeliveriesClient.java | 10 +- .../AsyncRawDeliveriesClient.java | 37 +- .../mgmt/eventstreams/DeliveriesClient.java | 10 +- .../eventstreams/RawDeliveriesClient.java | 28 +- .../mgmt/flows/AsyncRawExecutionsClient.java | 2 + .../mgmt/flows/RawExecutionsClient.java | 2 + .../ListFlowExecutionsRequestParameters.java | 69 +- .../organizations/AsyncClientsClient.java | 162 + .../organizations/AsyncMembersClient.java | 8 +- .../organizations/AsyncRawClientsClient.java | 690 + .../AsyncRawEnabledConnectionsClient.java | 6 + .../organizations/AsyncRawMembersClient.java | 10 +- .../mgmt/organizations/ClientsClient.java | 156 + .../mgmt/organizations/MembersClient.java | 8 +- .../mgmt/organizations/RawClientsClient.java | 551 + .../RawEnabledConnectionsClient.java | 4 + .../mgmt/organizations/RawMembersClient.java | 10 +- .../members/AsyncRawRolesClient.java | 4 + .../members/AsyncRolesClient.java | 4 + .../organizations/members/RawRolesClient.java | 4 + .../organizations/members/RolesClient.java | 4 + .../roles/AsyncGroupsClient.java | 65 + .../roles/AsyncMembersClient.java | 20 + .../roles/AsyncRawGroupsClient.java | 201 + .../roles/AsyncRawMembersClient.java | 20 + .../organizations/roles/AsyncRolesClient.java | 7 + .../organizations/roles/GroupsClient.java | 63 + .../organizations/roles/MembersClient.java | 20 + .../organizations/roles/RawGroupsClient.java | 164 + .../organizations/roles/RawMembersClient.java | 20 + .../mgmt/organizations/roles/RolesClient.java | 7 + ...ganizationRoleGroupsRequestParameters.java | 204 + ...eateOrganizationClientsRequestContent.java | 125 + ...leteOrganizationClientsRequestContent.java | 123 + ...tOrganizationClientsRequestParameters.java | 204 + ...tOrganizationMembersRequestParameters.java | 66 +- ...pdateOrganizationClientRequestContent.java | 113 + .../mgmt/roles/AsyncRawUsersClient.java | 6 + .../client/mgmt/roles/AsyncUsersClient.java | 4 + .../client/mgmt/roles/RawUsersClient.java | 6 + .../auth0/client/mgmt/roles/UsersClient.java | 4 + .../types/ListRoleUsersRequestParameters.java | 69 +- .../client/mgmt/types/AculContextEnum.java | 10 + .../mgmt/types/AgentResponseContent.java | 324 + .../client/mgmt/types/ConflictSchema.java | 163 + .../mgmt/types/ConflictSchemaError.java | 73 + .../ConnectionConnectedAccountsPurpose.java | 55 +- ...ConnectionConnectedAccountsPurposeXaa.java | 55 +- .../mgmt/types/CreateAgentRequestContent.java | 248 + .../CreateOrganizationClientRequestItem.java | 162 + .../CreateOrganizationRequestContent.java | 49 +- .../CreateOrganizationResponseContent.java | 58 + .../mgmt/types/CreateRoleRequestContent.java | 97 +- .../mgmt/types/CreateRoleResponseContent.java | 62 +- .../mgmt/types/EventStreamCloudEvent.java | 18 +- .../types/EventStreamDeliveryAttempt.java | 49 +- .../GetOrganizationByNameResponseContent.java | 62 +- .../GetOrganizationClientResponseContent.java | 189 + .../types/GetOrganizationResponseContent.java | 62 +- .../mgmt/types/GetRoleResponseContent.java | 62 +- .../client/mgmt/types/GuardianFactor.java | 38 +- .../mgmt/types/GuardianFactorSettings.java | 142 + .../types/ListAgentsRequestParameters.java | 203 + .../mgmt/types/ListAgentsResponseContent.java | 146 + .../ListClientGrantsRequestParameters.java | 64 +- .../types/ListConnectionsQueryParameters.java | 65 +- ...tEventStreamDeliveriesResponseContent.java | 153 + .../types/ListGroupsRequestParameters.java | 72 +- ...istOrganizationClientsResponseContent.java | 153 + ...OrganizationRoleGroupsResponseContent.java | 147 + .../ListOrganizationsRequestParameters.java | 130 +- .../types/ListRolesRequestParameters.java | 127 +- .../client/mgmt/types/NotFoundSchema.java | 163 + .../mgmt/types/NotFoundSchemaError.java | 73 + .../auth0/client/mgmt/types/OauthScope.java | 84 + .../auth0/client/mgmt/types/Organization.java | 62 +- .../client/mgmt/types/OrganizationClient.java | 188 + .../types/OrganizationClientAssociation.java | 112 + .../types/OrganizationClientMetadata.java | 293 + ...onClientMetadataOrganizationUsageEnum.java | 97 + .../types/PatchAgentRequestParameters.java | 175 + .../com/auth0/client/mgmt/types/Role.java | 62 +- .../auth0/client/mgmt/types/RoleGroup.java | 578 + .../auth0/client/mgmt/types/RoleTypeEnum.java | 82 + ...ProfileSsoTicketGoogleWorkspaceConfig.java | 51 +- .../mgmt/types/SynchronizedGroupPayload.java | 141 +- .../types/SynchronizedGroupSelectionId.java | 128 + ...dateOrganizationClientResponseContent.java | 198 + .../UpdateOrganizationRequestContent.java | 44 +- .../UpdateOrganizationResponseContent.java | 62 +- .../mgmt/types/UpdateRoleResponseContent.java | 62 +- ...vePermissionRoleSourceResponseContent.java | 58 +- .../mgmt/users/AsyncPermissionsClient.java | 4 + .../mgmt/users/AsyncRawGroupsClient.java | 2 + .../mgmt/users/AsyncRawPermissionsClient.java | 4 + .../users/AsyncRawRefreshTokenClient.java | 2 + .../mgmt/users/AsyncRawRolesClient.java | 4 + .../mgmt/users/AsyncRawSessionsClient.java | 2 + .../client/mgmt/users/AsyncRolesClient.java | 4 + .../client/mgmt/users/PermissionsClient.java | 4 + .../client/mgmt/users/RawGroupsClient.java | 2 + .../mgmt/users/RawPermissionsClient.java | 4 + .../mgmt/users/RawRefreshTokenClient.java | 2 + .../client/mgmt/users/RawRolesClient.java | 4 + .../client/mgmt/users/RawSessionsClient.java | 2 + .../auth0/client/mgmt/users/RolesClient.java | 4 + .../types/GetUserGroupsRequestParameters.java | 65 +- .../ListRefreshTokensRequestParameters.java | 69 +- .../ListUserSessionsRequestParameters.java | 69 +- .../com/auth0/client/mgmt/AgentsWireTest.java | 329 + .../ClientGrantsOrganizationsWireTest.java | 3 +- .../client/mgmt/ClientGrantsWireTest.java | 1 + ...nectionsDirectoryProvisioningWireTest.java | 103 +- .../client/mgmt/ConnectionsWireTest.java | 16 +- .../mgmt/EventStreamsDeliveriesWireTest.java | 70 +- .../client/mgmt/EventStreamsWireTest.java | 9 +- .../client/mgmt/FlowsExecutionsWireTest.java | 1 + .../client/mgmt/GroupsRolesWireTest.java | 2 +- .../com/auth0/client/mgmt/GroupsWireTest.java | 1 + .../client/mgmt/GuardianFactorsWireTest.java | 14 +- .../mgmt/OrganizationsClientsWireTest.java | 411 + .../OrganizationsGroupsRolesWireTest.java | 2 +- .../OrganizationsMembersRolesWireTest.java | 2 +- .../mgmt/OrganizationsMembersWireTest.java | 1 + .../OrganizationsRolesGroupsWireTest.java | 95 + .../client/mgmt/OrganizationsWireTest.java | 34 +- .../auth0/client/mgmt/RolesUsersWireTest.java | 1 + .../com/auth0/client/mgmt/RolesWireTest.java | 41 +- ...ectivePermissionsSourcesRolesWireTest.java | 2 +- .../client/mgmt/UsersGroupsWireTest.java | 1 + .../mgmt/UsersOrganizationsWireTest.java | 2 +- .../mgmt/UsersRefreshTokenWireTest.java | 1 + .../auth0/client/mgmt/UsersRolesWireTest.java | 2 +- .../client/mgmt/UsersSessionsWireTest.java | 1 + 164 files changed, 20708 insertions(+), 7514 deletions(-) create mode 100644 src/main/java/com/auth0/client/mgmt/AgentsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/AsyncAgentsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/AsyncRawAgentsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/RawAgentsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/connections/types/AddSynchronizedGroupsRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/connections/types/DeleteSynchronizedGroupsRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/AsyncClientsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/ClientsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/RawClientsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/GroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/RawGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleGroupsRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationClientsRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationClientsRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientsRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationClientRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/AgentResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConflictSchema.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConflictSchemaError.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateAgentRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateOrganizationClientRequestItem.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetOrganizationClientResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GuardianFactorSettings.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListAgentsRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListAgentsResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListEventStreamDeliveriesResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientsResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleGroupsResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/NotFoundSchema.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/NotFoundSchemaError.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/OrganizationClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/OrganizationClientAssociation.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/OrganizationClientMetadata.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/OrganizationClientMetadataOrganizationUsageEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/PatchAgentRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/RoleGroup.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/RoleTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupSelectionId.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationClientResponseContent.java create mode 100644 src/test/java/com/auth0/client/mgmt/AgentsWireTest.java create mode 100644 src/test/java/com/auth0/client/mgmt/OrganizationsClientsWireTest.java create mode 100644 src/test/java/com/auth0/client/mgmt/OrganizationsRolesGroupsWireTest.java diff --git a/.fern/replay.lock b/.fern/replay.lock index 0593e246..895bd2df 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -24,390 +24,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-java-sdk: 4.11.1 -current_generation: 6123049f4ae684b09b5bfb8da5ed607adc6f871d -patches: - - id: patch-ec28244b - content_hash: sha256:138547c31047858fa903f656bd52246c357d3c34bd650b5648c0ed7f0f37ee0f - original_commit: ec28244b9fc3bce518088b96a5402cbb8ad1dcc6 - original_message: "feat: add MIGRATION_GUIDE (#900)" - original_author: Tanya Sinha - base_generation: 6123049f4ae684b09b5bfb8da5ed607adc6f871d - files: - - v3_MIGRATION_GUIDE.md - patch_content: | - diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md - deleted file mode 100644 - index 9d98602c..00000000 - --- a/MIGRATION_GUIDE.md - +++ /dev/null - @@ -1,369 +0,0 @@ - -# V3 Migration Guide - - - -A guide to migrating the Auth0 Java SDK from `v2` to `v3`. - - - -- [Overall changes](#overall-changes) - - - [Java versions](#java-versions) - - - [Authentication API](#authentication-api) - - - [Management API](#management-api) - -- [Specific changes to the Management API](#specific-changes-to-the-management-api) - - - [Client initialization](#client-initialization) - - - [Sub-client organization](#sub-client-organization) - - - [Request and response patterns](#request-and-response-patterns) - - - [Pagination](#pagination) - - - [Exception handling](#exception-handling) - - - [Accessing raw HTTP responses](#accessing-raw-http-responses) - - - [Request-level configuration](#request-level-configuration) - - - [Type changes](#type-changes) - - - -## Overall changes - - - -### Java versions - - - -Both v2 and v3 require Java 8 or above. - - - -### Authentication API - - - -This major version change does not affect the Authentication API. The `AuthAPI` class has been ported directly from v2 to v3. Any code written for the Authentication API in the v2 version should work in the v3 version. - - - -```java - -// Works in both v2 and v3 - -AuthAPI auth = AuthAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_CLIENT_ID}", "{YOUR_CLIENT_SECRET}").build(); - -``` - - - -### Management API - - - -V3 introduces significant improvements to the Management API SDK by migrating to [Fern](https://github.com/fern-api/fern) as the code generation tool. This provides: - - - -- Better resource grouping with sub-client organization - -- Type-safe request and response objects using builder patterns - -- Automatic pagination with `SyncPagingIterable` - -- Simplified access to HTTP response metadata via `withRawResponse()` - -- Consistent method naming (`list`, `create`, `get`, `update`, `delete`) - - - -## Specific changes to the Management API - - - -### Client initialization - - - -The Management API client initialization has changed from `ManagementAPI` to `ManagementApi`, and uses a different builder pattern. - - - -**v2:** - -```java - -import com.auth0.client.mgmt.ManagementAPI; - - - -// Using domain and token - -ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}").build(); - - - -// Using TokenProvider - -TokenProvider tokenProvider = SimpleTokenProvider.create("{YOUR_API_TOKEN}"); - -ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", tokenProvider).build(); - -``` - - - -**v3:** - -1st Approach : Standard Token-Based - -```java - -import com.auth0.client.mgmt.ManagementApi; - - - -ManagementApi client = ManagementApi - - .builder() - - .url("https://{YOUR_DOMAIN}/api/v2") - - .token("{YOUR_API_TOKEN}") - - .build(); - -``` - - - -or - - - -2nd Approach : OAuth client credentials flow - - - -```java - -OAuthTokenSupplier tokenSupplier = new OAuthTokenSupplier( - -"{CLIENT_ID}", - -"{CLIENT_SECRET}", - -"https://{YOUR_DOMAIN}", - -"{YOUR_AUDIENCE}" - -); - - - -ClientOptions clientOptions = ClientOptions.builder() - -.environment(Environment.custom("https://{YOUR_AUDIENCE}")) - -.addHeader("Authorization", () -> "Bearer " + tokenSupplier.get()) - -.build(); - - - -ManagementApi client = new ManagementApi(clientOptions); - - - -``` - - - -#### Builder options comparison - - - -| Option | v2 | v3 | - -|--------|----|----| - -| Domain/URL | `newBuilder(domain, token)` | `.url("https://domain/api/v2")` | - -| Token | Constructor parameter | `.token(token)` | - -| Timeout | Via `HttpOptions` | `.timeout(seconds)` | - -| Max retries | Via `HttpOptions` | `.maxRetries(count)` | - -| Custom HTTP client | `.withHttpClient(Auth0HttpClient)` | `.httpClient(OkHttpClient)` | - -| Custom headers | Not directly supported | `.addHeader(name, value)` | - - - -### Sub-client organization - - - -V3 introduces a hierarchical sub-client structure. Operations on related resources are now accessed through nested clients instead of methods on a flat entity class. - - - -**v2:** - -```java - -// All user operations on UsersEntity - -Request userRequest = mgmt.users().get("user_id", new UserFilter()); - -Request> permissionsRequest = mgmt.users().getPermissions("user_id", new PermissionsFilter()); - -Request> rolesRequest = mgmt.users().getRoles("user_id", new RolesFilter()); - -Request logsRequest = mgmt.users().getLogEvents("user_id", new LogEventFilter()); - -``` - - - -**v3:** - -```java - -// Operations organized into sub-clients - -GetUserResponseContent user = client.users().get("user_id"); - -SyncPagingIterable permissions = client.users().permissions().list("user_id"); - -SyncPagingIterable roles = client.users().roles().list("user_id"); - -SyncPagingIterable logs = client.users().logs().list("user_id"); - -``` - - - -#### Common sub-client mappings - - - -| v2 Method | v3 Sub-client | - -|-----------|---------------| - -| `mgmt.users().getPermissions()` | `client.users().permissions().list()` | - -| `mgmt.users().getRoles()` | `client.users().roles().list()` | - -| `mgmt.users().getLogEvents()` | `client.users().logs().list()` | - -| `mgmt.users().getOrganizations()` | `client.users().organizations().list()` | - -| `mgmt.users().link()` | `client.users().identities().link()` | - -| `mgmt.users().unlink()` | `client.users().identities().delete()` | - -| `mgmt.users().deleteMultifactorProvider()` | `client.users().multifactor().deleteProvider()` | - -| `mgmt.organizations().getMembers()` | `client.organizations().members().list()` | - -| `mgmt.organizations().getInvitations()` | `client.organizations().invitations().list()` | - -| `mgmt.organizations().getEnabledConnections()` | `client.organizations().enabledConnections().list()` | - -| `mgmt.actions().getVersions()` | `client.actions().versions().list()` | - -| `mgmt.actions().getTriggerBindings()` | `client.actions().triggers().bindings().list()` | - -| `mgmt.guardian().getFactors()` | `client.guardian().factors().list()` | - -| `mgmt.branding().getUniversalLoginTemplate()` | `client.branding().templates().getUniversalLogin()` | - -| `mgmt.connections().getScimConfiguration()` | `client.connections().scimConfiguration().get()` | - - - -### Request and response patterns - - - -V3 uses type-safe request content objects with builders instead of domain objects or filter parameters. - - - -**v2:** - -```java - -import com.auth0.json.mgmt.users.User; - -import com.auth0.net.Request; - - - -// Creating a user - -User user = new User("Username-Password-Authentication"); - -user.setEmail("test@example.com"); - -user.setPassword("password123".toCharArray()); - - - -Request request = mgmt.users().create(user); - -User createdUser = request.execute().getBody(); - -``` - - - -**v3:** - -```java - -import com.auth0.client.mgmt.types.CreateUserRequestContent; - -import com.auth0.client.mgmt.types.CreateUserResponseContent; - - - -// Creating a user - -CreateUserResponseContent user = client.users().create( - - CreateUserRequestContent - - .builder() - - .connection("Username-Password-Authentication") - - .email("test@example.com") - - .password("password123") - - .build() - -); - -``` - - - -#### Key differences - - - -| Aspect | v2 | v3 | - -|--------|----|----| - -| Request building | Domain objects with setters | Builder pattern with `*RequestContent` types | - -| Response type | `Request` requiring `.execute().getBody()` | Direct return of response object | - -| Filtering | Filter classes (e.g., `UserFilter`) | `*RequestParameters` builder classes | - -| Execution | Explicit `.execute()` call | Implicit execution on method call | - - - -### Pagination - - - -V3 introduces `SyncPagingIterable` for automatic pagination, replacing the manual `Request` pattern. - - - -**v2:** - -```java - -import com.auth0.json.mgmt.users.UsersPage; - -import com.auth0.client.mgmt.filter.UserFilter; - - - -Request request = mgmt.users().list(new UserFilter().withPage(0, 50)); - -UsersPage page = request.execute().getBody(); - - - -for (User user : page.getItems()) { - - System.out.println(user.getEmail()); - -} - - - -// Manual pagination - -while (page.getNext() != null) { - - request = mgmt.users().list(new UserFilter().withPage(page.getNext(), 50)); - - page = request.execute().getBody(); - - for (User user : page.getItems()) { - - System.out.println(user.getEmail()); - - } - -} - -``` - - - -**v3:** - -```java - -import com.auth0.client.mgmt.core.SyncPagingIterable; - -import com.auth0.client.mgmt.types.UserResponseSchema; - -import com.auth0.client.mgmt.types.ListUsersRequestParameters; - - - -// Automatic iteration through all pages - -SyncPagingIterable users = client.users().list( - - ListUsersRequestParameters - - .builder() - - .perPage(50) - - .build() - -); - - - -for (UserResponseSchema user : users) { - - System.out.println(user.getEmail()); - -} - - - -// Or manual page control - -List pageItems = users.getItems(); - -while (users.hasNext()) { - - pageItems = users.nextPage().getItems(); - - // process page - -} - -``` - - - -### Exception handling - - - -V3 uses a unified `ManagementApiException` class instead of the v2 exception hierarchy. - - - -**v2:** - -```java - -import com.auth0.exception.Auth0Exception; - -import com.auth0.exception.APIException; - -import com.auth0.exception.RateLimitException; - - - -try { - - User user = mgmt.users().get("user_id", null).execute().getBody(); - -} catch (RateLimitException e) { - - // Rate limited - - long retryAfter = e.getLimit(); - -} catch (APIException e) { - - int statusCode = e.getStatusCode(); - - String error = e.getError(); - - String description = e.getDescription(); - -} catch (Auth0Exception e) { - - // Network or other errors - -} - -``` - - - -**v3:** - -```java - -import com.auth0.client.mgmt.core.ManagementApiException; - - - -try { - - GetUserResponseContent user = client.users().get("user_id"); - -} catch (ManagementApiException e) { - - int statusCode = e.statusCode(); - - Object body = e.body(); - - Map> headers = e.headers(); - - String message = e.getMessage(); - -} - -``` - - - -### Accessing raw HTTP responses - - - -V3 provides access to full HTTP response metadata via `withRawResponse()`. - - - -**v2:** - -```java - -// Response wrapper provided status code - -Response response = mgmt.users().get("user_id", null).execute(); - -int statusCode = response.getStatusCode(); - -User user = response.getBody(); - -``` - - - -**v3:** - -```java - -import com.auth0.client.mgmt.core.ManagementApiHttpResponse; - - - -// Use withRawResponse() to access headers and metadata - -ManagementApiHttpResponse response = client.users() - - .withRawResponse() - - .get("user_id"); - - - -GetUserResponseContent user = response.body(); - -Map> headers = response.headers(); - -``` - - - -### Request-level configuration - - - -V3 allows per-request configuration through `RequestOptions`. - - - -**v2:** - -```java - -// Most configuration was at client level only - -// Request-level headers required creating a new request manually - -Request request = mgmt.users().get("user_id", null); - -request.addHeader("X-Custom-Header", "value"); - -User user = request.execute().getBody(); - -``` - - - -**v3:** - -```java - -import com.auth0.client.mgmt.core.RequestOptions; - - - -GetUserResponseContent user = client.users().get( - - "user_id", - - GetUserRequestParameters.builder().build(), - - RequestOptions.builder() - - .timeout(10) - - .maxRetries(1) - - .addHeader("X-Custom-Header", "value") - - .build() - -); - -``` - - - -### Type changes - - - -V3 uses generated type classes located in `com.auth0.client.mgmt.types` instead of the hand-written POJOs in `com.auth0.json.mgmt`. - - - -**v2:** - -```java - -import com.auth0.json.mgmt.users.User; - -import com.auth0.json.mgmt.roles.Role; - -import com.auth0.json.mgmt.organizations.Organization; - -``` - - - -**v3:** - -```java - -import com.auth0.client.mgmt.types.UserResponseSchema; - -import com.auth0.client.mgmt.types.CreateUserRequestContent; - -import com.auth0.client.mgmt.types.CreateUserResponseContent; - -import com.auth0.client.mgmt.types.Role; - -import com.auth0.client.mgmt.types.Organization; - -``` - - - -Type naming conventions in v3: - -- Request body types: `*RequestContent` (e.g., `CreateUserRequestContent`) - -- Response types: `*ResponseContent` or `*ResponseSchema` (e.g., `GetUserResponseContent`, `UserResponseSchema`) - -- Query parameters: `*RequestParameters` (e.g., `ListUsersRequestParameters`) - - - -All types use immutable builders: - - - -```java - -// v3 type construction - -CreateUserRequestContent request = CreateUserRequestContent - - .builder() - - .connection("Username-Password-Authentication") - - .email("test@example.com") - - .password("secure-password") - - .build(); - -``` - user_owned: true + - commit_sha: 97f94ce5dd517846f1fd30ae84791654a7da96bd + tree_hash: 85ae2235f756976f1a0eee80d27fcf579579bdfc + timestamp: 2026-08-04T06:33:07.487Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.11.1 +current_generation: 97f94ce5dd517846f1fd30ae84791654a7da96bd +patches: [] diff --git a/reference.md b/reference.md index 647fa3fc..e9bb0d75 100644 --- a/reference.md +++ b/reference.md @@ -590,8 +590,8 @@ client.actions().test(
-## Branding -
client.branding.get() -> GetBrandingResponseContent +## Agents +
client.agents.list() -> SyncPagingIterable&lt;AgentResponseContent&gt;
@@ -603,7 +603,7 @@ client.actions().test(
-Retrieve branding settings. +Get agents
@@ -618,19 +618,48 @@ Retrieve branding settings.
```java -client.branding().get(); +client.agents().list( + ListAgentsRequestParameters + .builder() + .from("from") + .take(1) + .build() +); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+
+
+
-
client.branding.update(request) -> UpdateBrandingResponseContent +
client.agents.create(request) -> AgentResponseContent
@@ -642,7 +671,7 @@ client.branding().get();
-Update branding settings. +Create an agent
@@ -657,9 +686,10 @@ Update branding settings.
```java -client.branding().update( - UpdateBrandingRequestContent +client.agents().create( + CreateAgentRequestContent .builder() + .name("name") .build() ); ``` @@ -676,7 +706,7 @@ client.branding().update(
-**colors:** `Optional` +**name:** `String` — The agent name. Cannot contain <, >, or null bytes.
@@ -684,7 +714,7 @@ client.branding().update(
-**faviconUrl:** `Optional` — URL for the favicon. Must use HTTPS. +**clientId:** `Optional` — Optional client ID to associate with the agent
@@ -692,7 +722,7 @@ client.branding().update(
-**logoUrl:** `Optional` — URL for the logo. Must use HTTPS. +**externalAgentId:** `Optional` — Optional external identifier for the agent. Immutable after creation. Must be unique within the tenant.
@@ -700,7 +730,7 @@ client.branding().update(
-**font:** `Optional` +**metadata:** `Optional>`
@@ -712,8 +742,7 @@ client.branding().update(
-## ClientGrants -
client.clientGrants.list() -> SyncPagingIterable&lt;ClientGrantResponseContent&gt; +
client.agents.read(id) -> AgentResponseContent
@@ -725,7 +754,7 @@ client.branding().update(
-Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair. +Get an agent
@@ -740,18 +769,7 @@ Retrieve a list of [client grants](https://auth0.com/docs/get-started/applicatio
```java -client.clientGrants().list( - ListClientGrantsRequestParameters - .builder() - .from("from") - .take(1) - .audience("audience") - .clientId("client_id") - .allowAnyOrganization(true) - .subjectType(ClientGrantSubjectTypeEnum.CLIENT) - .defaultFor(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) - .build() -); +client.agents().read("id"); ```
@@ -766,55 +784,61 @@ client.clientGrants().list(
-**from:** `Optional` — Optional Id from which to start selection. +**id:** `String` — The agent ID
+ + -
-
-**take:** `Optional` — Number of results per page. Defaults to 50. -
+
+
client.agents.delete(id)
-**audience:** `Optional` — Optional filter on audience. - -
-
+#### 📝 Description
-**clientId:** `Optional` — Optional filter on client_id. - -
-
-
-**allowAnyOrganization:** `Optional` — Optional filter on allow_any_organization. - +Delete an agent
+ + + +#### 🔌 Usage
-**subjectType:** `Optional` — The type of application access the client grant allows. - +
+
+ +```java +client.agents().delete("id"); +``` +
+
+#### ⚙️ Parameters +
-**defaultFor:** `Optional` — Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. +
+
+ +**id:** `String` — The agent ID
@@ -826,7 +850,7 @@ client.clientGrants().list(
-
client.clientGrants.create(request) -> CreateClientGrantResponseContent +
client.agents.update(id, request) -> AgentResponseContent
@@ -838,7 +862,7 @@ client.clientGrants().list(
-Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). +Update an agent
@@ -853,10 +877,10 @@ Create a client grant for a machine-to-machine login flow. To learn more, read [
```java -client.clientGrants().create( - CreateClientGrantRequestContent +client.agents().update( + "id", + PatchAgentRequestParameters .builder() - .audience("audience") .build() ); ``` @@ -873,7 +897,7 @@ client.clientGrants().create(
-**clientId:** `Optional` — ID of the client. +**id:** `String` — The agent ID
@@ -881,7 +905,7 @@ client.clientGrants().create(
-**audience:** `String` — The audience (API identifier) of this client grant +**name:** `Optional` — The agent name. Cannot contain <, >, or null bytes.
@@ -889,56 +913,48 @@ client.clientGrants().create(
-**defaultFor:** `Optional` +**metadata:** `Optional>` — Arbitrary key-value metadata for the agent. Pass null to clear all metadata.
+
+
-
-
-**organizationUsage:** `Optional` -
+
+## Branding +
client.branding.get() -> GetBrandingResponseContent
-**allowAnyOrganization:** `Optional` — If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - -
-
+#### 📝 Description
-**scope:** `Optional>` — Scopes allowed for this client grant. - -
-
-
-**subjectType:** `Optional` - +Retrieve branding settings. +
+
+#### 🔌 Usage +
-**authorizationDetailsTypes:** `Optional>` — Types of authorization_details allowed for this client grant. - -
-
-
-**allowAllScopes:** `Optional` — If enabled, all scopes configured on the resource server are allowed for this grant. - +```java +client.branding().get(); +```
@@ -949,7 +965,7 @@ client.clientGrants().create(
-
client.clientGrants.get(id) -> GetClientGrantResponseContent +
client.branding.update(request) -> UpdateBrandingResponseContent
@@ -961,8 +977,7 @@ client.clientGrants().create(
-Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the -scopes associated with the application/API pair. +Update branding settings.
@@ -977,7 +992,11 @@ scopes associated with the application/API pair.
```java -client.clientGrants().get("id"); +client.branding().update( + UpdateBrandingRequestContent + .builder() + .build() +); ```
@@ -992,61 +1011,31 @@ client.clientGrants().get("id");
-**id:** `String` — The ID of the client grant to retrieve. +**colors:** `Optional`
- - - - - - -
- -
client.clientGrants.delete(id) -
-
- -#### 📝 Description - -
-
-Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application. -
-
+**faviconUrl:** `Optional` — URL for the favicon. Must use HTTPS. +
-#### 🔌 Usage -
-
-
- -```java -client.clientGrants().delete("id"); -``` -
-
+**logoUrl:** `Optional` — URL for the logo. Must use HTTPS. +
-#### ⚙️ Parameters -
-
-
- -**id:** `String` — ID of the client grant to delete. +**font:** `Optional`
@@ -1058,7 +1047,8 @@ client.clientGrants().delete("id");
-
client.clientGrants.update(id, request) -> UpdateClientGrantResponseContent +## ClientGrants +
client.clientGrants.list() -> SyncPagingIterable&lt;ClientGrantResponseContent&gt;
@@ -1070,7 +1060,7 @@ client.clientGrants().delete("id");
-Update a client grant. +Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair.
@@ -1085,10 +1075,17 @@ Update a client grant.
```java -client.clientGrants().update( - "id", - UpdateClientGrantRequestContent +client.clientGrants().list( + ListClientGrantsRequestParameters .builder() + .includeTotals(true) + .from("from") + .take(1) + .audience("audience") + .clientId("client_id") + .allowAnyOrganization(true) + .subjectType(ClientGrantSubjectTypeEnum.CLIENT) + .defaultFor(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) .build() ); ``` @@ -1105,7 +1102,7 @@ client.clientGrants().update(
-**id:** `String` — ID of the client grant to update. +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -1113,7 +1110,7 @@ client.clientGrants().update(
-**scope:** `Optional>` — Scopes allowed for this client grant. +**from:** `Optional` — Optional Id from which to start selection.
@@ -1121,7 +1118,7 @@ client.clientGrants().update(
-**organizationUsage:** `Optional` +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -1129,7 +1126,7 @@ client.clientGrants().update(
-**allowAnyOrganization:** `Optional` — Controls allowing any organization to be used with this grant +**audience:** `Optional` — Optional filter on audience.
@@ -1137,7 +1134,7 @@ client.clientGrants().update(
-**authorizationDetailsTypes:** `Optional>` — Types of authorization_details allowed for this client grant. +**clientId:** `Optional` — Optional filter on client_id.
@@ -1145,7 +1142,23 @@ client.clientGrants().update(
-**allowAllScopes:** `Optional` — If enabled, all scopes configured on the resource server are allowed for this grant. +**allowAnyOrganization:** `Optional` — Optional filter on allow_any_organization. + +
+
+ +
+
+ +**subjectType:** `Optional` — The type of application access the client grant allows. + +
+
+ +
+
+ +**defaultFor:** `Optional` — Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`.
@@ -1157,8 +1170,7 @@ client.clientGrants().update(
-## Clients -
client.clients.list() -> SyncPagingIterable&lt;Client&gt; +
client.clientGrants.create(request) -> CreateClientGrantResponseContent
@@ -1170,35 +1182,11 @@ client.clientGrants().update(
-Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. -For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - -- The following can be retrieved with any scope: - `client_id`, `app_type`, `name`, and `description`. -- The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scope: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_off`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. -- The following properties can only be retrieved with the - `read:client_keys` or `read:client_credentials` scope: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. -
-
-
-
+Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). + + + + #### 🔌 Usage @@ -1209,19 +1197,10 @@ For more information, read [Applications in Auth0](https://www.auth0.com/docs/ge
```java -client.clients().list( - ListClientsRequestParameters +client.clientGrants().create( + CreateClientGrantRequestContent .builder() - .fields("fields") - .includeFields(true) - .page(1) - .perPage(1) - .includeTotals(true) - .isGlobal(true) - .isFirstParty(true) - .appType("app_type") - .externalClientId("external_client_id") - .q("q") + .audience("audience") .build() ); ``` @@ -1238,15 +1217,7 @@ client.clients().list(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**clientId:** `Optional` — ID of the client.
@@ -1254,7 +1225,7 @@ client.clients().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**audience:** `String` — The audience (API identifier) of this client grant
@@ -1262,7 +1233,7 @@ client.clients().list(
-**perPage:** `Optional` — Number of results per page. Default value is 50, maximum value is 100 +**defaultFor:** `Optional`
@@ -1270,7 +1241,7 @@ client.clients().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**organizationUsage:** `Optional`
@@ -1278,7 +1249,7 @@ client.clients().list(
-**isGlobal:** `Optional` — Optional filter on the global client parameter. +**allowAnyOrganization:** `Optional` — If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
@@ -1286,7 +1257,7 @@ client.clients().list(
-**isFirstParty:** `Optional` — Optional filter on whether or not a client is a first-party client. +**scope:** `Optional>` — Scopes allowed for this client grant.
@@ -1294,7 +1265,7 @@ client.clients().list(
-**appType:** `Optional` — Optional filter by a comma-separated list of application types. +**subjectType:** `Optional`
@@ -1302,7 +1273,7 @@ client.clients().list(
-**externalClientId:** `Optional` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. +**authorizationDetailsTypes:** `Optional>` — Types of authorization_details allowed for this client grant.
@@ -1310,7 +1281,7 @@ client.clients().list(
-**q:** `Optional` — Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results +**allowAllScopes:** `Optional` — If enabled, all scopes configured on the resource server are allowed for this grant.
@@ -1322,7 +1293,7 @@ client.clients().list(
-
client.clients.create(request) -> CreateClientResponseContent +
client.clientGrants.get(id) -> GetClientGrantResponseContent
@@ -1334,20 +1305,8 @@ client.clients().list(
-Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications) -[API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on). - -Notes: -- We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. -- The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use -`client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` -to configure the client with client secret (basic or post) or with no authentication method (none). -- When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials. -These credentials will be automatically enabled for Private Key JWT authentication on the client. -- To configure `client_authentication_methods`, the `create:client_credentials` scope is required. -- To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - -SSO Integrations created via this endpoint will accept login requests and share user profile information. +Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the +scopes associated with the application/API pair.
@@ -1362,12 +1321,7 @@ SSO Integrations created via this endpoint will accept login requests and share
```java -client.clients().create( - CreateClientRequestContent - .builder() - .name("name") - .build() -); +client.clientGrants().get("id"); ```
@@ -1382,199 +1336,120 @@ client.clients().create(
-**name:** `String` — Name of this client (min length: 1 character, does not allow `<` or `>`). +**id:** `String` — The ID of the client grant to retrieve.
- -
-
- -**description:** `Optional` — Free text description of this client (max length: 140 characters). -
-
-
-**logoUri:** `Optional` — URL of the logo to display for this client. Recommended size is 150x150 pixels. -
+
+
client.clientGrants.delete(id)
-**callbacks:** `Optional>` — Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - -
-
+#### 📝 Description
-**oidcLogout:** `Optional` - -
-
-
-**oidcBackchannelLogout:** `Optional` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - +Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application.
- -
-
- -**sessionTransfer:** `Optional` -
-
-
- -**allowedOrigins:** `Optional>` — Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - -
-
+#### 🔌 Usage
-**webOrigins:** `Optional>` — Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - -
-
-
-**clientAliases:** `Optional>` — List of audiences/realms for SAML protocol. Used by the wsfed addon. - +```java +client.clientGrants().delete("id"); +```
- -
-
- -**allowedClients:** `Optional>` — List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. -
-
-
- -**allowedLogoutUrls:** `Optional>` — Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - -
-
+#### ⚙️ Parameters
-**grantTypes:** `Optional>` — List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - -
-
-
-**tokenEndpointAuthMethod:** `Optional` +**id:** `String` — ID of the client grant to delete.
- -
-
- -**isTokenEndpointIpHeaderTrusted:** `Optional` — If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. -
-
-
-**appType:** `Optional` -
+
+
client.clientGrants.update(id, request) -> UpdateClientGrantResponseContent
-**isFirstParty:** `Optional` — Whether this client a first party client or not - -
-
+#### 📝 Description
-**oidcConformant:** `Optional` — Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - -
-
-
-**jwtConfiguration:** `Optional` - +Update a client grant.
- -
-
- -**encryptionKey:** `Optional` -
+#### 🔌 Usage +
-**sso:** `Optional` — Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - -
-
-
-**crossOriginAuthentication:** `Optional` — Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - +```java +client.clientGrants().update( + "id", + UpdateClientGrantRequestContent + .builder() + .build() +); +```
- -
-
- -**crossOriginLoc:** `Optional` — URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. -
+#### ⚙️ Parameters +
-**ssoDisabled:** `Optional` — true to disable Single Sign On, false otherwise (default: false) - -
-
-
-**customLoginPageOn:** `Optional` — true if the custom login page is to be used, false otherwise. Defaults to true +**id:** `String` — ID of the client grant to update.
@@ -1582,7 +1457,7 @@ client.clients().create(
-**customLoginPage:** `Optional` — The content (HTML, CSS, JS) of the custom login page. +**scope:** `Optional>` — Scopes allowed for this client grant.
@@ -1590,7 +1465,7 @@ client.clients().create(
-**customLoginPagePreview:** `Optional` — The content (HTML, CSS, JS) of the custom login page. (Used on Previews) +**organizationUsage:** `Optional`
@@ -1598,7 +1473,7 @@ client.clients().create(
-**formTemplate:** `Optional` — HTML form template to be used for WS-Federation. +**allowAnyOrganization:** `Optional` — Controls allowing any organization to be used with this grant
@@ -1606,7 +1481,7 @@ client.clients().create(
-**addons:** `Optional` +**authorizationDetailsTypes:** `Optional>` — Types of authorization_details allowed for this client grant.
@@ -1614,63 +1489,100 @@ client.clients().create(
-**clientMetadata:** `Optional>` +**allowAllScopes:** `Optional` — If enabled, all scopes configured on the resource server are allowed for this grant.
- -
-
- -**mobile:** `Optional` -
-
-
-**initiateLoginUri:** `Optional` — Initiate login uri, must be https -
+
+## Clients +
client.clients.list() -> SyncPagingIterable&lt;Client&gt;
-**nativeSocialLogin:** `Optional` - -
-
+#### 📝 Description
-**fedcmLogin:** `Optional` - -
-
-
-**refreshToken:** `Optional` - +Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. +For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). + +- The following can be retrieved with any scope: + `client_id`, `app_type`, `name`, and `description`. +- The following properties can only be retrieved with the `read:clients` or + `read:client_keys` scope: + `callbacks`, `oidc_logout`, `allowed_origins`, + `web_origins`, `tenant`, `global`, `config_route`, + `callback_url_template`, `jwt_configuration`, + `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, + `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, + `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, + `custom_login_page_off`, `sso`, `addons`, `form_template`, + `custom_login_page_codeview`, `resource_servers`, `client_metadata`, + `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, + `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, + `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, + `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, + `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, + `organization_require_behavior`. +- The following properties can only be retrieved with the + `read:client_keys` or `read:client_credentials` scope: + `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, + `client_secret`, `client_authentication_methods` and `signing_key`. +
+
+#### 🔌 Usage +
-**defaultOrganization:** `Optional` - +
+
+ +```java +client.clients().list( + ListClientsRequestParameters + .builder() + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .isGlobal(true) + .isFirstParty(true) + .appType("app_type") + .externalClientId("external_client_id") + .q("q") + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**organizationUsage:** `Optional` +
+
+ +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
@@ -1678,7 +1590,7 @@ client.clients().create(
-**organizationRequireBehavior:** `Optional` +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -1686,7 +1598,7 @@ client.clients().create(
-**organizationDiscoveryMethods:** `Optional>` — Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -1694,7 +1606,7 @@ client.clients().create(
-**clientAuthenticationMethods:** `Optional` +**perPage:** `Optional` — Number of results per page. Default value is 50, maximum value is 100
@@ -1702,7 +1614,7 @@ client.clients().create(
-**requirePushedAuthorizationRequests:** `Optional` — Makes the use of Pushed Authorization Requests mandatory for this client +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -1710,7 +1622,7 @@ client.clients().create(
-**requireProofOfPossession:** `Optional` — Makes the use of Proof-of-Possession mandatory for this client +**isGlobal:** `Optional` — Optional filter on the global client parameter.
@@ -1718,7 +1630,7 @@ client.clients().create(
-**signedRequestObject:** `Optional` +**isFirstParty:** `Optional` — Optional filter on whether or not a client is a first-party client.
@@ -1726,7 +1638,7 @@ client.clients().create(
-**tokenVaultPrivilegedAccess:** `Optional` +**appType:** `Optional` — Optional filter by a comma-separated list of application types.
@@ -1734,7 +1646,7 @@ client.clients().create(
-**complianceLevel:** `Optional` +**externalClientId:** `Optional` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.
@@ -1742,35 +1654,79 @@ client.clients().create(
-**skipNonVerifiableCallbackUriConfirmationPrompt:** `Optional` - -Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). -If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. -See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. +**q:** `Optional` — Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results
+
+
+ + + + +
+
client.clients.create(request) -> CreateClientResponseContent
-**tokenExchange:** `Optional` - +#### 📝 Description + +
+
+ +
+
+ +Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications) +[API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on). + +Notes: +- We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. +- The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use +`client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` +to configure the client with client secret (basic or post) or with no authentication method (none). +- When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials. +These credentials will be automatically enabled for Private Key JWT authentication on the client. +- To configure `client_authentication_methods`, the `create:client_credentials` scope is required. +- To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. + +SSO Integrations created via this endpoint will accept login requests and share user profile information. +
+
+#### 🔌 Usage +
-**parRequestExpiry:** `Optional` — Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - +
+
+ +```java +client.clients().create( + CreateClientRequestContent + .builder() + .name("name") + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**tokenQuota:** `Optional` +
+
+ +**name:** `String` — Name of this client (min length: 1 character, does not allow `<` or `>`).
@@ -1778,7 +1734,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**resourceServerIdentifier:** `Optional` — The identifier of the resource server that this client is linked to. +**description:** `Optional` — Free text description of this client (max length: 140 characters).
@@ -1786,7 +1742,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**identityAssertionAuthorizationGrant:** `Optional` +**logoUri:** `Optional` — URL of the logo to display for this client. Recommended size is 150x150 pixels.
@@ -1794,7 +1750,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**thirdPartySecurityMode:** `Optional` +**callbacks:** `Optional>` — Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication.
@@ -1802,7 +1758,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**redirectionPolicy:** `Optional` +**oidcLogout:** `Optional`
@@ -1810,7 +1766,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**expressConfiguration:** `Optional` +**oidcBackchannelLogout:** `Optional` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
@@ -1818,7 +1774,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**myOrganizationConfiguration:** `Optional` +**sessionTransfer:** `Optional`
@@ -1826,223 +1782,167 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**asyncApprovalNotificationChannels:** `Optional>` +**allowedOrigins:** `Optional>` — Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs.
-
-
+
+
+**webOrigins:** `Optional>` — Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. +
-
-
client.clients.previewCimdMetadata(request) -> PreviewCimdMetadataResponseContent
-#### 📝 Description +**clientAliases:** `Optional>` — List of audiences/realms for SAML protocol. Used by the wsfed addon. + +
+
+**allowedClients:** `Optional>` — List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. + +
+
+
- - Fetches and validates a Client ID Metadata Document without creating a client. - Returns the raw metadata and how it would be mapped to Auth0 client fields. - This endpoint is useful for testing metadata URIs before creating CIMD clients. +**allowedLogoutUrls:** `Optional>` — Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains.
- - - -#### 🔌 Usage
+**grantTypes:** `Optional>` — List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. + +
+
+
-```java -client.clients().previewCimdMetadata( - PreviewCimdMetadataRequestContent - .builder() - .externalClientId("external_client_id") - .build() -); -``` -
-
+**tokenEndpointAuthMethod:** `Optional` + -#### ⚙️ Parameters -
+**isTokenEndpointIpHeaderTrusted:** `Optional` — If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. + +
+
+
-**externalClientId:** `String` — URL to the Client ID Metadata Document +**appType:** `Optional`
- - +
+
+**isFirstParty:** `Optional` — Whether this client a first party client or not +
-
-
client.clients.registerCimdClient(request) -> RegisterCimdClientResponseContent
-#### 📝 Description +**oidcConformant:** `Optional` — Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). + +
+
+**jwtConfiguration:** `Optional` + +
+
+
-Idempotent registration for Client ID Metadata Document (CIMD) clients. -Uses external_client_id as the unique identifier for upsert operations. +**encryptionKey:** `Optional` + +
+
-**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) +**sso:** `Optional` — Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). +
+ +
+
+ +**crossOriginAuthentication:** `Optional` — Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). +
-#### 🔌 Usage -
+**crossOriginLoc:** `Optional` — URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. + +
+
+
-```java -client.clients().registerCimdClient( - RegisterCimdClientRequestContent - .builder() - .externalClientId("external_client_id") - .build() -); -``` -
-
+**ssoDisabled:** `Optional` — true to disable Single Sign On, false otherwise (default: false) + -#### ⚙️ Parameters - -
-
-
-**externalClientId:** `String` — URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. +**customLoginPageOn:** `Optional` — true if the custom login page is to be used, false otherwise. Defaults to true
-
-
- - - - -
- -
client.clients.get(id) -> GetClientResponseContent -
-
- -#### 📝 Description - -
-
-Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. -For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - -- The following properties can be retrieved with any of the scopes: - `client_id`, `app_type`, `name`, and `description`. -- The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scopes: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_off`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. -- The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. -
-
+**customLoginPage:** `Optional` — The content (HTML, CSS, JS) of the custom login page. +
-#### 🔌 Usage -
-
-
- -```java -client.clients().get( - "id", - GetClientRequestParameters - .builder() - .fields("fields") - .includeFields(true) - .build() -); -``` -
-
+**customLoginPagePreview:** `Optional` — The content (HTML, CSS, JS) of the custom login page. (Used on Previews) +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — ID of the client to retrieve. +**formTemplate:** `Optional` — HTML form template to be used for WS-Federation.
@@ -2050,7 +1950,7 @@ client.clients().get(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**addons:** `Optional`
@@ -2058,128 +1958,55 @@ client.clients().get(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**clientMetadata:** `Optional>`
-
-
- - -
-
-
- -
client.clients.delete(id) -
-
- -#### 📝 Description - -
-
-Delete a client and related configuration (rules, connections, etc). -
-
+**mobile:** `Optional` +
-#### 🔌 Usage - -
-
-
-```java -client.clients().delete("id"); -``` -
-
+**initiateLoginUri:** `Optional` — Initiate login uri, must be https +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — ID of the client to delete. +**nativeSocialLogin:** `Optional`
-
-
- - -
-
-
- -
client.clients.update(id, request) -> UpdateClientResponseContent -
-
- -#### 📝 Description - -
-
-Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - -Notes: -- The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. -- The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none). -- When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. -- To configure `client_authentication_methods`, the `update:client_credentials` scope is required. -- To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. -- To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset. -
-
+**fedcmLogin:** `Optional` +
-#### 🔌 Usage - -
-
-
-```java -client.clients().update( - "id", - UpdateClientRequestContent - .builder() - .build() -); -``` -
-
+**refreshToken:** `Optional` +
-#### ⚙️ Parameters -
-
-
- -**id:** `String` — ID of the client to update. +**defaultOrganization:** `Optional`
@@ -2187,7 +2014,7 @@ client.clients().update(
-**name:** `Optional` — The name of the client. Must contain at least one character. Does not allow '<' or '>'. +**organizationUsage:** `Optional`
@@ -2195,7 +2022,7 @@ client.clients().update(
-**description:** `Optional` — Free text description of the purpose of the Client. (Max character length: 140) +**organizationRequireBehavior:** `Optional`
@@ -2203,7 +2030,7 @@ client.clients().update(
-**clientSecret:** `Optional` — The secret used to sign tokens for the client +**organizationDiscoveryMethods:** `Optional>` — Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both.
@@ -2211,7 +2038,7 @@ client.clients().update(
-**logoUri:** `Optional` — The URL of the client logo (recommended size: 150x150) +**clientAuthenticationMethods:** `Optional`
@@ -2219,7 +2046,7 @@ client.clients().update(
-**callbacks:** `Optional>` — A set of URLs that are valid to call back from Auth0 when authenticating users +**requirePushedAuthorizationRequests:** `Optional` — Makes the use of Pushed Authorization Requests mandatory for this client
@@ -2227,7 +2054,7 @@ client.clients().update(
-**oidcLogout:** `Optional` +**requireProofOfPossession:** `Optional` — Makes the use of Proof-of-Possession mandatory for this client
@@ -2235,7 +2062,7 @@ client.clients().update(
-**oidcBackchannelLogout:** `Optional` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) +**signedRequestObject:** `Optional`
@@ -2243,7 +2070,7 @@ client.clients().update(
-**sessionTransfer:** `Optional` +**tokenVaultPrivilegedAccess:** `Optional`
@@ -2251,7 +2078,7 @@ client.clients().update(
-**allowedOrigins:** `Optional>` — A set of URLs that represents valid origins for CORS +**complianceLevel:** `Optional`
@@ -2259,7 +2086,11 @@ client.clients().update(
-**webOrigins:** `Optional>` — A set of URLs that represents valid web origins for use with web message response mode +**skipNonVerifiableCallbackUriConfirmationPrompt:** `Optional` + +Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). +If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. +See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information.
@@ -2267,7 +2098,7 @@ client.clients().update(
-**grantTypes:** `Optional>` — A set of grant types that the client is authorized to use. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. +**tokenExchange:** `Optional`
@@ -2275,7 +2106,7 @@ client.clients().update(
-**clientAliases:** `Optional>` — List of audiences for SAML protocol +**parRequestExpiry:** `Optional` — Specifies how long, in seconds, a Pushed Authorization Request URI remains valid
@@ -2283,7 +2114,7 @@ client.clients().update(
-**allowedClients:** `Optional>` — Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients +**tokenQuota:** `Optional`
@@ -2291,7 +2122,7 @@ client.clients().update(
-**allowedLogoutUrls:** `Optional>` — URLs that are valid to redirect to after logout from Auth0 +**resourceServerIdentifier:** `Optional` — The identifier of the resource server that this client is linked to.
@@ -2299,7 +2130,7 @@ client.clients().update(
-**jwtConfiguration:** `Optional` — An object that holds settings related to how JWTs are created +**identityAssertionAuthorizationGrant:** `Optional`
@@ -2307,7 +2138,7 @@ client.clients().update(
-**encryptionKey:** `Optional` — The client's encryption key +**thirdPartySecurityMode:** `Optional`
@@ -2315,7 +2146,7 @@ client.clients().update(
-**sso:** `Optional` — true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) +**redirectionPolicy:** `Optional`
@@ -2323,7 +2154,7 @@ client.clients().update(
-**crossOriginAuthentication:** `Optional` — true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled +**expressConfiguration:** `Optional`
@@ -2331,7 +2162,7 @@ client.clients().update(
-**crossOriginLoc:** `Optional` — URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. +**myOrganizationConfiguration:** `Optional`
@@ -2339,283 +2170,223 @@ client.clients().update(
-**ssoDisabled:** `Optional` — true to disable Single Sign On, false otherwise (default: false) +**asyncApprovalNotificationChannels:** `Optional>`
+
+
-
-
-**customLoginPageOn:** `Optional` — true if the custom login page is to be used, false otherwise. -
+
+
client.clients.previewCimdMetadata(request) -> PreviewCimdMetadataResponseContent
-**tokenEndpointAuthMethod:** `Optional` - -
-
+#### 📝 Description
-**isTokenEndpointIpHeaderTrusted:** `Optional` — If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - -
-
-
-**appType:** `Optional` + + Fetches and validates a Client ID Metadata Document without creating a client. + Returns the raw metadata and how it would be mapped to Auth0 client fields. + This endpoint is useful for testing metadata URIs before creating CIMD clients.
+ + + +#### 🔌 Usage
-**isFirstParty:** `Optional` — Whether this client a first party client or not - -
-
-
-**oidcConformant:** `Optional` — Whether this client will conform to strict OIDC specifications - +```java +client.clients().previewCimdMetadata( + PreviewCimdMetadataRequestContent + .builder() + .externalClientId("external_client_id") + .build() +); +```
- -
-
- -**customLoginPage:** `Optional` — The content (HTML, CSS, JS) of the custom login page -
-
-
- -**customLoginPagePreview:** `Optional` - -
-
+#### ⚙️ Parameters
-**tokenQuota:** `Optional` - -
-
-
-**identityAssertionAuthorizationGrant:** `Optional` +**externalClientId:** `String` — URL to the Client ID Metadata Document
- -
-
- -**formTemplate:** `Optional` — Form template for WS-Federation protocol -
-
-
-**addons:** `Optional` -
+
+
client.clients.registerCimdClient(request) -> RegisterCimdClientResponseContent
-**clientMetadata:** `Optional>` - -
-
+#### 📝 Description
-**mobile:** `Optional` — Configuration related to native mobile apps - -
-
-
-**initiateLoginUri:** `Optional` — Initiate login uri, must be https - -
-
+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). -**nativeSocialLogin:** `Optional` - +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)
- -
-
- -**fedcmLogin:** `Optional` -
-
-
- -**refreshToken:** `Optional` - -
-
+#### 🔌 Usage
-**defaultOrganization:** `Optional` - -
-
-
-**organizationUsage:** `Optional` - +```java +client.clients().registerCimdClient( + RegisterCimdClientRequestContent + .builder() + .externalClientId("external_client_id") + .build() +); +```
- -
-
- -**organizationRequireBehavior:** `Optional` -
-
-
- -**organizationDiscoveryMethods:** `Optional>` — Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - -
-
+#### ⚙️ Parameters
-**clientAuthenticationMethods:** `Optional` - -
-
-
-**requirePushedAuthorizationRequests:** `Optional` — Makes the use of Pushed Authorization Requests mandatory for this client +**externalClientId:** `String` — URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.
- -
-
- -**requireProofOfPossession:** `Optional` — Makes the use of Proof-of-Possession mandatory for this client -
-
-
-**signedRequestObject:** `Optional` -
+
+
client.clients.get(id) -> GetClientResponseContent
-**tokenVaultPrivilegedAccess:** `Optional` - -
-
+#### 📝 Description
-**complianceLevel:** `Optional` - -
-
-
-**skipNonVerifiableCallbackUriConfirmationPrompt:** `Optional` +Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. +For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). -Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). -If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. -See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - +- The following properties can be retrieved with any of the scopes: + `client_id`, `app_type`, `name`, and `description`. +- The following properties can only be retrieved with the `read:clients` or + `read:client_keys` scopes: + `callbacks`, `oidc_logout`, `allowed_origins`, + `web_origins`, `tenant`, `global`, `config_route`, + `callback_url_template`, `jwt_configuration`, + `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, + `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, + `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, + `custom_login_page_off`, `sso`, `addons`, `form_template`, + `custom_login_page_codeview`, `resource_servers`, `client_metadata`, + `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, + `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, + `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, + `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, + `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, + `organization_require_behavior`. +- The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes: + `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, + `client_secret`, `client_authentication_methods` and `signing_key`.
- -
-
- -**tokenExchange:** `Optional` -
+#### 🔌 Usage +
-**parRequestExpiry:** `Optional` — Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - -
-
-
-**expressConfiguration:** `Optional` - +```java +client.clients().get( + "id", + GetClientRequestParameters + .builder() + .fields("fields") + .includeFields(true) + .build() +); +```
+ + + +#### ⚙️ Parameters
-**myOrganizationConfiguration:** `Optional` - -
-
-
-**asyncApprovalNotificationChannels:** `Optional>` +**id:** `String` — ID of the client to retrieve.
@@ -2623,7 +2394,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**thirdPartySecurityMode:** `Optional` +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
@@ -2631,7 +2402,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-**redirectionPolicy:** `Optional` +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -2643,7 +2414,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-
client.clients.rotateSecret(id) -> RotateClientSecretResponseContent +
client.clients.delete(id)
@@ -2655,11 +2426,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
-Rotate a client secret. - -This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. - -For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret). +Delete a client and related configuration (rules, connections, etc).
@@ -2674,7 +2441,7 @@ For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/ge
```java -client.clients().rotateSecret("id"); +client.clients().delete("id"); ```
@@ -2689,7 +2456,7 @@ client.clients().rotateSecret("id");
-**id:** `String` — ID of the client that will rotate secrets. +**id:** `String` — ID of the client to delete.
@@ -2701,8 +2468,7 @@ client.clients().rotateSecret("id");
-## ConnectionProfiles -
client.connectionProfiles.list() -> SyncPagingIterable&lt;ConnectionProfile&gt; +
client.clients.update(id, request) -> UpdateClientResponseContent
@@ -2714,7 +2480,15 @@ client.clients().rotateSecret("id");
-Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. +Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). + +Notes: +- The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. +- The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none). +- When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. +- To configure `client_authentication_methods`, the `update:client_credentials` scope is required. +- To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. +- To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset.
@@ -2729,11 +2503,10 @@ Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagina
```java -client.connectionProfiles().list( - ListConnectionProfileRequestParameters +client.clients().update( + "id", + UpdateClientRequestContent .builder() - .from("from") - .take(1) .build() ); ``` @@ -2750,7 +2523,7 @@ client.connectionProfiles().list(
-**from:** `Optional` — Optional Id from which to start selection. +**id:** `String` — ID of the client to update.
@@ -2758,66 +2531,71 @@ client.connectionProfiles().list(
-**take:** `Optional` — Number of results per page. Defaults to 5. +**name:** `Optional` — The name of the client. Must contain at least one character. Does not allow '<' or '>'.
-
-
+
+
-
+**description:** `Optional` — Free text description of the purpose of the Client. (Max character length: 140) + +
-
-
client.connectionProfiles.create(request) -> CreateConnectionProfileResponseContent
-#### 📝 Description +**clientSecret:** `Optional` — The secret used to sign tokens for the client + +
+
+**logoUri:** `Optional` — The URL of the client logo (recommended size: 150x150) + +
+
+
-Create a Connection Profile. -
-
+**callbacks:** `Optional>` — A set of URLs that are valid to call back from Auth0 when authenticating users + -#### 🔌 Usage -
+**oidcLogout:** `Optional` + +
+
+
-```java -client.connectionProfiles().create( - CreateConnectionProfileRequestContent - .builder() - .name("name") - .build() -); -``` -
-
+**oidcBackchannelLogout:** `Optional` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) + -#### ⚙️ Parameters -
+**sessionTransfer:** `Optional` + +
+
+
-**name:** `String` +**allowedOrigins:** `Optional>` — A set of URLs that represents valid origins for CORS
@@ -2825,7 +2603,7 @@ client.connectionProfiles().create(
-**organization:** `Optional` +**webOrigins:** `Optional>` — A set of URLs that represents valid web origins for use with web message response mode
@@ -2833,7 +2611,7 @@ client.connectionProfiles().create(
-**connectionNamePrefixTemplate:** `Optional` +**grantTypes:** `Optional>` — A set of grant types that the client is authorized to use. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`.
@@ -2841,7 +2619,7 @@ client.connectionProfiles().create(
-**enabledFeatures:** `Optional>` +**clientAliases:** `Optional>` — List of audiences for SAML protocol
@@ -2849,7 +2627,7 @@ client.connectionProfiles().create(
-**connectionConfig:** `Optional` +**allowedClients:** `Optional>` — Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients
@@ -2857,267 +2635,299 @@ client.connectionProfiles().create(
-**strategyOverrides:** `Optional` +**allowedLogoutUrls:** `Optional>` — URLs that are valid to redirect to after logout from Auth0
- - +
+
+**jwtConfiguration:** `Optional` — An object that holds settings related to how JWTs are created +
-
-
client.connectionProfiles.listTemplates() -> ListConnectionProfileTemplateResponseContent
-#### 📝 Description +**encryptionKey:** `Optional` — The client's encryption key + +
+
+**sso:** `Optional` — true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) + +
+
+
-Retrieve a list of Connection Profile Templates. -
-
+**crossOriginAuthentication:** `Optional` — true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled + -#### 🔌 Usage -
+**crossOriginLoc:** `Optional` — URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. + +
+
+
-```java -client.connectionProfiles().listTemplates(); -``` -
-
+**ssoDisabled:** `Optional` — true to disable Single Sign On, false otherwise (default: false) + +
+
+**customLoginPageOn:** `Optional` — true if the custom login page is to be used, false otherwise. +
-
-
client.connectionProfiles.getTemplate(id) -> GetConnectionProfileTemplateResponseContent
-#### 📝 Description +**tokenEndpointAuthMethod:** `Optional` + +
+
+**isTokenEndpointIpHeaderTrusted:** `Optional` — If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. + +
+
+
-Retrieve a Connection Profile Template. -
-
+**appType:** `Optional` + -#### 🔌 Usage -
+**isFirstParty:** `Optional` — Whether this client a first party client or not + +
+
+
-```java -client.connectionProfiles().getTemplate("id"); -``` -
-
+**oidcConformant:** `Optional` — Whether this client will conform to strict OIDC specifications + -#### ⚙️ Parameters -
+**customLoginPage:** `Optional` — The content (HTML, CSS, JS) of the custom login page + +
+
+
-**id:** `String` — ID of the connection-profile-template to retrieve. +**customLoginPagePreview:** `Optional`
- - +
+
+**tokenQuota:** `Optional` +
-
-
client.connectionProfiles.get(id) -> GetConnectionProfileResponseContent
-#### 📝 Description +**identityAssertionAuthorizationGrant:** `Optional` + +
+
+**formTemplate:** `Optional` — Form template for WS-Federation protocol + +
+
+
-Retrieve details about a single Connection Profile specified by ID. -
-
+**addons:** `Optional` + -#### 🔌 Usage -
+**clientMetadata:** `Optional>` + +
+
+
-```java -client.connectionProfiles().get("id"); -``` -
-
+**mobile:** `Optional` — Configuration related to native mobile apps + -#### ⚙️ Parameters -
+**initiateLoginUri:** `Optional` — Initiate login uri, must be https + +
+
+
-**id:** `String` — ID of the connection-profile to retrieve. +**nativeSocialLogin:** `Optional`
- - +
+
+**fedcmLogin:** `Optional` +
-
-
client.connectionProfiles.delete(id)
-#### 📝 Description +**refreshToken:** `Optional` + +
+
+**defaultOrganization:** `Optional` + +
+
+
-Delete a single Connection Profile specified by ID. -
-
+**organizationUsage:** `Optional` + -#### 🔌 Usage -
+**organizationRequireBehavior:** `Optional` + +
+
+
-```java -client.connectionProfiles().delete("id"); -``` -
-
+**organizationDiscoveryMethods:** `Optional>` — Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. + -#### ⚙️ Parameters -
+**clientAuthenticationMethods:** `Optional` + +
+
+
-**id:** `String` — ID of the connection-profile to delete. +**requirePushedAuthorizationRequests:** `Optional` — Makes the use of Pushed Authorization Requests mandatory for this client
- - +
+
+**requireProofOfPossession:** `Optional` — Makes the use of Proof-of-Possession mandatory for this client +
-
-
client.connectionProfiles.update(id, request) -> UpdateConnectionProfileResponseContent
-#### 📝 Description +**signedRequestObject:** `Optional` + +
+
+**tokenVaultPrivilegedAccess:** `Optional` + +
+
+
-Update the details of a specific Connection Profile. -
-
+**complianceLevel:** `Optional` + -#### 🔌 Usage -
-
-
+**skipNonVerifiableCallbackUriConfirmationPrompt:** `Optional` -```java -client.connectionProfiles().update( - "id", - UpdateConnectionProfileRequestContent - .builder() - .build() -); -``` -
-
+Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). +If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. +See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — ID of the connection profile to update. +**tokenExchange:** `Optional`
@@ -3125,7 +2935,7 @@ client.connectionProfiles().update(
-**name:** `Optional` +**parRequestExpiry:** `Optional` — Specifies how long, in seconds, a Pushed Authorization Request URI remains valid
@@ -3133,7 +2943,7 @@ client.connectionProfiles().update(
-**organization:** `Optional` +**expressConfiguration:** `Optional`
@@ -3141,7 +2951,7 @@ client.connectionProfiles().update(
-**connectionNamePrefixTemplate:** `Optional` +**myOrganizationConfiguration:** `Optional`
@@ -3149,7 +2959,7 @@ client.connectionProfiles().update(
-**enabledFeatures:** `Optional>` +**asyncApprovalNotificationChannels:** `Optional>`
@@ -3157,7 +2967,7 @@ client.connectionProfiles().update(
-**connectionConfig:** `Optional` +**thirdPartySecurityMode:** `Optional`
@@ -3165,7 +2975,7 @@ client.connectionProfiles().update(
-**strategyOverrides:** `Optional` +**redirectionPolicy:** `Optional`
@@ -3177,8 +2987,7 @@ client.connectionProfiles().update(
-## Connections -
client.connections.list() -> SyncPagingIterable&lt;ConnectionForList&gt; +
client.clients.rotateSecret(id) -> RotateClientSecretResponseContent
@@ -3190,23 +2999,11 @@ client.connectionProfiles().update(
-Retrieves detailed list of all [connections](https://auth0.com/docs/authenticate/identity-providers) that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. - -This endpoint supports two types of pagination: - -- Offset pagination -- Checkpoint pagination - -Checkpoint pagination must be used if you need to retrieve more than 1000 connections. - -**Checkpoint Pagination** - -To search by checkpoint, use the following parameters: +Rotate a client secret. -- `from`: Optional id from which to start selection. -- `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. +This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. -**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. +For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret).
@@ -3221,19 +3018,7 @@ To search by checkpoint, use the following parameters:
```java -client.connections().list( - ListConnectionsQueryParameters - .builder() - .from("from") - .take(1) - .name("name") - .fields("fields") - .includeFields(true) - .strategy( - Arrays.asList(ConnectionStrategyEnum.AD) - ) - .build() -); +client.clients().rotateSecret("id"); ```
@@ -3248,39 +3033,68 @@ client.connections().list(
-**from:** `Optional` — Optional Id from which to start selection. +**id:** `String` — ID of the client that will rotate secrets.
+ + -
-
-**take:** `Optional` — Number of results per page. Defaults to 50. -
+
+## ConnectionProfiles +
client.connectionProfiles.list() -> SyncPagingIterable&lt;ConnectionProfile&gt;
-**strategy:** `Optional` — Provide strategies to only retrieve connections with such strategies - +#### 📝 Description + +
+
+ +
+
+ +Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. +
+
+#### 🔌 Usage +
-**name:** `Optional` — Provide the name of the connection to retrieve - +
+
+ +```java +client.connectionProfiles().list( + ListConnectionProfileRequestParameters + .builder() + .from("from") + .take(1) + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields +
+
+ +**from:** `Optional` — Optional Id from which to start selection.
@@ -3288,7 +3102,7 @@ client.connections().list(
-**includeFields:** `Optional` — true if the fields specified are to be included in the result, false otherwise (defaults to true) +**take:** `Optional` — Number of results per page. Defaults to 5.
@@ -3300,7 +3114,7 @@ client.connections().list(
-
client.connections.create(request) -> CreateConnectionResponseContent +
client.connectionProfiles.create(request) -> CreateConnectionProfileResponseContent
@@ -3312,9 +3126,7 @@ client.connections().list(
-Creates a new connection according to the JSON object received in `body`. - -**Note:** If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results. +Create a Connection Profile.
@@ -3329,11 +3141,10 @@ Creates a new connection according to the JSON object received in `body`.
```java -client.connections().create( - CreateConnectionRequestContent +client.connectionProfiles().create( + CreateConnectionProfileRequestContent .builder() .name("name") - .strategy(ConnectionIdentityProviderEnum.AD) .build() ); ``` @@ -3350,7 +3161,7 @@ client.connections().create(
-**name:** `String` — The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 +**name:** `String`
@@ -3358,7 +3169,7 @@ client.connections().create(
-**displayName:** `Optional` — Connection name used in the new universal login experience +**organization:** `Optional`
@@ -3366,7 +3177,7 @@ client.connections().create(
-**strategy:** `ConnectionIdentityProviderEnum` +**connectionNamePrefixTemplate:** `Optional`
@@ -3374,7 +3185,7 @@ client.connections().create(
-**options:** `Optional` +**enabledFeatures:** `Optional>`
@@ -3382,7 +3193,7 @@ client.connections().create(
-**enabledClients:** `Optional>` — Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. +**connectionConfig:** `Optional`
@@ -3390,64 +3201,47 @@ client.connections().create(
-**isDomainConnection:** `Optional` — true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) +**strategyOverrides:** `Optional`
- -
-
- -**showAsButton:** `Optional` — Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) -
-
-
-**realms:** `Optional>` — Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. -
+
+
client.connectionProfiles.listTemplates() -> ListConnectionProfileTemplateResponseContent
-**metadata:** `Optional>>` - -
-
+#### 📝 Description
-**authentication:** `Optional` - -
-
-
-**connectedAccounts:** `Optional` - +Retrieve a list of Connection Profile Templates. +
+
+#### 🔌 Usage +
-**crossAppAccessRequestingApp:** `Optional` - -
-
-
-**crossAppAccessResourceApp:** `Optional` - +```java +client.connectionProfiles().listTemplates(); +```
@@ -3458,7 +3252,7 @@ client.connections().create(
-
client.connections.get(id) -> GetConnectionResponseContent +
client.connectionProfiles.getTemplate(id) -> GetConnectionProfileTemplateResponseContent
@@ -3470,7 +3264,7 @@ client.connections().create(
-Retrieve details for a specified [connection](https://auth0.com/docs/authenticate/identity-providers) along with options that can be used for identity provider configuration. +Retrieve a Connection Profile Template.
@@ -3485,14 +3279,7 @@ Retrieve details for a specified [connection](https://auth0.com/docs/authenticat
```java -client.connections().get( - "id", - GetConnectionRequestParameters - .builder() - .fields("fields") - .includeFields(true) - .build() -); +client.connectionProfiles().getTemplate("id"); ```
@@ -3507,23 +3294,7 @@ client.connections().get(
-**id:** `String` — The id of the connection to retrieve - -
-
- -
-
- -**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - -
-
- -
-
- -**includeFields:** `Optional` — true if the fields specified are to be included in the result, false otherwise (defaults to true) +**id:** `String` — ID of the connection-profile-template to retrieve.
@@ -3535,7 +3306,7 @@ client.connections().get(
-
client.connections.delete(id) +
client.connectionProfiles.get(id) -> GetConnectionProfileResponseContent
@@ -3547,9 +3318,7 @@ client.connections().get(
-Removes a specific [connection](https://auth0.com/docs/authenticate/identity-providers) from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - -**Note:** If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent [create connection](https://auth0.com/docs/api/management/v2/connections/post-connections) requests, if they use an identical connection name. +Retrieve details about a single Connection Profile specified by ID.
@@ -3564,7 +3333,7 @@ Removes a specific [connection](https://auth0.com/docs/authenticate/identity-pro
```java -client.connections().delete("id"); +client.connectionProfiles().get("id"); ```
@@ -3579,7 +3348,7 @@ client.connections().delete("id");
-**id:** `String` — The id of the connection to delete +**id:** `String` — ID of the connection-profile to retrieve.
@@ -3591,7 +3360,7 @@ client.connections().delete("id");
-
client.connections.update(id, request) -> UpdateConnectionResponseContent +
client.connectionProfiles.delete(id)
@@ -3603,9 +3372,7 @@ client.connections().delete("id");
-Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration. - -**Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. +Delete a single Connection Profile specified by ID.
@@ -3620,12 +3387,7 @@ Update details for a specific [connection](https://auth0.com/docs/authenticate/i
```java -client.connections().update( - "id", - UpdateConnectionRequestContent - .builder() - .build() -); +client.connectionProfiles().delete("id"); ```
@@ -3640,47 +3402,66 @@ client.connections().update(
-**id:** `String` — The id of the connection to update +**id:** `String` — ID of the connection-profile to delete.
+ + -
-
-**displayName:** `Optional` — The connection name used in the new universal login experience. If display_name is not included in the request, the field will be overwritten with the name value. -
+
+
client.connectionProfiles.update(id, request) -> UpdateConnectionProfileResponseContent
-**options:** `Optional` - -
-
+#### 📝 Description
-**enabledClients:** `Optional>` — DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. - -
+
+
+ +Update the details of a specific Connection Profile. +
+
+
+#### 🔌 Usage +
-**isDomainConnection:** `Optional` — true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - +
+
+ +```java +client.connectionProfiles().update( + "id", + UpdateConnectionProfileRequestContent + .builder() + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**showAsButton:** `Optional` — Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) +
+
+ +**id:** `String` — ID of the connection profile to update.
@@ -3688,7 +3469,7 @@ client.connections().update(
-**realms:** `Optional>` — Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. +**name:** `Optional`
@@ -3696,7 +3477,7 @@ client.connections().update(
-**metadata:** `Optional>>` +**organization:** `Optional`
@@ -3704,7 +3485,7 @@ client.connections().update(
-**authentication:** `Optional` +**connectionNamePrefixTemplate:** `Optional`
@@ -3712,7 +3493,7 @@ client.connections().update(
-**connectedAccounts:** `Optional` +**enabledFeatures:** `Optional>`
@@ -3720,7 +3501,7 @@ client.connections().update(
-**crossAppAccessRequestingApp:** `Optional` +**connectionConfig:** `Optional`
@@ -3728,7 +3509,7 @@ client.connections().update(
-**crossAppAccessResourceApp:** `Optional` +**strategyOverrides:** `Optional`
@@ -3740,7 +3521,8 @@ client.connections().update(
-
client.connections.checkStatus(id) +## Connections +
client.connections.list() -> SyncPagingIterable&lt;ConnectionForList&gt;
@@ -3752,7 +3534,23 @@ client.connections().update(
-Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` http status code response is returned when the connection is online, otherwise a `404` status code is returned along with an error message +Retrieves detailed list of all [connections](https://auth0.com/docs/authenticate/identity-providers) that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + +This endpoint supports two types of pagination: + +- Offset pagination +- Checkpoint pagination + +Checkpoint pagination must be used if you need to retrieve more than 1000 connections. + +**Checkpoint Pagination** + +To search by checkpoint, use the following parameters: + +- `from`: Optional id from which to start selection. +- `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. + +**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining.
@@ -3767,7 +3565,20 @@ Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` h
```java -client.connections().checkStatus("id"); +client.connections().list( + ListConnectionsQueryParameters + .builder() + .includeTotals(true) + .from("from") + .take(1) + .name("name") + .fields("fields") + .includeFields(true) + .strategy( + Arrays.asList(ConnectionStrategyEnum.AD) + ) + .build() +); ```
@@ -3782,70 +3593,31 @@ client.connections().checkStatus("id");
-**id:** `String` — ID of the connection to check +**includeTotals:** `Optional` — true if a query summary must be included in the result, false otherwise. Not returned when using checkpoint pagination. Default false.
- - - - - - -
- -## CustomDomains -
client.customDomains.list() -> List&lt;CustomDomain&gt; -
-
- -#### 📝 Description - -
-
-Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). -
-
+**from:** `Optional` — Optional Id from which to start selection. +
-#### 🔌 Usage -
-
-
- -```java -client.customDomains().list( - ListCustomDomainsRequestParameters - .builder() - .q("q") - .fields("fields") - .includeFields(true) - .sort("sort") - .build() -); -``` -
-
+**take:** `Optional` — Number of results per page. Defaults to 50. +
-#### ⚙️ Parameters -
-
-
- -**q:** `Optional` — Query in Lucene query string syntax. +**strategy:** `Optional` — Provide strategies to only retrieve connections with such strategies
@@ -3853,7 +3625,7 @@ client.customDomains().list(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**name:** `Optional` — Provide the name of the connection to retrieve
@@ -3861,7 +3633,7 @@ client.customDomains().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields
@@ -3869,7 +3641,7 @@ client.customDomains().list(
-**sort:** `Optional` — Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. +**includeFields:** `Optional` — true if the fields specified are to be included in the result, false otherwise (defaults to true)
@@ -3881,7 +3653,7 @@ client.customDomains().list(
-
client.customDomains.create(request) -> CreateCustomDomainResponseContent +
client.connections.create(request) -> CreateConnectionResponseContent
@@ -3893,19 +3665,9 @@ client.customDomains().list(
-Create a new custom domain. - -Note: The custom domain will need to be verified before it will accept -requests. - -Optional attributes that can be updated: - -- custom_client_ip_header -- tls_policy - -TLS Policies: +Creates a new connection according to the JSON object received in `body`. -- recommended - for modern usage this includes TLS 1.2 only +**Note:** If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.
@@ -3920,11 +3682,11 @@ TLS Policies:
```java -client.customDomains().create( - CreateCustomDomainRequestContent +client.connections().create( + CreateConnectionRequestContent .builder() - .domain("domain") - .type(CustomDomainProvisioningTypeEnum.AUTH0MANAGED_CERTS) + .name("name") + .strategy(ConnectionIdentityProviderEnum.AD) .build() ); ``` @@ -3941,7 +3703,7 @@ client.customDomains().create(
-**domain:** `String` — Domain name. +**name:** `String` — The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128
@@ -3949,7 +3711,7 @@ client.customDomains().create(
-**type:** `CustomDomainProvisioningTypeEnum` +**displayName:** `Optional` — Connection name used in the new universal login experience
@@ -3957,7 +3719,7 @@ client.customDomains().create(
-**verificationMethod:** `Optional` +**strategy:** `ConnectionIdentityProviderEnum`
@@ -3965,7 +3727,7 @@ client.customDomains().create(
-**tlsPolicy:** `Optional` +**options:** `Optional`
@@ -3973,7 +3735,7 @@ client.customDomains().create(
-**customClientIpHeader:** `Optional` +**enabledClients:** `Optional>` — Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.
@@ -3981,7 +3743,7 @@ client.customDomains().create(
-**domainMetadata:** `Optional>>` +**isDomainConnection:** `Optional` — true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)
@@ -3989,47 +3751,56 @@ client.customDomains().create(
-**relyingPartyIdentifier:** `Optional` — Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. +**showAsButton:** `Optional` — Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)
-
-
+
+
+**realms:** `Optional>` — Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. +
-
-
client.customDomains.getDefault() -> GetDefaultDomainResponseContent
-#### 📝 Description +**metadata:** `Optional>>` + +
+
+**authentication:** `Optional` + +
+
+
-Retrieve the tenant's default domain. -
-
+**connectedAccounts:** `Optional` + -#### 🔌 Usage -
+**crossAppAccessRequestingApp:** `Optional` + +
+
+
-```java -client.customDomains().getDefault(); -``` +**crossAppAccessResourceApp:** `Optional` +
@@ -4040,7 +3811,7 @@ client.customDomains().getDefault();
-
client.customDomains.setDefault(request) -> UpdateDefaultDomainResponseContent +
client.connections.get(id) -> GetConnectionResponseContent
@@ -4052,7 +3823,7 @@ client.customDomains().getDefault();
-Set the default custom domain for the tenant. +Retrieve details for a specified [connection](https://auth0.com/docs/authenticate/identity-providers) along with options that can be used for identity provider configuration.
@@ -4067,10 +3838,12 @@ Set the default custom domain for the tenant.
```java -client.customDomains().setDefault( - SetDefaultCustomDomainRequestContent +client.connections().get( + "id", + GetConnectionRequestParameters .builder() - .domain("domain") + .fields("fields") + .includeFields(true) .build() ); ``` @@ -4087,7 +3860,23 @@ client.customDomains().setDefault(
-**domain:** `String` — The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. +**id:** `String` — The id of the connection to retrieve + +
+
+ +
+
+ +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + +
+
+ +
+
+ +**includeFields:** `Optional` — true if the fields specified are to be included in the result, false otherwise (defaults to true)
@@ -4099,7 +3888,7 @@ client.customDomains().setDefault(
-
client.customDomains.get(id) -> GetCustomDomainResponseContent +
client.connections.delete(id)
@@ -4111,7 +3900,9 @@ client.customDomains().setDefault(
-Retrieve a custom domain configuration and status. +Removes a specific [connection](https://auth0.com/docs/authenticate/identity-providers) from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + +**Note:** If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent [create connection](https://auth0.com/docs/api/management/v2/connections/post-connections) requests, if they use an identical connection name.
@@ -4126,7 +3917,7 @@ Retrieve a custom domain configuration and status.
```java -client.customDomains().get("id"); +client.connections().delete("id"); ```
@@ -4141,7 +3932,7 @@ client.customDomains().get("id");
-**id:** `String` — ID of the custom domain to retrieve. +**id:** `String` — The id of the connection to delete
@@ -4153,7 +3944,7 @@ client.customDomains().get("id");
-
client.customDomains.delete(id) +
client.connections.update(id, request) -> UpdateConnectionResponseContent
@@ -4165,7 +3956,9 @@ client.customDomains().get("id");
-Delete a custom domain and stop serving requests for it. +Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration. + +**Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option.
@@ -4180,8 +3973,13 @@ Delete a custom domain and stop serving requests for it.
```java -client.customDomains().delete("id"); -``` +client.connections().update( + "id", + UpdateConnectionRequestContent + .builder() + .build() +); +```
@@ -4195,97 +3993,63 @@ client.customDomains().delete("id");
-**id:** `String` — ID of the custom domain to delete. +**id:** `String` — The id of the connection to update
- - +
+
+**displayName:** `Optional` — The connection name used in the new universal login experience. If display_name is not included in the request, the field will be overwritten with the name value. +
-
-
client.customDomains.update(id, request) -> UpdateCustomDomainResponseContent
-#### 📝 Description - -
-
+**options:** `Optional` + +
+
-Update a custom domain. - -These are the attributes that can be updated: - -- custom_client_ip_header -- tls_policy - -**Updating CUSTOM_CLIENT_IP_HEADER for a custom domain** - -To update the `custom_client_ip_header` for a domain, the body to -send should be: - -```json -{ "custom_client_ip_header": "cf-connecting-ip" } -``` - -**Updating TLS_POLICY for a custom domain** - -To update the `tls_policy` for a domain, the body to send should be: - -```json -{ "tls_policy": "recommended" } -``` - -TLS Policies: - -- recommended - for modern usage this includes TLS 1.2 only - -Some considerations: - -- The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. -- The `compatible` TLS policy is no longer supported. -
-
+**enabledClients:** `Optional>` — DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. +
-#### 🔌 Usage -
+**isDomainConnection:** `Optional` — true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + +
+
+
-```java -client.customDomains().update( - "id", - UpdateCustomDomainRequestContent - .builder() - .build() -); -``` -
-
+**showAsButton:** `Optional` — Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) + -#### ⚙️ Parameters -
+**realms:** `Optional>` — Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + +
+
+
-**id:** `String` — The id of the custom domain to update +**metadata:** `Optional>>`
@@ -4293,7 +4057,7 @@ client.customDomains().update(
-**tlsPolicy:** `Optional` — recommended includes TLS 1.2 +**authentication:** `Optional`
@@ -4301,7 +4065,7 @@ client.customDomains().update(
-**customClientIpHeader:** `Optional` +**connectedAccounts:** `Optional`
@@ -4309,7 +4073,7 @@ client.customDomains().update(
-**domainMetadata:** `Optional>>` +**crossAppAccessRequestingApp:** `Optional`
@@ -4317,7 +4081,7 @@ client.customDomains().update(
-**relyingPartyIdentifier:** `Optional` — Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. +**crossAppAccessResourceApp:** `Optional`
@@ -4329,7 +4093,7 @@ client.customDomains().update(
-
client.customDomains.test(id) -> TestCustomDomainResponseContent +
client.connections.checkStatus(id)
@@ -4341,7 +4105,7 @@ client.customDomains().update(
-Run the test process on a custom domain. +Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` http status code response is returned when the connection is online, otherwise a `404` status code is returned along with an error message
@@ -4356,7 +4120,7 @@ Run the test process on a custom domain.
```java -client.customDomains().test("id"); +client.connections().checkStatus("id"); ```
@@ -4371,7 +4135,7 @@ client.customDomains().test("id");
-**id:** `String` — ID of the custom domain to test. +**id:** `String` — ID of the connection to check
@@ -4383,7 +4147,8 @@ client.customDomains().test("id");
-
client.customDomains.verify(id) -> VerifyCustomDomainResponseContent +## CustomDomains +
client.customDomains.list() -> List&lt;CustomDomain&gt;
@@ -4395,14 +4160,7 @@ client.customDomains().test("id");
-Run the verification process on a custom domain. - -Note: Check the `status` field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. - -For `self_managed_certs`, when the custom domain is verified for the first time, the response will also include the `cname_api_key` which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. - -[Learn more](https://auth0.com/docs/custom-domains#step-2-verify-ownership) about verifying custom domains that use Auth0 Managed certificates. -[Learn more](https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership) about verifying custom domains that use Self Managed certificates. +Retrieve details on [custom domains](https://auth0.com/docs/custom-domains).
@@ -4417,7 +4175,15 @@ For `self_managed_certs`, when the custom domain is verified for the first time,
```java -client.customDomains().verify("id"); +client.customDomains().list( + ListCustomDomainsRequestParameters + .builder() + .q("q") + .fields("fields") + .includeFields(true) + .sort("sort") + .build() +); ```
@@ -4432,7 +4198,31 @@ client.customDomains().verify("id");
-**id:** `String` — ID of the custom domain to verify. +**q:** `Optional` — Query in Lucene query string syntax. + +
+
+ +
+
+ +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). + +
+
+ +
+
+ +**sort:** `Optional` — Field to sort by. Only domain:1 (ascending order by domain) is supported at this time.
@@ -4444,8 +4234,7 @@ client.customDomains().verify("id");
-## DeviceCredentials -
client.deviceCredentials.list() -> SyncPagingIterable&lt;DeviceCredential&gt; +
client.customDomains.create(request) -> CreateCustomDomainResponseContent
@@ -4457,7 +4246,19 @@ client.customDomains().verify("id");
-Retrieve device credential information (`public_key`, `refresh_token`, or `rotating_refresh_token`) associated with a specific user. +Create a new custom domain. + +Note: The custom domain will need to be verified before it will accept +requests. + +Optional attributes that can be updated: + +- custom_client_ip_header +- tls_policy + +TLS Policies: + +- recommended - for modern usage this includes TLS 1.2 only
@@ -4472,17 +4273,11 @@ Retrieve device credential information (`public_key`, `refresh_token`, or `rotat
```java -client.deviceCredentials().list( - ListDeviceCredentialsRequestParameters +client.customDomains().create( + CreateCustomDomainRequestContent .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .fields("fields") - .includeFields(true) - .userId("user_id") - .clientId("client_id") - .type(DeviceCredentialTypeEnum.PUBLIC_KEY) + .domain("domain") + .type(CustomDomainProvisioningTypeEnum.AUTH0MANAGED_CERTS) .build() ); ``` @@ -4499,7 +4294,7 @@ client.deviceCredentials().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**domain:** `String` — Domain name.
@@ -4507,7 +4302,7 @@ client.deviceCredentials().list(
-**perPage:** `Optional` — Number of results per page. There is a maximum of 1000 results allowed from this endpoint. +**type:** `CustomDomainProvisioningTypeEnum`
@@ -4515,7 +4310,7 @@ client.deviceCredentials().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**verificationMethod:** `Optional`
@@ -4523,7 +4318,7 @@ client.deviceCredentials().list(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**tlsPolicy:** `Optional`
@@ -4531,7 +4326,7 @@ client.deviceCredentials().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**customClientIpHeader:** `Optional`
@@ -4539,7 +4334,7 @@ client.deviceCredentials().list(
-**userId:** `Optional` — user_id of the devices to retrieve. +**domainMetadata:** `Optional>>`
@@ -4547,16 +4342,47 @@ client.deviceCredentials().list(
-**clientId:** `Optional` — client_id of the devices to retrieve. +**relyingPartyIdentifier:** `Optional` — Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used.
+
+
+ + + +
+ +
client.customDomains.getDefault() -> GetDefaultDomainResponseContent
-**type:** `Optional` — Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. The property will default to `refresh_token` when paging is requested - +#### 📝 Description + +
+
+ +
+
+ +Retrieve the tenant's default domain. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.customDomains().getDefault(); +```
@@ -4567,7 +4393,7 @@ client.deviceCredentials().list(
-
client.deviceCredentials.createPublicKey(request) -> CreatePublicKeyDeviceCredentialResponseContent +
client.customDomains.setDefault(request) -> UpdateDefaultDomainResponseContent
@@ -4579,9 +4405,7 @@ client.deviceCredentials().list(
-Create a device credential public key to manage refresh token rotation for a given `user_id`. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - -When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read [Signing Keys](https://auth0.com/docs/get-started/tenant-settings/signing-keys). +Set the default custom domain for the tenant.
@@ -4596,13 +4420,10 @@ When refresh token rotation is enabled, the endpoint becomes consistent. For mor
```java -client.deviceCredentials().createPublicKey( - CreatePublicKeyDeviceCredentialRequestContent +client.customDomains().setDefault( + SetDefaultCustomDomainRequestContent .builder() - .deviceName("device_name") - .type(DeviceCredentialPublicKeyTypeEnum.PUBLIC_KEY) - .value("value") - .deviceId("device_id") + .domain("domain") .build() ); ``` @@ -4619,39 +4440,61 @@ client.deviceCredentials().createPublicKey(
-**deviceName:** `String` — Name for this device easily recognized by owner. +**domain:** `String` — The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.
+
+
-
-
-**type:** `DeviceCredentialPublicKeyTypeEnum` -
+
+
client.customDomains.get(id) -> GetCustomDomainResponseContent
-**value:** `String` — Base64 encoded string containing the credential. - +#### 📝 Description + +
+
+ +
+
+ +Retrieve a custom domain configuration and status. +
+
+#### 🔌 Usage +
-**deviceId:** `String` — Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. - +
+
+ +```java +client.customDomains().get("id"); +``` +
+
+#### ⚙️ Parameters +
-**clientId:** `Optional` — client_id of the client (application) this credential is for. +
+
+ +**id:** `String` — ID of the custom domain to retrieve.
@@ -4663,7 +4506,7 @@ client.deviceCredentials().createPublicKey(
-
client.deviceCredentials.delete(id) +
client.customDomains.delete(id)
@@ -4675,7 +4518,7 @@ client.deviceCredentials().createPublicKey(
-Permanently delete a device credential (such as a refresh token or public key) with the given ID. +Delete a custom domain and stop serving requests for it.
@@ -4690,7 +4533,7 @@ Permanently delete a device credential (such as a refresh token or public key) w
```java -client.deviceCredentials().delete("id"); +client.customDomains().delete("id"); ```
@@ -4705,7 +4548,7 @@ client.deviceCredentials().delete("id");
-**id:** `String` — ID of the credential to delete. +**id:** `String` — ID of the custom domain to delete.
@@ -4717,8 +4560,7 @@ client.deviceCredentials().delete("id");
-## EmailTemplates -
client.emailTemplates.create(request) -> CreateEmailTemplateResponseContent +
client.customDomains.update(id, request) -> UpdateCustomDomainResponseContent
@@ -4730,7 +4572,38 @@ client.deviceCredentials().delete("id");
-Create an email template. +Update a custom domain. + +These are the attributes that can be updated: + +- custom_client_ip_header +- tls_policy + +**Updating CUSTOM_CLIENT_IP_HEADER for a custom domain** + +To update the `custom_client_ip_header` for a domain, the body to +send should be: + +```json +{ "custom_client_ip_header": "cf-connecting-ip" } +``` + +**Updating TLS_POLICY for a custom domain** + +To update the `tls_policy` for a domain, the body to send should be: + +```json +{ "tls_policy": "recommended" } +``` + +TLS Policies: + +- recommended - for modern usage this includes TLS 1.2 only + +Some considerations: + +- The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. +- The `compatible` TLS policy is no longer supported.
@@ -4745,10 +4618,10 @@ Create an email template.
```java -client.emailTemplates().create( - CreateEmailTemplateRequestContent +client.customDomains().update( + "id", + UpdateCustomDomainRequestContent .builder() - .template(EmailTemplateNameEnum.VERIFY_EMAIL) .build() ); ``` @@ -4765,7 +4638,7 @@ client.emailTemplates().create(
-**template:** `EmailTemplateNameEnum` +**id:** `String` — The id of the custom domain to update
@@ -4773,7 +4646,7 @@ client.emailTemplates().create(
-**body:** `Optional` — Body of the email template. +**tlsPolicy:** `Optional` — recommended includes TLS 1.2
@@ -4781,7 +4654,7 @@ client.emailTemplates().create(
-**from:** `Optional` — Senders `from` email address. +**customClientIpHeader:** `Optional`
@@ -4789,7 +4662,7 @@ client.emailTemplates().create(
-**resultUrl:** `Optional` — URL to redirect the user to after a successful action. +**domainMetadata:** `Optional>>`
@@ -4797,39 +4670,61 @@ client.emailTemplates().create(
-**subject:** `Optional` — Subject line of the email. +**relyingPartyIdentifier:** `Optional` — Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain.
+
+
-
-
-**syntax:** `Optional` — Syntax of the template body. -
+
+
client.customDomains.test(id) -> TestCustomDomainResponseContent
-**urlLifetimeInSeconds:** `Optional` — Lifetime in seconds that the link within the email will be valid for. - +#### 📝 Description + +
+
+ +
+
+ +Run the test process on a custom domain. +
+
+#### 🔌 Usage +
-**includeEmailInRedirect:** `Optional` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - +
+
+ +```java +client.customDomains().test("id"); +``` +
+
+#### ⚙️ Parameters +
-**enabled:** `Optional` — Whether the template is enabled (true) or disabled (false). +
+
+ +**id:** `String` — ID of the custom domain to test.
@@ -4841,7 +4736,7 @@ client.emailTemplates().create(
-
client.emailTemplates.get(templateName) -> GetEmailTemplateResponseContent +
client.customDomains.verify(id) -> VerifyCustomDomainResponseContent
@@ -4853,7 +4748,14 @@ client.emailTemplates().create(
-Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. +Run the verification process on a custom domain. + +Note: Check the `status` field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. + +For `self_managed_certs`, when the custom domain is verified for the first time, the response will also include the `cname_api_key` which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. + +[Learn more](https://auth0.com/docs/custom-domains#step-2-verify-ownership) about verifying custom domains that use Auth0 Managed certificates. +[Learn more](https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership) about verifying custom domains that use Self Managed certificates.
@@ -4868,7 +4770,7 @@ Retrieve an email template by pre-defined name. These names are `verify_email`,
```java -client.emailTemplates().get(EmailTemplateNameEnum.VERIFY_EMAIL); +client.customDomains().verify("id"); ```
@@ -4883,7 +4785,7 @@ client.emailTemplates().get(EmailTemplateNameEnum.VERIFY_EMAIL);
-**templateName:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). +**id:** `String` — ID of the custom domain to verify.
@@ -4895,7 +4797,8 @@ client.emailTemplates().get(EmailTemplateNameEnum.VERIFY_EMAIL);
-
client.emailTemplates.set(templateName, request) -> SetEmailTemplateResponseContent +## DeviceCredentials +
client.deviceCredentials.list() -> SyncPagingIterable&lt;DeviceCredential&gt;
@@ -4907,7 +4810,7 @@ client.emailTemplates().get(EmailTemplateNameEnum.VERIFY_EMAIL);
-Update an email template. +Retrieve device credential information (`public_key`, `refresh_token`, or `rotating_refresh_token`) associated with a specific user.
@@ -4922,11 +4825,17 @@ Update an email template.
```java -client.emailTemplates().set( - EmailTemplateNameEnum.VERIFY_EMAIL, - SetEmailTemplateRequestContent +client.deviceCredentials().list( + ListDeviceCredentialsRequestParameters .builder() - .template(EmailTemplateNameEnum.VERIFY_EMAIL) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .userId("user_id") + .clientId("client_id") + .type(DeviceCredentialTypeEnum.PUBLIC_KEY) .build() ); ``` @@ -4943,23 +4852,7 @@ client.emailTemplates().set(
-**templateName:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - -
-
- -
-
- -**template:** `EmailTemplateNameEnum` - -
-
- -
-
- -**body:** `Optional` — Body of the email template. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -4967,7 +4860,7 @@ client.emailTemplates().set(
-**from:** `Optional` — Senders `from` email address. +**perPage:** `Optional` — Number of results per page. There is a maximum of 1000 results allowed from this endpoint.
@@ -4975,7 +4868,7 @@ client.emailTemplates().set(
-**resultUrl:** `Optional` — URL to redirect the user to after a successful action. +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -4983,7 +4876,7 @@ client.emailTemplates().set(
-**subject:** `Optional` — Subject line of the email. +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
@@ -4991,7 +4884,7 @@ client.emailTemplates().set(
-**syntax:** `Optional` — Syntax of the template body. +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -4999,7 +4892,7 @@ client.emailTemplates().set(
-**urlLifetimeInSeconds:** `Optional` — Lifetime in seconds that the link within the email will be valid for. +**userId:** `Optional` — user_id of the devices to retrieve.
@@ -5007,7 +4900,7 @@ client.emailTemplates().set(
-**includeEmailInRedirect:** `Optional` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. +**clientId:** `Optional` — client_id of the devices to retrieve.
@@ -5015,7 +4908,7 @@ client.emailTemplates().set(
-**enabled:** `Optional` — Whether the template is enabled (true) or disabled (false). +**type:** `Optional` — Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. The property will default to `refresh_token` when paging is requested
@@ -5027,7 +4920,7 @@ client.emailTemplates().set(
-
client.emailTemplates.update(templateName, request) -> UpdateEmailTemplateResponseContent +
client.deviceCredentials.createPublicKey(request) -> CreatePublicKeyDeviceCredentialResponseContent
@@ -5039,7 +4932,9 @@ client.emailTemplates().set(
-Modify an email template. +Create a device credential public key to manage refresh token rotation for a given `user_id`. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + +When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read [Signing Keys](https://auth0.com/docs/get-started/tenant-settings/signing-keys).
@@ -5054,10 +4949,13 @@ Modify an email template.
```java -client.emailTemplates().update( - EmailTemplateNameEnum.VERIFY_EMAIL, - UpdateEmailTemplateRequestContent +client.deviceCredentials().createPublicKey( + CreatePublicKeyDeviceCredentialRequestContent .builder() + .deviceName("device_name") + .type(DeviceCredentialPublicKeyTypeEnum.PUBLIC_KEY) + .value("value") + .deviceId("device_id") .build() ); ``` @@ -5074,7 +4972,7 @@ client.emailTemplates().update(
-**templateName:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). +**deviceName:** `String` — Name for this device easily recognized by owner.
@@ -5082,7 +4980,7 @@ client.emailTemplates().update(
-**template:** `Optional` +**type:** `DeviceCredentialPublicKeyTypeEnum`
@@ -5090,7 +4988,7 @@ client.emailTemplates().update(
-**body:** `Optional` — Body of the email template. +**value:** `String` — Base64 encoded string containing the credential.
@@ -5098,7 +4996,7 @@ client.emailTemplates().update(
-**from:** `Optional` — Senders `from` email address. +**deviceId:** `String` — Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.
@@ -5106,79 +5004,46 @@ client.emailTemplates().update(
-**resultUrl:** `Optional` — URL to redirect the user to after a successful action. +**clientId:** `Optional` — client_id of the client (application) this credential is for.
- -
-
- -**subject:** `Optional` — Subject line of the email. -
-
-
-**syntax:** `Optional` — Syntax of the template body. -
+
+
client.deviceCredentials.delete(id)
-**urlLifetimeInSeconds:** `Optional` — Lifetime in seconds that the link within the email will be valid for. - -
-
+#### 📝 Description
-**includeEmailInRedirect:** `Optional` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - -
-
-
-**enabled:** `Optional` — Whether the template is enabled (true) or disabled (false). - +Permanently delete a device credential (such as a refresh token or public key) with the given ID.
+#### 🔌 Usage - - -
- -## EventStreams -
client.eventStreams.list() -> SyncPagingIterable&lt;EventStreamResponseContent&gt; -
-
- -#### 🔌 Usage - -
-
+
+
```java -client.eventStreams().list( - ListEventStreamsRequestParameters - .builder() - .from("from") - .take(1) - .build() -); +client.deviceCredentials().delete("id"); ```
@@ -5193,15 +5058,7 @@ client.eventStreams().list(
-**from:** `Optional` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `Optional` — Number of results per page. Defaults to 50. +**id:** `String` — ID of the credential to delete.
@@ -5213,10 +5070,25 @@ client.eventStreams().list(
-
client.eventStreams.create(request) -> CreateEventStreamResponseContent +## EmailTemplates +
client.emailTemplates.create(request) -> CreateEmailTemplateResponseContent +
+
+ +#### 📝 Description +
+
+
+ +Create an email template. +
+
+
+
+ #### 🔌 Usage
@@ -5226,33 +5098,11 @@ client.eventStreams().list(
```java -client.eventStreams().create( - EventStreamsCreateRequest.of( - CreateEventStreamWebHookRequestContent - .builder() - .destination( - EventStreamWebhookDestination - .builder() - .type(EventStreamWebhookDestinationTypeEnum.WEBHOOK) - .configuration( - EventStreamWebhookConfiguration - .builder() - .webhookEndpoint("webhook_endpoint") - .webhookAuthorization( - EventStreamWebhookAuthorizationResponse.of( - EventStreamWebhookBasicAuth - .builder() - .method(EventStreamWebhookBasicAuthMethodEnum.BASIC) - .username("username") - .build() - ) - ) - .build() - ) - .build() - ) - .build() - ) +client.emailTemplates().create( + CreateEmailTemplateRequestContent + .builder() + .template(EmailTemplateNameEnum.VERIFY_EMAIL) + .build() ); ```
@@ -5268,47 +5118,71 @@ client.eventStreams().create(
-**request:** `EventStreamsCreateRequest` +**template:** `EmailTemplateNameEnum`
+ +
+
+ +**body:** `Optional` — Body of the email template. +
+
+
+**from:** `Optional` — Senders `from` email address. +
-
-
client.eventStreams.get(id) -> GetEventStreamResponseContent
-#### 🔌 Usage +**resultUrl:** `Optional` — URL to redirect the user to after a successful action. + +
+
+**subject:** `Optional` — Subject line of the email. + +
+
+
-```java -client.eventStreams().get("id"); -``` +**syntax:** `Optional` — Syntax of the template body. +
+ +
+
+ +**urlLifetimeInSeconds:** `Optional` — Lifetime in seconds that the link within the email will be valid for. +
-#### ⚙️ Parameters -
+**includeEmailInRedirect:** `Optional` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. + +
+
+
-**id:** `String` — Unique identifier for the event stream. +**enabled:** `Optional` — Whether the template is enabled (true) or disabled (false).
@@ -5320,10 +5194,24 @@ client.eventStreams().get("id");
-
client.eventStreams.delete(id) +
client.emailTemplates.get(templateName) -> GetEmailTemplateResponseContent +
+
+ +#### 📝 Description +
+
+
+ +Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. +
+
+
+
+ #### 🔌 Usage
@@ -5333,7 +5221,7 @@ client.eventStreams().get("id");
```java -client.eventStreams().delete("id"); +client.emailTemplates().get(EmailTemplateNameEnum.VERIFY_EMAIL); ```
@@ -5348,7 +5236,7 @@ client.eventStreams().delete("id");
-**id:** `String` — Unique identifier for the event stream. +**templateName:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
@@ -5360,10 +5248,24 @@ client.eventStreams().delete("id");
-
client.eventStreams.update(id, request) -> UpdateEventStreamResponseContent +
client.emailTemplates.set(templateName, request) -> SetEmailTemplateResponseContent +
+
+ +#### 📝 Description +
+
+
+ +Update an email template. +
+
+
+
+ #### 🔌 Usage
@@ -5373,10 +5275,11 @@ client.eventStreams().delete("id");
```java -client.eventStreams().update( - "id", - UpdateEventStreamRequestContent +client.emailTemplates().set( + EmailTemplateNameEnum.VERIFY_EMAIL, + SetEmailTemplateRequestContent .builder() + .template(EmailTemplateNameEnum.VERIFY_EMAIL) .build() ); ``` @@ -5393,7 +5296,7 @@ client.eventStreams().update(
-**id:** `String` — Unique identifier for the event stream. +**templateName:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
@@ -5401,7 +5304,7 @@ client.eventStreams().update(
-**name:** `Optional` — Name of the event stream. +**template:** `EmailTemplateNameEnum`
@@ -5409,7 +5312,7 @@ client.eventStreams().update(
-**subscriptions:** `Optional>` — List of event types subscribed to in this stream. +**body:** `Optional` — Body of the email template.
@@ -5417,7 +5320,7 @@ client.eventStreams().update(
-**destination:** `Optional` +**from:** `Optional` — Senders `from` email address.
@@ -5425,53 +5328,31 @@ client.eventStreams().update(
-**status:** `Optional` +**resultUrl:** `Optional` — URL to redirect the user to after a successful action.
-
-
- -
-
-
- -
client.eventStreams.test(id, request) -> CreateEventStreamTestEventResponseContent
-#### 🔌 Usage - -
-
+**subject:** `Optional` — Subject line of the email. + +
+
-```java -client.eventStreams().test( - "id", - CreateEventStreamTestEventRequestContent - .builder() - .eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED) - .build() -); -``` -
-
+**syntax:** `Optional` — Syntax of the template body. +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — Unique identifier for the event stream. +**urlLifetimeInSeconds:** `Optional` — Lifetime in seconds that the link within the email will be valid for.
@@ -5479,7 +5360,7 @@ client.eventStreams().test(
-**eventType:** `EventStreamTestEventTypeEnum` +**includeEmailInRedirect:** `Optional` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true.
@@ -5487,7 +5368,7 @@ client.eventStreams().test(
-**data:** `Optional>` +**enabled:** `Optional` — Whether the template is enabled (true) or disabled (false).
@@ -5499,8 +5380,7 @@ client.eventStreams().test(
-## Events -
client.events.subscribe() -> Iterable&lt;EventStreamSubscribeEventsResponseContent&gt; +
client.emailTemplates.update(templateName, request) -> UpdateEmailTemplateResponseContent
@@ -5512,7 +5392,7 @@ client.eventStreams().test(
-Subscribe to events via Server-Sent Events (SSE) +Modify an email template.
@@ -5527,14 +5407,10 @@ Subscribe to events via Server-Sent Events (SSE)
```java -client.events().subscribe( - SubscribeEventsRequestParameters +client.emailTemplates().update( + EmailTemplateNameEnum.VERIFY_EMAIL, + UpdateEmailTemplateRequestContent .builder() - .from("from") - .fromTimestamp("from_timestamp") - .eventType( - Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED) - ) .build() ); ``` @@ -5551,7 +5427,7 @@ client.events().subscribe(
-**from:** `Optional` — Opaque token representing position in the stream. If not provided, stream will start from the latest events. +**templateName:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
@@ -5559,7 +5435,7 @@ client.events().subscribe(
-**fromTimestamp:** `Optional` — RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. +**template:** `Optional`
@@ -5567,67 +5443,39 @@ client.events().subscribe(
-**eventType:** `Optional` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. +**body:** `Optional` — Body of the email template.
-
-
+
+
+**from:** `Optional` — Senders `from` email address. +
-
-## Flows -
client.flows.list() -> SyncPagingIterable&lt;FlowSummary&gt;
-#### 🔌 Usage +**resultUrl:** `Optional` — URL to redirect the user to after a successful action. + +
+
+**subject:** `Optional` — Subject line of the email. + +
+
+
-```java -client.flows().list( - ListFlowsRequestParameters - .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .synchronous(true) - .hydrate( - Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT) - ) - .build() -); -``` -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `Optional` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**perPage:** `Optional` — Number of results per page. Defaults to 50. +**syntax:** `Optional` — Syntax of the template body.
@@ -5635,7 +5483,7 @@ client.flows().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**urlLifetimeInSeconds:** `Optional` — Lifetime in seconds that the link within the email will be valid for.
@@ -5643,7 +5491,7 @@ client.flows().list(
-**hydrate:** `Optional` — hydration param +**includeEmailInRedirect:** `Optional` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true.
@@ -5651,7 +5499,7 @@ client.flows().list(
-**synchronous:** `Optional` — flag to filter by sync/async flows +**enabled:** `Optional` — Whether the template is enabled (true) or disabled (false).
@@ -5663,7 +5511,8 @@ client.flows().list(
-
client.flows.create(request) -> CreateFlowResponseContent +## EventStreams +
client.eventStreams.list() -> SyncPagingIterable&lt;EventStreamResponseContent&gt;
@@ -5676,10 +5525,11 @@ client.flows().list(
```java -client.flows().create( - CreateFlowRequestContent +client.eventStreams().list( + ListEventStreamsRequestParameters .builder() - .name("name") + .from("from") + .take(1) .build() ); ``` @@ -5696,7 +5546,7 @@ client.flows().create(
-**name:** `String` +**from:** `Optional` — Optional Id from which to start selection.
@@ -5704,7 +5554,7 @@ client.flows().create(
-**actions:** `Optional>` +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -5716,7 +5566,7 @@ client.flows().create(
-
client.flows.get(id) -> GetFlowResponseContent +
client.eventStreams.create(request) -> CreateEventStreamResponseContent
@@ -5729,14 +5579,33 @@ client.flows().create(
```java -client.flows().get( - "id", - GetFlowRequestParameters - .builder() - .hydrate( - Arrays.asList(GetFlowRequestParametersHydrateEnum.FORM_COUNT) - ) - .build() +client.eventStreams().create( + EventStreamsCreateRequest.of( + CreateEventStreamWebHookRequestContent + .builder() + .destination( + EventStreamWebhookDestination + .builder() + .type(EventStreamWebhookDestinationTypeEnum.WEBHOOK) + .configuration( + EventStreamWebhookConfiguration + .builder() + .webhookEndpoint("webhook_endpoint") + .webhookAuthorization( + EventStreamWebhookAuthorizationResponse.of( + EventStreamWebhookBasicAuth + .builder() + .method(EventStreamWebhookBasicAuthMethodEnum.BASIC) + .username("username") + .build() + ) + ) + .build() + ) + .build() + ) + .build() + ) ); ```
@@ -5752,15 +5621,7 @@ client.flows().get(
-**id:** `String` — Flow identifier - -
-
- -
-
- -**hydrate:** `Optional` — hydration param +**request:** `EventStreamsCreateRequest`
@@ -5772,7 +5633,7 @@ client.flows().get(
-
client.flows.delete(id) +
client.eventStreams.get(id) -> GetEventStreamResponseContent
@@ -5785,7 +5646,7 @@ client.flows().get(
```java -client.flows().delete("id"); +client.eventStreams().get("id"); ```
@@ -5800,7 +5661,7 @@ client.flows().delete("id");
-**id:** `String` — Flow id +**id:** `String` — Unique identifier for the event stream.
@@ -5812,7 +5673,7 @@ client.flows().delete("id");
-
client.flows.update(id, request) -> UpdateFlowResponseContent +
client.eventStreams.delete(id)
@@ -5825,12 +5686,7 @@ client.flows().delete("id");
```java -client.flows().update( - "id", - UpdateFlowRequestContent - .builder() - .build() -); +client.eventStreams().delete("id"); ```
@@ -5845,23 +5701,7 @@ client.flows().update(
-**id:** `String` — Flow identifier - -
-
- -
-
- -**name:** `Optional` - -
-
- -
-
- -**actions:** `Optional>` +**id:** `String` — Unique identifier for the event stream.
@@ -5873,8 +5713,7 @@ client.flows().update(
-## Forms -
client.forms.list() -> SyncPagingIterable&lt;FormSummary&gt; +
client.eventStreams.update(id, request) -> UpdateEventStreamResponseContent
@@ -5887,15 +5726,10 @@ client.flows().update(
```java -client.forms().list( - ListFormsRequestParameters +client.eventStreams().update( + "id", + UpdateEventStreamRequestContent .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .hydrate( - Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT) - ) .build() ); ``` @@ -5912,7 +5746,7 @@ client.forms().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**id:** `String` — Unique identifier for the event stream.
@@ -5920,7 +5754,7 @@ client.forms().list(
-**perPage:** `Optional` — Number of results per page. Defaults to 50. +**name:** `Optional` — Name of the event stream.
@@ -5928,7 +5762,7 @@ client.forms().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**subscriptions:** `Optional>` — List of event types subscribed to in this stream.
@@ -5936,7 +5770,15 @@ client.forms().list(
-**hydrate:** `Optional` — Query parameter to hydrate the response with additional data +**destination:** `Optional` + +
+
+ +
+
+ +**status:** `Optional`
@@ -5948,7 +5790,7 @@ client.forms().list(
-
client.forms.create(request) -> CreateFormResponseContent +
client.eventStreams.test(id, request) -> CreateEventStreamTestEventResponseContent
@@ -5961,10 +5803,11 @@ client.forms().list(
```java -client.forms().create( - CreateFormRequestContent +client.eventStreams().test( + "id", + CreateEventStreamTestEventRequestContent .builder() - .name("name") + .eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED) .build() ); ``` @@ -5981,7 +5824,7 @@ client.forms().create(
-**name:** `String` +**id:** `String` — Unique identifier for the event stream.
@@ -5989,7 +5832,7 @@ client.forms().create(
-**messages:** `Optional` +**eventType:** `EventStreamTestEventTypeEnum`
@@ -5997,61 +5840,36 @@ client.forms().create(
-**languages:** `Optional` +**data:** `Optional>`
- -
-
- -**translations:** `Optional>>` -
-
-
-**nodes:** `Optional>` -
+
+## Events +
client.events.subscribe() -> Iterable&lt;EventStreamSubscribeEventsResponseContent&gt;
-**start:** `Optional` - -
-
+#### 📝 Description
-**ending:** `Optional` - -
-
-
-**style:** `Optional` - -
-
+Subscribe to events via Server-Sent Events (SSE) - - -
- -
client.forms.get(id) -> GetFormResponseContent -
-
#### 🔌 Usage @@ -6062,12 +5880,13 @@ client.forms().create(
```java -client.forms().get( - "id", - GetFormRequestParameters +client.events().subscribe( + SubscribeEventsRequestParameters .builder() - .hydrate( - Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT) + .from("from") + .fromTimestamp("from_timestamp") + .eventType( + Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED) ) .build() ); @@ -6085,7 +5904,7 @@ client.forms().get(
-**id:** `String` — The ID of the form to retrieve. +**from:** `Optional` — Opaque token representing position in the stream. If not provided, stream will start from the latest events.
@@ -6093,7 +5912,15 @@ client.forms().get(
-**hydrate:** `Optional` — Query parameter to hydrate the response with additional data +**fromTimestamp:** `Optional` — RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. + +
+
+ +
+
+ +**eventType:** `Optional` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.
@@ -6105,7 +5932,8 @@ client.forms().get(
-
client.forms.delete(id) +## Flows +
client.flows.list() -> SyncPagingIterable&lt;FlowSummary&gt;
@@ -6118,7 +5946,18 @@ client.forms().get(
```java -client.forms().delete("id"); +client.flows().list( + ListFlowsRequestParameters + .builder() + .page(1) + .perPage(1) + .includeTotals(true) + .synchronous(true) + .hydrate( + Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT) + ) + .build() +); ```
@@ -6133,52 +5972,23 @@ client.forms().delete("id");
-**id:** `String` — The ID of the form to delete. +**page:** `Optional` — Page index of the results to return. First page is 0.
- - - - - - -
- -
client.forms.update(id, request) -> UpdateFormResponseContent -
-
- -#### 🔌 Usage - -
-
-```java -client.forms().update( - "id", - UpdateFormRequestContent - .builder() - .build() -); -``` -
-
+**perPage:** `Optional` — Number of results per page. Defaults to 50. +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — The ID of the form to update. +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -6186,7 +5996,7 @@ client.forms().update(
-**name:** `Optional` +**hydrate:** `Optional` — hydration param
@@ -6194,47 +6004,52 @@ client.forms().update(
-**messages:** `Optional` +**synchronous:** `Optional` — flag to filter by sync/async flows
+
+
-
-
-**languages:** `Optional` -
+
+
client.flows.create(request) -> CreateFlowResponseContent
-**translations:** `Optional>>` - -
-
+#### 🔌 Usage
-**nodes:** `Optional>` - -
-
-
-**start:** `Optional` - +```java +client.flows().create( + CreateFlowRequestContent + .builder() + .name("name") + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**ending:** `Optional` +
+
+ +**name:** `String`
@@ -6242,7 +6057,7 @@ client.forms().update(
-**style:** `Optional` +**actions:** `Optional>`
@@ -6254,25 +6069,10 @@ client.forms().update(
-## UserGrants -
client.userGrants.list() -> SyncPagingIterable&lt;UserGrant&gt; -
-
- -#### 📝 Description - -
-
- +
client.flows.get(id) -> GetFlowResponseContent
-Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) associated with your account. -
-
-
-
- #### 🔌 Usage
@@ -6282,15 +6082,13 @@ Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) a
```java -client.userGrants().list( - ListUserGrantsRequestParameters +client.flows().get( + "id", + GetFlowRequestParameters .builder() - .perPage(1) - .page(1) - .includeTotals(true) - .userId("user_id") - .clientId("client_id") - .audience("audience") + .hydrate( + Arrays.asList(GetFlowRequestParametersHydrateEnum.FORM_COUNT) + ) .build() ); ``` @@ -6307,7 +6105,7 @@ client.userGrants().list(
-**perPage:** `Optional` — Number of results per page. +**id:** `String` — Flow identifier
@@ -6315,39 +6113,47 @@ client.userGrants().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**hydrate:** `Optional` — hydration param
+
+
-
-
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). -
+
+
client.flows.delete(id)
-**userId:** `Optional` — user_id of the grants to retrieve. - -
-
+#### 🔌 Usage
-**clientId:** `Optional` — client_id of the grants to retrieve. - +
+
+ +```java +client.flows().delete("id"); +``` +
+
+#### ⚙️ Parameters +
-**audience:** `Optional` — audience of the grants to retrieve. +
+
+ +**id:** `String` — Flow id
@@ -6359,11 +6165,11 @@ client.userGrants().list(
-
client.userGrants.deleteByUserId() +
client.flows.update(id, request) -> UpdateFlowResponseContent
-#### 📝 Description +#### 🔌 Usage
@@ -6371,13 +6177,20 @@ client.userGrants().list(
-Delete a grant associated with your account. +```java +client.flows().update( + "id", + UpdateFlowRequestContent + .builder() + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -6385,28 +6198,23 @@ Delete a grant associated with your account.
-```java -client.userGrants().deleteByUserId( - DeleteUserGrantByUserIdRequestParameters - .builder() - .userId("user_id") - .build() -); -``` -
-
+**id:** `String` — Flow identifier +
-#### ⚙️ Parameters -
+**name:** `Optional` + +
+
+
-**userId:** `String` — user_id of the grant to delete. +**actions:** `Optional>`
@@ -6418,11 +6226,12 @@ client.userGrants().deleteByUserId(
-
client.userGrants.delete(id) +## Forms +
client.forms.list() -> SyncPagingIterable&lt;FormSummary&gt;
-#### 📝 Description +#### 🔌 Usage
@@ -6430,13 +6239,25 @@ client.userGrants().deleteByUserId(
-Delete a grant associated with your account. +```java +client.forms().list( + ListFormsRequestParameters + .builder() + .page(1) + .perPage(1) + .includeTotals(true) + .hydrate( + Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT) + ) + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -6444,23 +6265,31 @@ Delete a grant associated with your account.
-```java -client.userGrants().delete("id"); -``` +**page:** `Optional` — Page index of the results to return. First page is 0. +
+ +
+
+ +**perPage:** `Optional` — Number of results per page. Defaults to 50. +
-#### ⚙️ Parameters -
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+
-**id:** `String` — ID of the grant to delete. +**hydrate:** `Optional` — Query parameter to hydrate the response with additional data
@@ -6472,25 +6301,10 @@ client.userGrants().delete("id");
-## Groups -
client.groups.list() -> SyncPagingIterable&lt;Group&gt; -
-
- -#### 📝 Description - -
-
- +
client.forms.create(request) -> CreateFormResponseContent
-List all groups in your tenant. -
-
-
-
- #### 🔌 Usage
@@ -6500,17 +6314,10 @@ List all groups in your tenant.
```java -client.groups().list( - ListGroupsRequestParameters +client.forms().create( + CreateFormRequestContent .builder() - .connectionId("connection_id") .name("name") - .externalId("external_id") - .search("search") - .fields("fields") - .includeFields(true) - .from("from") - .take(1) .build() ); ``` @@ -6527,7 +6334,7 @@ client.groups().list(
-**connectionId:** `Optional` — Filter groups by connection ID. +**name:** `String`
@@ -6535,7 +6342,7 @@ client.groups().list(
-**name:** `Optional` — Filter groups by name. +**messages:** `Optional`
@@ -6543,7 +6350,7 @@ client.groups().list(
-**externalId:** `Optional` — Filter groups by external ID. +**languages:** `Optional`
@@ -6551,7 +6358,7 @@ client.groups().list(
-**search:** `Optional` — Search for groups by name or external ID. +**translations:** `Optional>>`
@@ -6559,7 +6366,7 @@ client.groups().list(
-**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields +**nodes:** `Optional>`
@@ -6567,7 +6374,7 @@ client.groups().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**start:** `Optional`
@@ -6575,7 +6382,7 @@ client.groups().list(
-**from:** `Optional` — Optional Id from which to start selection. +**ending:** `Optional`
@@ -6583,7 +6390,7 @@ client.groups().list(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**style:** `Optional`
@@ -6595,11 +6402,11 @@ client.groups().list(
-
client.groups.get(id) -> GetGroupResponseContent +
client.forms.get(id) -> GetFormResponseContent
-#### 📝 Description +#### 🔌 Usage
@@ -6607,13 +6414,23 @@ client.groups().list(
-Retrieve a group by its ID. +```java +client.forms().get( + "id", + GetFormRequestParameters + .builder() + .hydrate( + Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT) + ) + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -6621,23 +6438,15 @@ Retrieve a group by its ID.
-```java -client.groups().get("id"); -``` -
-
+**id:** `String` — The ID of the form to retrieve. +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — Unique identifier for the group (service-generated). +**hydrate:** `Optional` — Query parameter to hydrate the response with additional data
@@ -6649,24 +6458,10 @@ client.groups().get("id");
-
client.groups.delete(id) -
-
- -#### 📝 Description - -
-
- +
client.forms.delete(id)
-Delete a group by its ID. -
-
-
-
- #### 🔌 Usage
@@ -6676,7 +6471,7 @@ Delete a group by its ID.
```java -client.groups().delete("id"); +client.forms().delete("id"); ```
@@ -6691,7 +6486,7 @@ client.groups().delete("id");
-**id:** `String` — Unique identifier for the group (service-generated). +**id:** `String` — The ID of the form to delete.
@@ -6703,12 +6498,11 @@ client.groups().delete("id");
-## Hooks -
client.hooks.list() -> SyncPagingIterable&lt;Hook&gt; +
client.forms.update(id, request) -> UpdateFormResponseContent
-#### 📝 Description +#### 🔌 Usage
@@ -6716,13 +6510,20 @@ client.groups().delete("id");
-Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to include or exclude in the result. +```java +client.forms().update( + "id", + UpdateFormRequestContent + .builder() + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -6730,33 +6531,31 @@ Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to
-```java -client.hooks().list( - ListHooksRequestParameters - .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .enabled(true) - .fields("fields") - .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) - .build() -); -``` +**id:** `String` — The ID of the form to update. +
+ +
+
+ +**name:** `Optional` +
-#### ⚙️ Parameters -
+**messages:** `Optional` + +
+
+
-**page:** `Optional` — Page index of the results to return. First page is 0. +**languages:** `Optional`
@@ -6764,7 +6563,7 @@ client.hooks().list(
-**perPage:** `Optional` — Number of results per page. +**translations:** `Optional>>`
@@ -6772,7 +6571,7 @@ client.hooks().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**nodes:** `Optional>`
@@ -6780,7 +6579,7 @@ client.hooks().list(
-**enabled:** `Optional` — Optional filter on whether a hook is enabled (true) or disabled (false). +**start:** `Optional`
@@ -6788,7 +6587,7 @@ client.hooks().list(
-**fields:** `Optional` — Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. +**ending:** `Optional`
@@ -6796,7 +6595,7 @@ client.hooks().list(
-**triggerId:** `Optional` — Retrieves hooks that match the trigger +**style:** `Optional`
@@ -6808,7 +6607,8 @@ client.hooks().list(
-
client.hooks.create(request) -> CreateHookResponseContent +## UserGrants +
client.userGrants.list() -> SyncPagingIterable&lt;UserGrant&gt;
@@ -6820,7 +6620,7 @@ client.hooks().list(
-Create a new hook. +Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) associated with your account.
@@ -6835,12 +6635,15 @@ Create a new hook.
```java -client.hooks().create( - CreateHookRequestContent +client.userGrants().list( + ListUserGrantsRequestParameters .builder() - .name("name") - .script("script") - .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) + .perPage(1) + .page(1) + .includeTotals(true) + .userId("user_id") + .clientId("client_id") + .audience("audience") .build() ); ``` @@ -6857,7 +6660,7 @@ client.hooks().create(
-**name:** `String` — Name of this hook. +**perPage:** `Optional` — Number of results per page.
@@ -6865,7 +6668,7 @@ client.hooks().create(
-**script:** `String` — Code to be executed when this hook runs. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -6873,7 +6676,7 @@ client.hooks().create(
-**enabled:** `Optional` — Whether this hook will be executed (true) or ignored (false). +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -6881,7 +6684,7 @@ client.hooks().create(
-**dependencies:** `Optional>` +**userId:** `Optional` — user_id of the grants to retrieve.
@@ -6889,7 +6692,15 @@ client.hooks().create(
-**triggerId:** `HookTriggerIdEnum` — Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`. +**clientId:** `Optional` — client_id of the grants to retrieve. + +
+
+ +
+
+ +**audience:** `Optional` — audience of the grants to retrieve.
@@ -6901,7 +6712,7 @@ client.hooks().create(
-
client.hooks.get(id) -> GetHookResponseContent +
client.userGrants.deleteByUserId()
@@ -6913,7 +6724,7 @@ client.hooks().create(
-Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fields to include in the result. +Delete a grant associated with your account.
@@ -6928,11 +6739,10 @@ Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fie
```java -client.hooks().get( - "id", - GetHookRequestParameters +client.userGrants().deleteByUserId( + DeleteUserGrantByUserIdRequestParameters .builder() - .fields("fields") + .userId("user_id") .build() ); ``` @@ -6949,15 +6759,7 @@ client.hooks().get(
-**id:** `String` — ID of the hook to retrieve. - -
-
- -
-
- -**fields:** `Optional` — Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. +**userId:** `String` — user_id of the grant to delete.
@@ -6969,7 +6771,7 @@ client.hooks().get(
-
client.hooks.delete(id) +
client.userGrants.delete(id)
@@ -6981,7 +6783,7 @@ client.hooks().get(
-Delete a hook. +Delete a grant associated with your account.
@@ -6996,7 +6798,7 @@ Delete a hook.
```java -client.hooks().delete("id"); +client.userGrants().delete("id"); ```
@@ -7011,7 +6813,7 @@ client.hooks().delete("id");
-**id:** `String` — ID of the hook to delete. +**id:** `String` — ID of the grant to delete.
@@ -7023,7 +6825,8 @@ client.hooks().delete("id");
-
client.hooks.update(id, request) -> UpdateHookResponseContent +## Groups +
client.groups.list() -> SyncPagingIterable&lt;Group&gt;
@@ -7035,7 +6838,7 @@ client.hooks().delete("id");
-Update an existing hook. +List all groups in your tenant.
@@ -7050,10 +6853,18 @@ Update an existing hook.
```java -client.hooks().update( - "id", - UpdateHookRequestContent +client.groups().list( + ListGroupsRequestParameters .builder() + .connectionId("connection_id") + .name("name") + .externalId("external_id") + .search("search") + .fields("fields") + .includeFields(true) + .includeTotals(true) + .from("from") + .take(1) .build() ); ``` @@ -7070,7 +6881,7 @@ client.hooks().update(
-**id:** `String` — ID of the hook to update. +**connectionId:** `Optional` — Filter groups by connection ID.
@@ -7078,7 +6889,7 @@ client.hooks().update(
-**name:** `Optional` — Name of this hook. +**name:** `Optional` — Filter groups by name.
@@ -7086,7 +6897,7 @@ client.hooks().update(
-**script:** `Optional` — Code to be executed when this hook runs. +**externalId:** `Optional` — Filter groups by external ID.
@@ -7094,7 +6905,7 @@ client.hooks().update(
-**enabled:** `Optional` — Whether this hook will be executed (true) or ignored (false). +**search:** `Optional` — Search for groups by name or external ID.
@@ -7102,7 +6913,39 @@ client.hooks().update(
-**dependencies:** `Optional>` +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). + +
+
+ +
+
+ +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -7114,8 +6957,7 @@ client.hooks().update(
-## Jobs -
client.jobs.get(id) -> GetJobResponseContent +
client.groups.get(id) -> GetGroupResponseContent
@@ -7127,7 +6969,7 @@ client.hooks().update(
-Retrieves a job. Useful to check its status. +Retrieve a group by its ID.
@@ -7142,7 +6984,7 @@ Retrieves a job. Useful to check its status.
```java -client.jobs().get("id"); +client.groups().get("id"); ```
@@ -7157,7 +6999,7 @@ client.jobs().get("id");
-**id:** `String` — ID of the job. +**id:** `String` — Unique identifier for the group (service-generated).
@@ -7169,8 +7011,7 @@ client.jobs().get("id");
-## LogStreams -
client.logStreams.list() -> List&lt;LogStreamResponseSchema&gt; +
client.groups.delete(id)
@@ -7182,77 +7023,7 @@ client.jobs().get("id");
-Retrieve details on [log streams](https://auth0.com/docs/logs/streams). - -**Sample Response** - -```json -[{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } -}, { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } -}, -{ - "id": "string", - "name": "string", - "type": "eventgrid", - "status": "active|paused|suspended", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } -}, -{ - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -}, -{ - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } -}, -{ - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -}] -``` +Delete a group by its ID.
@@ -7267,19 +7038,35 @@ Retrieve details on [log streams](https://auth0.com/docs/logs/streams).
```java -client.logStreams().list(); +client.groups().delete("id"); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Unique identifier for the group (service-generated). + +
+
+
+
+
-
client.logStreams.create(request) -> CreateLogStreamResponseContent +## Hooks +
client.hooks.list() -> SyncPagingIterable&lt;Hook&gt;
@@ -7291,135 +7078,1148 @@ client.logStreams().list();
-Create a log stream. - -**Log Stream Types** +Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to include or exclude in the result. +
+
+
+
-The `type` of log stream being created determines the properties required in the `sink` payload. +#### 🔌 Usage -**HTTP Stream** +
+
-For an `http` Stream, the `sink` properties are listed in the payload below. +
+
-**Request:** -```json -{ - "name": "string", - "type": "http", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } -} +```java +client.hooks().list( + ListHooksRequestParameters + .builder() + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) + .build() +); ``` +
+
+
+
-**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } -} -``` +#### ⚙️ Parameters -**Amazon EventBridge Stream** +
+
-For an `eventbridge` Stream, the `sink` properties are listed in the payload below. +
+
-**Request:** -```json -{ - "name": "string", - "type": "eventbridge", - "sink": { - "awsRegion": "string", - "awsAccountId": "string" - } -} -``` +**page:** `Optional` — Page index of the results to return. First page is 0. + +
+
-The response will include an additional field `awsPartnerEventSource` in the `sink`: +
+
-**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } -} -``` +**perPage:** `Optional` — Number of results per page. + +
+
-**Azure Event Grid Stream** +
+
-For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
-**Request:** -```json -{ - "name": "string", - "type": "eventgrid", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string" - } -} -``` +
+
-**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } -} -``` +**enabled:** `Optional` — Optional filter on whether a hook is enabled (true) or disabled (false). + +
+
-**Datadog Stream** +
+
-For a `Datadog` Stream, the `sink` properties are listed in the payload below. +**fields:** `Optional` — Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. + +
+
-**Request:** -```json -{ - "name": "string", - "type": "datadog", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -} -``` +
+
-**Response:** -```json +**triggerId:** `Optional` — Retrieves hooks that match the trigger + +
+
+
+
+ + + + +
+ +
client.hooks.create(request) -> CreateHookResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Create a new hook. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.hooks().create( + CreateHookRequestContent + .builder() + .name("name") + .script("script") + .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**name:** `String` — Name of this hook. + +
+
+ +
+
+ +**script:** `String` — Code to be executed when this hook runs. + +
+
+ +
+
+ +**enabled:** `Optional` — Whether this hook will be executed (true) or ignored (false). + +
+
+ +
+
+ +**dependencies:** `Optional>` + +
+
+ +
+
+ +**triggerId:** `HookTriggerIdEnum` — Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`. + +
+
+
+
+ + +
+
+
+ +
client.hooks.get(id) -> GetHookResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fields to include in the result. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.hooks().get( + "id", + GetHookRequestParameters + .builder() + .fields("fields") + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the hook to retrieve. + +
+
+ +
+
+ +**fields:** `Optional` — Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. + +
+
+
+
+ + +
+
+
+ +
client.hooks.delete(id) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a hook. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.hooks().delete("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the hook to delete. + +
+
+
+
+ + +
+
+
+ +
client.hooks.update(id, request) -> UpdateHookResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update an existing hook. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.hooks().update( + "id", + UpdateHookRequestContent + .builder() + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the hook to update. + +
+
+ +
+
+ +**name:** `Optional` — Name of this hook. + +
+
+ +
+
+ +**script:** `Optional` — Code to be executed when this hook runs. + +
+
+ +
+
+ +**enabled:** `Optional` — Whether this hook will be executed (true) or ignored (false). + +
+
+ +
+
+ +**dependencies:** `Optional>` + +
+
+
+
+ + +
+
+
+ +## Jobs +
client.jobs.get(id) -> GetJobResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieves a job. Useful to check its status. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.jobs().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the job. + +
+
+
+
+ + +
+
+
+ +## LogStreams +
client.logStreams.list() -> List&lt;LogStreamResponseSchema&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve details on [log streams](https://auth0.com/docs/logs/streams). + +**Sample Response** + +```json +[{ + "id": "string", + "name": "string", + "type": "eventbridge", + "status": "active|paused|suspended", + "sink": { + "awsAccountId": "string", + "awsRegion": "string", + "awsPartnerEventSource": "string" + } +}, { + "id": "string", + "name": "string", + "type": "http", + "status": "active|paused|suspended", + "sink": { + "httpContentFormat": "JSONLINES|JSONARRAY", + "httpContentType": "string", + "httpEndpoint": "string", + "httpAuthorization": "string" + } +}, +{ + "id": "string", + "name": "string", + "type": "eventgrid", + "status": "active|paused|suspended", + "sink": { + "azureSubscriptionId": "string", + "azureResourceGroup": "string", + "azureRegion": "string", + "azurePartnerTopic": "string" + } +}, +{ + "id": "string", + "name": "string", + "type": "splunk", + "status": "active|paused|suspended", + "sink": { + "splunkDomain": "string", + "splunkToken": "string", + "splunkPort": "string", + "splunkSecure": "boolean" + } +}, +{ + "id": "string", + "name": "string", + "type": "sumo", + "status": "active|paused|suspended", + "sink": { + "sumoSourceAddress": "string" + } +}, +{ + "id": "string", + "name": "string", + "type": "datadog", + "status": "active|paused|suspended", + "sink": { + "datadogRegion": "string", + "datadogApiKey": "string" + } +}] +``` +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.logStreams().list(); +``` +
+
+
+
+ + +
+
+
+ +
client.logStreams.create(request) -> CreateLogStreamResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Create a log stream. + +**Log Stream Types** + +The `type` of log stream being created determines the properties required in the `sink` payload. + +**HTTP Stream** + +For an `http` Stream, the `sink` properties are listed in the payload below. + +**Request:** +```json +{ + "name": "string", + "type": "http", + "sink": { + "httpEndpoint": "string", + "httpContentType": "string", + "httpContentFormat": "JSONLINES|JSONARRAY", + "httpAuthorization": "string" + } +} +``` + +**Response:** +```json +{ + "id": "string", + "name": "string", + "type": "http", + "status": "active", + "sink": { + "httpEndpoint": "string", + "httpContentType": "string", + "httpContentFormat": "JSONLINES|JSONARRAY", + "httpAuthorization": "string" + } +} +``` + +**Amazon EventBridge Stream** + +For an `eventbridge` Stream, the `sink` properties are listed in the payload below. + +**Request:** +```json +{ + "name": "string", + "type": "eventbridge", + "sink": { + "awsRegion": "string", + "awsAccountId": "string" + } +} +``` + +The response will include an additional field `awsPartnerEventSource` in the `sink`: + +**Response:** +```json +{ + "id": "string", + "name": "string", + "type": "eventbridge", + "status": "active", + "sink": { + "awsAccountId": "string", + "awsRegion": "string", + "awsPartnerEventSource": "string" + } +} +``` + +**Azure Event Grid Stream** + +For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. + +**Request:** +```json +{ + "name": "string", + "type": "eventgrid", + "sink": { + "azureSubscriptionId": "string", + "azureResourceGroup": "string", + "azureRegion": "string" + } +} +``` + +**Response:** +```json +{ + "id": "string", + "name": "string", + "type": "http", + "status": "active", + "sink": { + "azureSubscriptionId": "string", + "azureResourceGroup": "string", + "azureRegion": "string", + "azurePartnerTopic": "string" + } +} +``` + +**Datadog Stream** + +For a `Datadog` Stream, the `sink` properties are listed in the payload below. + +**Request:** +```json +{ + "name": "string", + "type": "datadog", + "sink": { + "datadogRegion": "string", + "datadogApiKey": "string" + } +} +``` + +**Response:** +```json +{ + "id": "string", + "name": "string", + "type": "datadog", + "status": "active", + "sink": { + "datadogRegion": "string", + "datadogApiKey": "string" + } +} +``` + +**Splunk Stream** + +For a `Splunk` Stream, the `sink` properties are listed in the payload below. + +**Request:** +```json +{ + "name": "string", + "type": "splunk", + "sink": { + "splunkDomain": "string", + "splunkToken": "string", + "splunkPort": "string", + "splunkSecure": "boolean" + } +} +``` + +**Response:** +```json +{ + "id": "string", + "name": "string", + "type": "splunk", + "status": "active", + "sink": { + "splunkDomain": "string", + "splunkToken": "string", + "splunkPort": "string", + "splunkSecure": "boolean" + } +} +``` + +**Sumo Logic Stream** + +For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. + +**Request:** +```json +{ + "name": "string", + "type": "sumo", + "sink": { + "sumoSourceAddress": "string" + } +} +``` + +**Response:** +```json +{ + "id": "string", + "name": "string", + "type": "sumo", + "status": "active", + "sink": { + "sumoSourceAddress": "string" + } +} +``` +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.logStreams().create( + CreateLogStreamRequestContent.of( + CreateLogStreamHttpRequestBody + .builder() + .type(LogStreamHttpEnum.HTTP) + .sink( + LogStreamHttpSink + .builder() + .httpEndpoint("httpEndpoint") + .build() + ) + .build() + ) +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `CreateLogStreamRequestContent` + +
+
+
+
+ + +
+
+
+ +
client.logStreams.get(id) -> GetLogStreamResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve a log stream configuration and status. + +**Sample responses** + +**Amazon EventBridge Log Stream** + +```json +{ + "id": "string", + "name": "string", + "type": "eventbridge", + "status": "active|paused|suspended", + "sink": { + "awsAccountId": "string", + "awsRegion": "string", + "awsPartnerEventSource": "string" + } +} +``` + +**HTTP Log Stream** + +```json +{ + "id": "string", + "name": "string", + "type": "http", + "status": "active|paused|suspended", + "sink": { + "httpContentFormat": "JSONLINES|JSONARRAY", + "httpContentType": "string", + "httpEndpoint": "string", + "httpAuthorization": "string" + } +} +``` + +**Datadog Log Stream** + +```json +{ + "id": "string", + "name": "string", + "type": "datadog", + "status": "active|paused|suspended", + "sink": { + "datadogRegion": "string", + "datadogApiKey": "string" + } +} +``` + +**Mixpanel** + +**Request:** + +```json +{ + "name": "string", + "type": "mixpanel", + "sink": { + "mixpanelRegion": "string", + "mixpanelProjectId": "string", + "mixpanelServiceAccountUsername": "string", + "mixpanelServiceAccountPassword": "string" + } +} +``` + +**Response:** + +```json +{ + "id": "string", + "name": "string", + "type": "mixpanel", + "status": "active", + "sink": { + "mixpanelRegion": "string", + "mixpanelProjectId": "string", + "mixpanelServiceAccountUsername": "string", + "mixpanelServiceAccountPassword": "string" + } +} +``` + +**Segment** + +**Request:** + +```json +{ + "name": "string", + "type": "segment", + "sink": { + "segmentWriteKey": "string" + } +} +``` + +**Response:** + +```json +{ + "id": "string", + "name": "string", + "type": "segment", + "status": "active", + "sink": { + "segmentWriteKey": "string" + } +} +``` + +**Splunk Log Stream** + +```json +{ + "id": "string", + "name": "string", + "type": "splunk", + "status": "active|paused|suspended", + "sink": { + "splunkDomain": "string", + "splunkToken": "string", + "splunkPort": "string", + "splunkSecure": "boolean" + } +} +``` + +**Sumo Logic Log Stream** + +```json +{ + "id": "string", + "name": "string", + "type": "sumo", + "status": "active|paused|suspended", + "sink": { + "sumoSourceAddress": "string" + } +} +``` + +**Status** + +The `status` of a log stream maybe any of the following: + +1. `active` - Stream is currently enabled. +2. `paused` - Stream is currently user disabled and will not attempt log delivery. +3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.logStreams().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the log stream to get + +
+
+
+
+ + +
+
+
+ +
client.logStreams.delete(id) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a log stream. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.logStreams().delete("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the log stream to delete + +
+
+
+
+ + +
+
+
+ +
client.logStreams.update(id, request) -> UpdateLogStreamResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update a log stream. + +**Examples of how to use the PATCH endpoint.** + +The following fields may be updated in a PATCH operation: + +- name +- status +- sink + +Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted. + +**Update the status of a log stream** + +```json +{ + "status": "active|paused" +} +``` + +**Update the name of a log stream** + +```json +{ + "name": "string" +} +``` + +**Update the sink properties of a stream of type `http`** + +```json +{ + "sink": { + "httpEndpoint": "string", + "httpContentType": "string", + "httpContentFormat": "JSONARRAY|JSONLINES", + "httpAuthorization": "string" + } +} +``` + +**Update the sink properties of a stream of type `datadog`** + +```json { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active", "sink": { "datadogRegion": "string", "datadogApiKey": "string" @@ -7427,72 +8227,564 @@ For a `Datadog` Stream, the `sink` properties are listed in the payload below. } ``` -**Splunk Stream** +**Update the sink properties of a stream of type `splunk`** + +```json +{ + "sink": { + "splunkDomain": "string", + "splunkToken": "string", + "splunkPort": "string", + "splunkSecure": "boolean" + } +} +``` + +**Update the sink properties of a stream of type `sumo`** + +```json +{ + "sink": { + "sumoSourceAddress": "string" + } +} +``` +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.logStreams().update( + "id", + UpdateLogStreamRequestContent + .builder() + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the log stream to get + +
+
+ +
+
+ +**name:** `Optional` — log stream name + +
+
+ +
+
+ +**status:** `Optional` + +
+
+ +
+
+ +**isPriority:** `Optional` — True for priority log streams, false for non-priority + +
+
+ +
+
+ +**filters:** `Optional>` — Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. + +
+
+ +
+
+ +**piiConfig:** `Optional` + +
+
+ +
+
+ +**sink:** `Optional` + +
+
+
+
+ + +
+
+
+ +## Logs +
client.logs.list() -> SyncPagingIterable&lt;Log&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). + +Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_). + +For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes). + +**To set custom search criteria, use the following parameters:** + +- **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax) +- **page:** Page index of the results to return. First page is 0. +- **per_page:** Number of results per page. +- **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1` +- **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. +- **include_fields:** Whether specified fields are to be included (true) or excluded (false). +- **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination) + +For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields). + +Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint). + +**To search from a checkpoint log ID, use the following parameters:** + +- **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored. +- **take:** Number of entries to retrieve when using the `from` parameter. + +**Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.logs().list( + ListLogsRequestParameters + .builder() + .page(1) + .perPage(1) + .sort("sort") + .fields("fields") + .includeFields(true) + .includeTotals(true) + .search("search") + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**page:** `Optional` — Page index of the results to return. First page is 0. + +
+
+ +
+
+ +**perPage:** `Optional` — Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 + +
+
+ +
+
+ +**sort:** `Optional` — Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 + +
+
+ +
+
+ +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false) + +
+
+ +
+
+ +**includeTotals:** `Optional` — Return results as an array when false (default). Return results inside an object that also contains a total result count when true. + +
+
+ +
+
+ +**search:** `Optional` + +Retrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. +If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". +Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. + +
+
+
+
+ + +
+
+
+ +
client.logs.get(id) -> GetLogResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve an individual log event. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.logs().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — log_id of the log to retrieve. + +
+
+
+
+ + +
+
+
+ +## NetworkAcls +
client.networkAcls.list() -> SyncPagingIterable&lt;NetworkAclsResponseContent&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Get all access control list entries for your client. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.networkAcls().list( + ListNetworkAclsRequestParameters + .builder() + .page(1) + .perPage(1) + .includeTotals(true) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**page:** `Optional` — Use this field to request a specific page of the list results. + +
+
+ +
+
+ +**perPage:** `Optional` — The amount of results per page. + +
+
+ +
+
+ +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+
+
+ + +
+
+
+ +
client.networkAcls.create(request) +
+
+ +#### 📝 Description -For a `Splunk` Stream, the `sink` properties are listed in the payload below. +
+
-**Request:** -```json -{ - "name": "string", - "type": "splunk", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` +
+
-**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "splunk", - "status": "active", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` +Create a new access control list for your client. +
+
+
+
-**Sumo Logic Stream** +#### 🔌 Usage -For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. +
+
-**Request:** -```json -{ - "name": "string", - "type": "sumo", - "sink": { - "sumoSourceAddress": "string" - } -} +
+
+ +```java +client.networkAcls().create( + CreateNetworkAclRequestContent + .builder() + .description("description") + .active(true) + .rule( + NetworkAclRule + .builder() + .action( + NetworkAclAction + .builder() + .build() + ) + .scope(NetworkAclRuleScopeEnum.MANAGEMENT) + .build() + ) + .build() +); ``` +
+
+
+
-**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "sumo", - "status": "active", - "sink": { - "sumoSourceAddress": "string" - } -} +#### ⚙️ Parameters + +
+
+ +
+
+ +**description:** `String` + +
+
+ +
+
+ +**active:** `Boolean` — Indicates whether or not this access control list is actively being used + +
+
+ +
+
+ +**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. + +
+
+ +
+
+ +**rule:** `NetworkAclRule` + +
+
+
+
+ + +
+
+
+ +
client.networkAcls.get(id) -> GetNetworkAclsResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Get a specific access control list entry for your client. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.networkAcls().get("id"); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the access control list to retrieve. + +
+
+
+
+ + +
+
+
+ +
client.networkAcls.set(id, request) -> SetNetworkAclsResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update existing access control list for your client. +
+
+
+
+ #### 🔌 Usage
@@ -7502,19 +8794,24 @@ For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below
```java -client.logStreams().create( - CreateLogStreamRequestContent.of( - CreateLogStreamHttpRequestBody - .builder() - .type(LogStreamHttpEnum.HTTP) - .sink( - LogStreamHttpSink - .builder() - .httpEndpoint("httpEndpoint") - .build() - ) - .build() - ) +client.networkAcls().set( + "id", + SetNetworkAclRequestContent + .builder() + .description("description") + .active(true) + .rule( + NetworkAclRule + .builder() + .action( + NetworkAclAction + .builder() + .build() + ) + .scope(NetworkAclRuleScopeEnum.MANAGEMENT) + .build() + ) + .build() ); ```
@@ -7522,15 +8819,47 @@ client.logStreams().create(
-#### ⚙️ Parameters - +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the ACL to update. + +
+
+ +
+
+ +**description:** `String` + +
+
+ +
+
+ +**active:** `Boolean` — Indicates whether or not this access control list is actively being used + +
+
+
+**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. + +
+
+
-**request:** `CreateLogStreamRequestContent` +**rule:** `NetworkAclRule`
@@ -7542,7 +8871,7 @@ client.logStreams().create(
-
client.logStreams.get(id) -> GetLogStreamResponseContent +
client.networkAcls.delete(id)
@@ -7554,158 +8883,7 @@ client.logStreams().create(
-Retrieve a log stream configuration and status. - -**Sample responses** - -**Amazon EventBridge Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } -} -``` - -**HTTP Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } -} -``` - -**Datadog Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -} -``` - -**Mixpanel** - -**Request:** - -```json -{ - "name": "string", - "type": "mixpanel", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } -} -``` - -**Response:** - -```json -{ - "id": "string", - "name": "string", - "type": "mixpanel", - "status": "active", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } -} -``` - -**Segment** - -**Request:** - -```json -{ - "name": "string", - "type": "segment", - "sink": { - "segmentWriteKey": "string" - } -} -``` - -**Response:** - -```json -{ - "id": "string", - "name": "string", - "type": "segment", - "status": "active", - "sink": { - "segmentWriteKey": "string" - } -} -``` - -**Splunk Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` - -**Sumo Logic Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } -} -``` - -**Status** - -The `status` of a log stream maybe any of the following: - -1. `active` - Stream is currently enabled. -2. `paused` - Stream is currently user disabled and will not attempt log delivery. -3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. +Delete existing access control list for your client.
@@ -7720,7 +8898,7 @@ The `status` of a log stream maybe any of the following:
```java -client.logStreams().get("id"); +client.networkAcls().delete("id"); ```
@@ -7735,7 +8913,7 @@ client.logStreams().get("id");
-**id:** `String` — The id of the log stream to get +**id:** `String` — The id of the ACL to delete
@@ -7747,7 +8925,7 @@ client.logStreams().get("id");
-
client.logStreams.delete(id) +
client.networkAcls.update(id, request) -> UpdateNetworkAclResponseContent
@@ -7759,7 +8937,7 @@ client.logStreams().get("id");
-Delete a log stream. +Update existing access control list for your client.
@@ -7774,7 +8952,12 @@ Delete a log stream.
```java -client.logStreams().delete("id"); +client.networkAcls().update( + "id", + UpdateNetworkAclRequestContent + .builder() + .build() +); ```
@@ -7789,104 +8972,80 @@ client.logStreams().delete("id");
-**id:** `String` — The id of the log stream to delete +**id:** `String` — The id of the ACL to update.
- - +
+
+**description:** `Optional` +
-
-
client.logStreams.update(id, request) -> UpdateLogStreamResponseContent
-#### 📝 Description +**active:** `Optional` — Indicates whether or not this access control list is actively being used + +
+
+**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. + +
+
+
-Update a log stream. - -**Examples of how to use the PATCH endpoint.** - -The following fields may be updated in a PATCH operation: - -- name -- status -- sink - -Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted. +**rule:** `Optional` + +
+
+ + -**Update the status of a log stream** -```json -{ - "status": "active|paused" -} -``` + + +
-**Update the name of a log stream** +## Organizations +
client.organizations.list() -> SyncPagingIterable&lt;Organization&gt; +
+
-```json -{ - "name": "string" -} -``` +#### 📝 Description -**Update the sink properties of a stream of type `http`** +
+
-```json -{ - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONARRAY|JSONLINES", - "httpAuthorization": "string" - } -} -``` +
+
-**Update the sink properties of a stream of type `datadog`** +Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. -```json -{ - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -} -``` +This endpoint supports two types of pagination: -**Update the sink properties of a stream of type `splunk`** +- Offset pagination +- Checkpoint pagination -```json -{ - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` +Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. -**Update the sink properties of a stream of type `sumo`** +**Checkpoint Pagination** -```json -{ - "sink": { - "sumoSourceAddress": "string" - } -} -``` +To search by checkpoint, use the following parameters: + +- `from`: Optional id from which to start selection. +- `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. + +**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining.
@@ -7901,10 +9060,14 @@ Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink`
```java -client.logStreams().update( - "id", - UpdateLogStreamRequestContent +client.organizations().list( + ListOrganizationsRequestParameters .builder() + .includeTotals(true) + .from("from") + .take(1) + .sort("sort") + .includeClientAssociationFor("include_client_association_for") .build() ); ``` @@ -7921,23 +9084,7 @@ client.logStreams().update(
-**id:** `String` — The id of the log stream to get - -
-
- -
-
- -**name:** `Optional` — log stream name - -
-
- -
-
- -**status:** `Optional` +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -7945,7 +9092,7 @@ client.logStreams().update(
-**isPriority:** `Optional` — True for priority log streams, false for non-priority +**from:** `Optional` — Optional Id from which to start selection.
@@ -7953,7 +9100,7 @@ client.logStreams().update(
-**filters:** `Optional>` — Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -7961,7 +9108,7 @@ client.logStreams().update(
-**piiConfig:** `Optional` +**sort:** `Optional` — Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at.
@@ -7969,7 +9116,7 @@ client.logStreams().update(
-**sink:** `Optional` +**includeClientAssociationFor:** `Optional` — Client ID. When set, each returned organization that has an association with this client gains a client object describing it; organizations without one omit the field.
@@ -7981,8 +9128,7 @@ client.logStreams().update(
-## Logs -
client.logs.list() -> SyncPagingIterable&lt;Log&gt; +
client.organizations.create(request) -> CreateOrganizationResponseContent
@@ -7994,32 +9140,7 @@ client.logStreams().update(
-Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - -Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_). - -For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes). - -**To set custom search criteria, use the following parameters:** - -- **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax) -- **page:** Page index of the results to return. First page is 0. -- **per_page:** Number of results per page. -- **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1` -- **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. -- **include_fields:** Whether specified fields are to be included (true) or excluded (false). -- **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination) - -For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields). - -Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint). - -**To search from a checkpoint log ID, use the following parameters:** - -- **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored. -- **take:** Number of entries to retrieve when using the `from` parameter. - -**Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed. +Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization).
@@ -8034,16 +9155,10 @@ Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-event
```java -client.logs().list( - ListLogsRequestParameters +client.organizations().create( + CreateOrganizationRequestContent .builder() - .page(1) - .perPage(1) - .sort("sort") - .fields("fields") - .includeFields(true) - .includeTotals(true) - .search("search") + .name("name") .build() ); ``` @@ -8060,7 +9175,7 @@ client.logs().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**name:** `String` — The name of this organization.
@@ -8068,7 +9183,7 @@ client.logs().list(
-**perPage:** `Optional` — Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 +**displayName:** `Optional` — Friendly name of this organization.
@@ -8076,7 +9191,7 @@ client.logs().list(
-**sort:** `Optional` — Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 +**branding:** `Optional`
@@ -8084,7 +9199,7 @@ client.logs().list(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**metadata:** `Optional>>`
@@ -8092,7 +9207,7 @@ client.logs().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false) +**enabledConnections:** `Optional>` — Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed)
@@ -8100,7 +9215,7 @@ client.logs().list(
-**includeTotals:** `Optional` — Return results as an array when false (default). Return results inside an object that also contains a total result count when true. +**tokenQuota:** `Optional`
@@ -8108,11 +9223,15 @@ client.logs().list(
-**search:** `Optional` +**thirdPartyClientAccess:** `Optional` + +
+
-Retrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. -If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". -Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. +
+
+ +**isAppEntitlementActive:** `Optional` — Whether app entitlement is active for this organization.
@@ -8124,7 +9243,7 @@ Values specified without quotes are matched using a case insensitive 'starts wit
-
client.logs.get(id) -> GetLogResponseContent +
client.organizations.getByName(name) -> GetOrganizationByNameResponseContent
@@ -8136,7 +9255,7 @@ Values specified without quotes are matched using a case insensitive 'starts wit
-Retrieve an individual log event. +Retrieve details about a single Organization specified by name.
@@ -8151,7 +9270,7 @@ Retrieve an individual log event.
```java -client.logs().get("id"); +client.organizations().getByName("name"); ```
@@ -8166,7 +9285,7 @@ client.logs().get("id");
-**id:** `String` — log_id of the log to retrieve. +**name:** `String` — name of the organization to retrieve.
@@ -8178,8 +9297,7 @@ client.logs().get("id");
-## NetworkAcls -
client.networkAcls.list() -> SyncPagingIterable&lt;NetworkAclsResponseContent&gt; +
client.organizations.get(id) -> GetOrganizationResponseContent
@@ -8191,7 +9309,7 @@ client.logs().get("id");
-Get all access control list entries for your client. +Retrieve details about a single Organization specified by ID.
@@ -8206,14 +9324,7 @@ Get all access control list entries for your client.
```java -client.networkAcls().list( - ListNetworkAclsRequestParameters - .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .build() -); +client.organizations().get("id"); ```
@@ -8228,23 +9339,63 @@ client.networkAcls().list(
-**page:** `Optional` — Use this field to request a specific page of the list results. +**id:** `String` — ID of the organization to retrieve.
+ + + + + + +
+
client.organizations.delete(id)
-**perPage:** `Optional` — The amount of results per page. - +#### 📝 Description + +
+
+ +
+
+ +Remove an Organization from your tenant. This action cannot be undone. + +**Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant.
+
+
+ +#### 🔌 Usage
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +
+
+ +```java +client.organizations().delete("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Organization identifier.
@@ -8256,7 +9407,7 @@ client.networkAcls().list(
-
client.networkAcls.create(request) +
client.organizations.update(id, request) -> UpdateOrganizationResponseContent
@@ -8268,7 +9419,7 @@ client.networkAcls().list(
-Create a new access control list for your client. +Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata.
@@ -8283,22 +9434,10 @@ Create a new access control list for your client.
```java -client.networkAcls().create( - CreateNetworkAclRequestContent +client.organizations().update( + "id", + UpdateOrganizationRequestContent .builder() - .description("description") - .active(true) - .rule( - NetworkAclRule - .builder() - .action( - NetworkAclAction - .builder() - .build() - ) - .scope(NetworkAclRuleScopeEnum.MANAGEMENT) - .build() - ) .build() ); ``` @@ -8307,15 +9446,47 @@ client.networkAcls().create(
-#### ⚙️ Parameters - +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the organization to update. + +
+
+ +
+
+ +**displayName:** `Optional` — Friendly name of this organization. + +
+
+ +
+
+ +**name:** `Optional` — The name of this organization. + +
+
+
+**branding:** `Optional` + +
+
+
-**description:** `String` +**metadata:** `Optional>>`
@@ -8323,7 +9494,7 @@ client.networkAcls().create(
-**active:** `Boolean` — Indicates whether or not this access control list is actively being used +**tokenQuota:** `Optional`
@@ -8331,7 +9502,7 @@ client.networkAcls().create(
-**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. +**thirdPartyClientAccess:** `Optional`
@@ -8339,7 +9510,7 @@ client.networkAcls().create(
-**rule:** `NetworkAclRule` +**isAppEntitlementActive:** `Optional` — Whether app entitlement is active for this organization.
@@ -8351,7 +9522,8 @@ client.networkAcls().create(
-
client.networkAcls.get(id) -> GetNetworkAclsResponseContent +## Prompts +
client.prompts.getSettings() -> GetSettingsResponseContent
@@ -8363,7 +9535,7 @@ client.networkAcls().create(
-Get a specific access control list entry for your client. +Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features.
@@ -8378,34 +9550,19 @@ Get a specific access control list entry for your client.
```java -client.networkAcls().get("id"); +client.prompts().getSettings(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — The id of the access control list to retrieve. - -
-
-
-
-
-
client.networkAcls.set(id, request) -> SetNetworkAclsResponseContent +
client.prompts.updateSettings(request) -> UpdateSettingsResponseContent
@@ -8417,7 +9574,7 @@ client.networkAcls().get("id");
-Update existing access control list for your client. +Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features.
@@ -8432,23 +9589,9 @@ Update existing access control list for your client.
```java -client.networkAcls().set( - "id", - SetNetworkAclRequestContent +client.prompts().updateSettings( + UpdateSettingsRequestContent .builder() - .description("description") - .active(true) - .rule( - NetworkAclRule - .builder() - .action( - NetworkAclAction - .builder() - .build() - ) - .scope(NetworkAclRuleScopeEnum.MANAGEMENT) - .build() - ) .build() ); ``` @@ -8465,23 +9608,7 @@ client.networkAcls().set(
-**id:** `String` — The id of the ACL to update. - -
-
- -
-
- -**description:** `String` - -
-
- -
-
- -**active:** `Boolean` — Indicates whether or not this access control list is actively being used +**universalLoginExperience:** `Optional`
@@ -8489,7 +9616,7 @@ client.networkAcls().set(
-**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. +**identifierFirst:** `Optional` — Whether identifier first is enabled or not
@@ -8497,7 +9624,7 @@ client.networkAcls().set(
-**rule:** `NetworkAclRule` +**webauthnPlatformFirstFactor:** `Optional` — Use WebAuthn with Device Biometrics as the first authentication factor
@@ -8509,24 +9636,11 @@ client.networkAcls().set(
-
client.networkAcls.delete(id) -
-
- -#### 📝 Description - -
-
- +## RateLimitPolicies +
client.rateLimitPolicies.list() -> SyncPagingIterable&lt;RateLimitPolicy&gt;
-Delete existing access control list for your client. -
-
-
-
- #### 🔌 Usage
@@ -8536,7 +9650,16 @@ Delete existing access control list for your client.
```java -client.networkAcls().delete("id"); +client.rateLimitPolicies().list( + ListRateLimitPoliciesRequestParameters + .builder() + .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) + .consumer(RateLimitPolicyConsumerEnum.CLIENT) + .consumerSelector("consumer_selector") + .take(1) + .from("from") + .build() +); ```
@@ -8551,35 +9674,53 @@ client.networkAcls().delete("id");
-**id:** `String` — The id of the ACL to delete +**resource:** `Optional` — The API protected by the Rate Limit Policy.
-
-
+
+
+**consumer:** `Optional` — The consumer to which the rate limit policy applies. +
-
-
client.networkAcls.update(id, request) -> UpdateNetworkAclResponseContent
-#### 📝 Description +**consumerSelector:** `Optional` — Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. + +
+
+**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+
-Update existing access control list for your client. +**from:** `Optional` — Cursor for pagination. + +
+
+ + +
+ +
client.rateLimitPolicies.create(request) -> CreateRateLimitPolicyResponseContent +
+
#### 🔌 Usage @@ -8590,10 +9731,20 @@ Update existing access control list for your client.
```java -client.networkAcls().update( - "id", - UpdateNetworkAclRequestContent +client.rateLimitPolicies().create( + CreateRateLimitPolicyRequestContent .builder() + .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) + .consumer(RateLimitPolicyConsumerEnum.CLIENT) + .consumerSelector("consumer_selector") + .configuration( + RateLimitPolicyConfiguration.of( + RateLimitPolicyConfigurationZero + .builder() + .action(RateLimitPolicyConfigurationZeroAction.ALLOW) + .build() + ) + ) .build() ); ``` @@ -8610,7 +9761,7 @@ client.networkAcls().update(
-**id:** `String` — The id of the ACL to update. +**resource:** `RateLimitPolicyResourceEnum`
@@ -8618,7 +9769,7 @@ client.networkAcls().update(
-**description:** `Optional` +**consumer:** `RateLimitPolicyConsumerEnum`
@@ -8626,7 +9777,7 @@ client.networkAcls().update(
-**active:** `Optional` — Indicates whether or not this access control list is actively being used +**consumerSelector:** `String` — Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted.
@@ -8634,15 +9785,47 @@ client.networkAcls().update(
-**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. +**configuration:** `RateLimitPolicyConfiguration`
+
+
+ + + + +
+ +
client.rateLimitPolicies.get(id) -> GetRateLimitPolicyResponseContent +
+
+ +#### 🔌 Usage
-**rule:** `Optional` +
+
+ +```java +client.rateLimitPolicies().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Unique identifier for the Rate Limit Policy.
@@ -8654,12 +9837,11 @@ client.networkAcls().update(
-## Organizations -
client.organizations.list() -> SyncPagingIterable&lt;Organization&gt; +
client.rateLimitPolicies.delete(id)
-#### 📝 Description +#### 🔌 Usage
@@ -8667,27 +9849,37 @@ client.networkAcls().update(
-Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. - -This endpoint supports two types of pagination: - -- Offset pagination -- Checkpoint pagination - -Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. +```java +client.rateLimitPolicies().delete("id"); +``` +
+
+
+
-**Checkpoint Pagination** +#### ⚙️ Parameters -To search by checkpoint, use the following parameters: +
+
-- `from`: Optional id from which to start selection. -- `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. +
+
-**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. +**id:** `String` — Unique identifier for the Rate Limit Policy. + +
+
+ +
+
+ +
client.rateLimitPolicies.update(id, request) -> UpdateRateLimitPolicyResponseContent +
+
#### 🔌 Usage @@ -8698,12 +9890,18 @@ To search by checkpoint, use the following parameters:
```java -client.organizations().list( - ListOrganizationsRequestParameters +client.rateLimitPolicies().update( + "id", + PatchRateLimitPolicyRequestContent .builder() - .from("from") - .take(1) - .sort("sort") + .configuration( + PatchRateLimitPolicyConfigurationRequestContent.of( + PatchRateLimitPolicyConfigurationRequestContentZero + .builder() + .action(PatchRateLimitPolicyConfigurationRequestContentZeroAction.ALLOW) + .build() + ) + ) .build() ); ``` @@ -8720,15 +9918,7 @@ client.organizations().list(
-**from:** `Optional` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `Optional` — Number of results per page. Defaults to 50. +**id:** `String` — Unique identifier for the Rate Limit Policy.
@@ -8736,7 +9926,7 @@ client.organizations().list(
-**sort:** `Optional` — Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. +**configuration:** `PatchRateLimitPolicyConfigurationRequestContent`
@@ -8748,7 +9938,8 @@ client.organizations().list(
-
client.organizations.create(request) -> CreateOrganizationResponseContent +## RefreshTokens +
client.refreshTokens.list() -> SyncPagingIterable&lt;RefreshTokenResponseContent&gt;
@@ -8760,7 +9951,7 @@ client.organizations().list(
-Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization). +Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending.
@@ -8775,10 +9966,15 @@ Create a new Organization within your tenant. To learn more about Organization
```java -client.organizations().create( - CreateOrganizationRequestContent +client.refreshTokens().list( + GetRefreshTokensRequestParameters .builder() - .name("name") + .userId("user_id") + .clientId("client_id") + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -8795,15 +9991,7 @@ client.organizations().create(
-**name:** `String` — The name of this organization. - -
-
- -
-
- -**displayName:** `Optional` — Friendly name of this organization. +**userId:** `String` — ID of the user whose refresh tokens to retrieve. Required.
@@ -8811,7 +9999,7 @@ client.organizations().create(
-**branding:** `Optional` +**clientId:** `Optional` — Filter results by client ID. Only valid when user_id is provided.
@@ -8819,7 +10007,7 @@ client.organizations().create(
-**metadata:** `Optional>>` +**from:** `Optional` — An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response.
@@ -8827,7 +10015,7 @@ client.organizations().create(
-**enabledConnections:** `Optional>` — Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -8835,7 +10023,7 @@ client.organizations().create(
-**tokenQuota:** `Optional` +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
@@ -8843,7 +10031,7 @@ client.organizations().create(
-**thirdPartyClientAccess:** `Optional` +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -8855,7 +10043,7 @@ client.organizations().create(
-
client.organizations.getByName(name) -> GetOrganizationByNameResponseContent +
client.refreshTokens.revoke(request)
@@ -8867,7 +10055,7 @@ client.organizations().create(
-Retrieve details about a single Organization specified by name. +Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience.
@@ -8882,7 +10070,11 @@ Retrieve details about a single Organization specified by name.
```java -client.organizations().getByName("name"); +client.refreshTokens().revoke( + RevokeRefreshTokensRequestContent + .builder() + .build() +); ```
@@ -8897,7 +10089,31 @@ client.organizations().getByName("name");
-**name:** `String` — name of the organization to retrieve. +**ids:** `Optional>` — Array of refresh token IDs to revoke. Limited to 100 at a time. + +
+
+ +
+
+ +**userId:** `Optional` — Revoke all refresh tokens for this user. + +
+
+ +
+
+ +**clientId:** `Optional` — Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`. + +
+
+ +
+
+ +**audience:** `Optional` — Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`.
@@ -8909,7 +10125,7 @@ client.organizations().getByName("name");
-
client.organizations.get(id) -> GetOrganizationResponseContent +
client.refreshTokens.get(id) -> GetRefreshTokenResponseContent
@@ -8921,7 +10137,7 @@ client.organizations().getByName("name");
-Retrieve details about a single Organization specified by ID. +Retrieve refresh token information.
@@ -8936,7 +10152,7 @@ Retrieve details about a single Organization specified by ID.
```java -client.organizations().get("id"); +client.refreshTokens().get("id"); ```
@@ -8951,7 +10167,7 @@ client.organizations().get("id");
-**id:** `String` — ID of the organization to retrieve. +**id:** `String` — ID refresh token to retrieve
@@ -8963,7 +10179,7 @@ client.organizations().get("id");
-
client.organizations.delete(id) +
client.refreshTokens.delete(id)
@@ -8975,9 +10191,7 @@ client.organizations().get("id");
-Remove an Organization from your tenant. This action cannot be undone. - -**Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant. +Delete a refresh token by its ID.
@@ -8992,7 +10206,7 @@ Remove an Organization from your tenant. This action cannot be undone.
```java -client.organizations().delete("id"); +client.refreshTokens().delete("id"); ```
@@ -9007,7 +10221,7 @@ client.organizations().delete("id");
-**id:** `String` — Organization identifier. +**id:** `String` — ID of the refresh token to delete.
@@ -9019,7 +10233,7 @@ client.organizations().delete("id");
-
client.organizations.update(id, request) -> UpdateOrganizationResponseContent +
client.refreshTokens.update(id, request) -> UpdateRefreshTokenResponseContent
@@ -9031,7 +10245,7 @@ client.organizations().delete("id");
-Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata. +Update a refresh token by its ID.
@@ -9046,9 +10260,9 @@ Update the details of a specific [Organization](https://auth0.com/docs/manage-us
```java -client.organizations().update( +client.refreshTokens().update( "id", - UpdateOrganizationRequestContent + UpdateRefreshTokenRequestContent .builder() .build() ); @@ -9066,47 +10280,7 @@ client.organizations().update(
-**id:** `String` — ID of the organization to update. - -
-
- -
-
- -**displayName:** `Optional` — Friendly name of this organization. - -
-
- -
-
- -**name:** `Optional` — The name of this organization. - -
-
- -
-
- -**branding:** `Optional` - -
-
- -
-
- -**metadata:** `Optional>>` - -
-
- -
-
- -**tokenQuota:** `Optional` +**id:** `String` — ID of the refresh token to update.
@@ -9114,7 +10288,7 @@ client.organizations().update(
-**thirdPartyClientAccess:** `Optional` +**refreshTokenMetadata:** `Optional>` — Metadata associated with the refresh token. Pass null or {} to remove all metadata.
@@ -9126,8 +10300,8 @@ client.organizations().update(
-## Prompts -
client.prompts.getSettings() -> GetSettingsResponseContent +## ResourceServers +
client.resourceServers.list() -> SyncPagingIterable&lt;ResourceServer&gt;
@@ -9139,7 +10313,7 @@ client.organizations().update(
-Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. +Retrieve details of all APIs associated with your tenant.
@@ -9154,23 +10328,25 @@ Retrieve details of the Universal Login configuration of your tenant. This inclu
```java -client.prompts().getSettings(); +client.resourceServers().list( + ListResourceServerRequestParameters + .builder() + .page(1) + .perPage(1) + .includeTotals(true) + .includeFields(true) + .identifiers( + Arrays.asList("identifiers") + ) + .build() +); ```
- - - -
- -
client.prompts.updateSettings(request) -> UpdateSettingsResponseContent -
-
- -#### 📝 Description +#### ⚙️ Parameters
@@ -9178,41 +10354,23 @@ client.prompts().getSettings();
-Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. -
-
+**identifiers:** `Optional` — An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../resource-servers?identifiers=id1&identifiers=id2 +
-#### 🔌 Usage - -
-
-
-```java -client.prompts().updateSettings( - UpdateSettingsRequestContent - .builder() - .build() -); -``` -
-
+**page:** `Optional` — Page index of the results to return. First page is 0. +
-#### ⚙️ Parameters - -
-
-
-**universalLoginExperience:** `Optional` +**perPage:** `Optional` — Number of results per page.
@@ -9220,7 +10378,7 @@ client.prompts().updateSettings(
-**identifierFirst:** `Optional` — Whether identifier first is enabled or not +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -9228,7 +10386,7 @@ client.prompts().updateSettings(
-**webauthnPlatformFirstFactor:** `Optional` — Use WebAuthn with Device Biometrics as the first authentication factor +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -9240,11 +10398,24 @@ client.prompts().updateSettings(
-## RateLimitPolicies -
client.rateLimitPolicies.list() -> SyncPagingIterable&lt;RateLimitPolicy&gt; +
client.resourceServers.create(request) -> CreateResourceServerResponseContent +
+
+ +#### 📝 Description + +
+
+
+Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. +
+
+
+
+ #### 🔌 Usage
@@ -9254,14 +10425,10 @@ client.prompts().updateSettings(
```java -client.rateLimitPolicies().list( - ListRateLimitPoliciesRequestParameters +client.resourceServers().create( + CreateResourceServerRequestContent .builder() - .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) - .consumer(RateLimitPolicyConsumerEnum.CLIENT) - .consumerSelector("consumer_selector") - .take(1) - .from("from") + .identifier("identifier") .build() ); ``` @@ -9278,7 +10445,23 @@ client.rateLimitPolicies().list(
-**resource:** `Optional` — The API protected by the Rate Limit Policy. +**name:** `Optional` — Friendly name for this resource server. Can not contain `<` or `>` characters. + +
+
+ +
+
+ +**identifier:** `String` — Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. + +
+
+ +
+
+ +**scopes:** `Optional>` — List of permissions (scopes) that this API uses.
@@ -9286,7 +10469,7 @@ client.rateLimitPolicies().list(
-**consumer:** `Optional` — The consumer to which the rate limit policy applies. +**signingAlg:** `Optional`
@@ -9294,7 +10477,7 @@ client.rateLimitPolicies().list(
-**consumerSelector:** `Optional` — Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. +**signingSecret:** `Optional` — Secret used to sign tokens when using symmetric algorithms (HS256).
@@ -9302,7 +10485,7 @@ client.rateLimitPolicies().list(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**allowOfflineAccess:** `Optional` — Whether refresh tokens can be issued for this API (true) or not (false).
@@ -9310,62 +10493,71 @@ client.rateLimitPolicies().list(
-**from:** `Optional` — Cursor for pagination. +**allowOnlineAccess:** `Optional` — Whether Online Refresh Tokens can be issued for this API (true) or not (false).
+ +
+
+ +**allowOnlineAccessWithEphemeralSessions:** `Optional` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). +
+
+
+**tokenLifetime:** `Optional` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint. +
-
-
client.rateLimitPolicies.create(request) -> CreateRateLimitPolicyResponseContent
-#### 🔌 Usage +**tokenDialect:** `Optional` + +
+
+**skipConsentForVerifiableFirstPartyClients:** `Optional` — Whether to skip user consent for applications flagged as first party (true) or not (false). + +
+
+
-```java -client.rateLimitPolicies().create( - CreateRateLimitPolicyRequestContent - .builder() - .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) - .consumer(RateLimitPolicyConsumerEnum.CLIENT) - .consumerSelector("consumer_selector") - .configuration( - RateLimitPolicyConfiguration.of( - RateLimitPolicyConfigurationZero - .builder() - .action(RateLimitPolicyConfigurationZeroAction.ALLOW) - .build() - ) - ) - .build() -); -``` +**enforcePolicies:** `Optional` — Whether to enforce authorization policies (true) or to ignore them (false). +
+ +
+
+ +**tokenEncryption:** `Optional` +
-#### ⚙️ Parameters -
+**consentPolicy:** `Optional` + +
+
+
-**resource:** `RateLimitPolicyResourceEnum` +**authorizationDetails:** `Optional>`
@@ -9373,7 +10565,7 @@ client.rateLimitPolicies().create(
-**consumer:** `RateLimitPolicyConsumerEnum` +**proofOfPossession:** `Optional`
@@ -9381,7 +10573,7 @@ client.rateLimitPolicies().create(
-**consumerSelector:** `String` — Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. +**subjectTypeAuthorization:** `Optional`
@@ -9389,7 +10581,7 @@ client.rateLimitPolicies().create(
-**configuration:** `RateLimitPolicyConfiguration` +**authorizationPolicy:** `Optional`
@@ -9401,11 +10593,11 @@ client.rateLimitPolicies().create(
-
client.rateLimitPolicies.get(id) -> GetRateLimitPolicyResponseContent +
client.resourceServers.get(id) -> GetResourceServerResponseContent
-#### 🔌 Usage +#### 📝 Description
@@ -9413,15 +10605,13 @@ client.rateLimitPolicies().create(
-```java -client.rateLimitPolicies().get("id"); -``` +Retrieve API details with the given ID.
-#### ⚙️ Parameters +#### 🔌 Usage
@@ -9429,23 +10619,21 @@ client.rateLimitPolicies().get("id");
-**id:** `String` — Unique identifier for the Rate Limit Policy. - -
-
+```java +client.resourceServers().get( + "id", + GetResourceServerRequestParameters + .builder() + .includeFields(true) + .build() +); +```
- -
-
- -
client.rateLimitPolicies.delete(id) -
-
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -9453,23 +10641,15 @@ client.rateLimitPolicies().get("id");
-```java -client.rateLimitPolicies().delete("id"); -``` -
-
+**id:** `String` — ID or audience of the resource server to retrieve. +
-#### ⚙️ Parameters -
-
-
- -**id:** `String` — Unique identifier for the Rate Limit Policy. +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -9481,11 +10661,11 @@ client.rateLimitPolicies().delete("id");
-
client.rateLimitPolicies.update(id, request) -> UpdateRateLimitPolicyResponseContent +
client.resourceServers.delete(id)
-#### 🔌 Usage +#### 📝 Description
@@ -9493,28 +10673,13 @@ client.rateLimitPolicies().delete("id");
-```java -client.rateLimitPolicies().update( - "id", - PatchRateLimitPolicyRequestContent - .builder() - .configuration( - PatchRateLimitPolicyConfigurationRequestContent.of( - PatchRateLimitPolicyConfigurationRequestContentZero - .builder() - .action(PatchRateLimitPolicyConfigurationRequestContentZeroAction.ALLOW) - .build() - ) - ) - .build() -); -``` +Delete an existing API by ID. For more information, read API Settings.
-#### ⚙️ Parameters +#### 🔌 Usage
@@ -9522,15 +10687,23 @@ client.rateLimitPolicies().update(
-**id:** `String` — Unique identifier for the Rate Limit Policy. - +```java +client.resourceServers().delete("id"); +``` +
+
+#### ⚙️ Parameters +
-**configuration:** `PatchRateLimitPolicyConfigurationRequestContent` +
+
+ +**id:** `String` — ID or the audience of the resource server to delete.
@@ -9542,8 +10715,7 @@ client.rateLimitPolicies().update(
-## RefreshTokens -
client.refreshTokens.list() -> SyncPagingIterable&lt;RefreshTokenResponseContent&gt; +
client.resourceServers.update(id, request) -> UpdateResourceServerResponseContent
@@ -9555,7 +10727,7 @@ client.rateLimitPolicies().update(
-Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. +Change an existing API setting by resource server ID. For more information, read API Settings.
@@ -9570,15 +10742,10 @@ Retrieve a paginated list of refresh tokens for a specific user, with optional f
```java -client.refreshTokens().list( - GetRefreshTokensRequestParameters +client.resourceServers().update( + "id", + UpdateResourceServerRequestContent .builder() - .userId("user_id") - .clientId("client_id") - .from("from") - .take(1) - .fields("fields") - .includeFields(true) .build() ); ``` @@ -9595,7 +10762,7 @@ client.refreshTokens().list(
-**userId:** `String` — ID of the user whose refresh tokens to retrieve. Required. +**id:** `String` — ID or audience of the resource server to update.
@@ -9603,7 +10770,7 @@ client.refreshTokens().list(
-**clientId:** `Optional` — Filter results by client ID. Only valid when user_id is provided. +**name:** `Optional` — Friendly name for this resource server. Can not contain `<` or `>` characters.
@@ -9611,7 +10778,7 @@ client.refreshTokens().list(
-**from:** `Optional` — An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. +**scopes:** `Optional>` — List of permissions (scopes) that this API uses.
@@ -9619,7 +10786,7 @@ client.refreshTokens().list(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**signingAlg:** `Optional`
@@ -9627,7 +10794,7 @@ client.refreshTokens().list(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**signingSecret:** `Optional` — Secret used to sign tokens when using symmetric algorithms (HS256).
@@ -9635,65 +10802,31 @@ client.refreshTokens().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**skipConsentForVerifiableFirstPartyClients:** `Optional` — Whether to skip user consent for applications flagged as first party (true) or not (false).
-
-
- - - - -
- -
client.refreshTokens.revoke(request) -
-
- -#### 📝 Description - -
-
-Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. -
-
+**allowOfflineAccess:** `Optional` — Whether refresh tokens can be issued for this API (true) or not (false). +
-#### 🔌 Usage - -
-
-
-```java -client.refreshTokens().revoke( - RevokeRefreshTokensRequestContent - .builder() - .build() -); -``` -
-
+**allowOnlineAccess:** `Optional` — Whether Online Refresh Tokens can be issued for this API (true) or not (false). +
-#### ⚙️ Parameters - -
-
-
-**ids:** `Optional>` — Array of refresh token IDs to revoke. Limited to 100 at a time. +**allowOnlineAccessWithEphemeralSessions:** `Optional` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false).
@@ -9701,7 +10834,7 @@ client.refreshTokens().revoke(
-**userId:** `Optional` — Revoke all refresh tokens for this user. +**tokenLifetime:** `Optional` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint.
@@ -9709,7 +10842,7 @@ client.refreshTokens().revoke(
-**clientId:** `Optional` — Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`. +**tokenDialect:** `Optional`
@@ -9717,61 +10850,55 @@ client.refreshTokens().revoke(
-**audience:** `Optional` — Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`. +**enforcePolicies:** `Optional` — Whether authorization policies are enforced (true) or not enforced (false).
-
-
- - -
-
-
- -
client.refreshTokens.get(id) -> GetRefreshTokenResponseContent -
-
- -#### 📝 Description - -
-
-Retrieve refresh token information. -
-
+**tokenEncryption:** `Optional` +
-#### 🔌 Usage -
+**consentPolicy:** `Optional` + +
+
+
-```java -client.refreshTokens().get("id"); -``` +**authorizationDetails:** `Optional>` +
+ +
+
+ +**proofOfPossession:** `Optional` +
-#### ⚙️ Parameters -
+**subjectTypeAuthorization:** `Optional` + +
+
+
-**id:** `String` — ID refresh token to retrieve +**authorizationPolicy:** `Optional`
@@ -9783,7 +10910,8 @@ client.refreshTokens().get("id");
-
client.refreshTokens.delete(id) +## Roles +
client.roles.list() -> SyncPagingIterable&lt;Role&gt;
@@ -9795,7 +10923,9 @@ client.refreshTokens().get("id");
-Delete a refresh token by its ID. +Retrieve detailed list of user roles created in your tenant. + +**Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.
@@ -9810,7 +10940,17 @@ Delete a refresh token by its ID.
```java -client.refreshTokens().delete("id"); +client.roles().list( + ListRolesRequestParameters + .builder() + .perPage(1) + .page(1) + .includeTotals(true) + .nameFilter("name_filter") + .type(RoleTypeEnum.TENANT) + .ownerId("owner_id") + .build() +); ```
@@ -9825,66 +10965,39 @@ client.refreshTokens().delete("id");
-**id:** `String` — ID of the refresh token to delete. +**perPage:** `Optional` — Number of results per page. Defaults to 50.
- - - - - - -
-
client.refreshTokens.update(id, request) -> UpdateRefreshTokenResponseContent
-#### 📝 Description - -
-
+**page:** `Optional` — Page index of the results to return. First page is 0. + +
+
-Update a refresh token by its ID. -
-
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +
-#### 🔌 Usage - -
-
-
-```java -client.refreshTokens().update( - "id", - UpdateRefreshTokenRequestContent - .builder() - .build() -); -``` -
-
+**nameFilter:** `Optional` — Optional filter on name (case-insensitive). +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — ID of the refresh token to update. +**type:** `Optional` — Optional filter on the type of the role
@@ -9892,7 +11005,7 @@ client.refreshTokens().update(
-**refreshTokenMetadata:** `Optional>` — Metadata associated with the refresh token. Pass null or {} to remove all metadata. +**ownerId:** `Optional` — Filter organization-level roles by owner ID. Required when type is "organization".
@@ -9904,8 +11017,7 @@ client.refreshTokens().update(
-## ResourceServers -
client.resourceServers.list() -> SyncPagingIterable&lt;ResourceServer&gt; +
client.roles.create(request) -> CreateRoleResponseContent
@@ -9917,7 +11029,9 @@ client.refreshTokens().update(
-Retrieve details of all APIs associated with your tenant. +Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). + +**Note**: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.
@@ -9932,16 +11046,10 @@ Retrieve details of all APIs associated with your tenant.
```java -client.resourceServers().list( - ListResourceServerRequestParameters +client.roles().create( + CreateRoleRequestContent .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .includeFields(true) - .identifiers( - Arrays.asList("identifiers") - ) + .name("name") .build() ); ``` @@ -9958,15 +11066,7 @@ client.resourceServers().list(
-**identifiers:** `Optional` — An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../resource-servers?identifiers=id1&identifiers=id2 - -
-
- -
-
- -**page:** `Optional` — Page index of the results to return. First page is 0. +**name:** `String` — Name of the role.
@@ -9974,7 +11074,7 @@ client.resourceServers().list(
-**perPage:** `Optional` — Number of results per page. +**description:** `Optional` — Description of the role.
@@ -9982,7 +11082,7 @@ client.resourceServers().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**type:** `Optional` — The type of the role. Defaults to tenant.
@@ -9990,7 +11090,7 @@ client.resourceServers().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**ownerId:** `Optional` — The ID of the organization that owns this role. Required when type is "organization".
@@ -10002,7 +11102,7 @@ client.resourceServers().list(
-
client.resourceServers.create(request) -> CreateResourceServerResponseContent +
client.roles.get(id) -> GetRoleResponseContent
@@ -10014,7 +11114,7 @@ client.resourceServers().list(
-Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. +Retrieve details about a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID.
@@ -10029,12 +11129,7 @@ Create a new API associated with your tenant. Note that all new APIs must be reg
```java -client.resourceServers().create( - CreateResourceServerRequestContent - .builder() - .identifier("identifier") - .build() -); +client.roles().get("id"); ```
@@ -10049,127 +11144,120 @@ client.resourceServers().create(
-**name:** `Optional` — Friendly name for this resource server. Can not contain `<` or `>` characters. +**id:** `String` — ID of the role to retrieve.
+ + -
-
-**identifier:** `String` — Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. -
+
+
client.roles.delete(id)
-**scopes:** `Optional>` — List of permissions (scopes) that this API uses. - -
-
+#### 📝 Description
-**signingAlg:** `Optional` - -
-
-
-**signingSecret:** `Optional` — Secret used to sign tokens when using symmetric algorithms (HS256). - +Delete a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. +
+
+#### 🔌 Usage +
-**allowOfflineAccess:** `Optional` — Whether refresh tokens can be issued for this API (true) or not (false). - -
-
-
-**allowOnlineAccess:** `Optional` — Whether Online Refresh Tokens can be issued for this API (true) or not (false). - +```java +client.roles().delete("id"); +``` +
+
+#### ⚙️ Parameters +
-**allowOnlineAccessWithEphemeralSessions:** `Optional` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - -
-
-
-**tokenLifetime:** `Optional` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint. +**id:** `String` — ID of the role to delete.
+ + -
-
-**tokenDialect:** `Optional` -
+
+
client.roles.update(id, request) -> UpdateRoleResponseContent
-**skipConsentForVerifiableFirstPartyClients:** `Optional` — Whether to skip user consent for applications flagged as first party (true) or not (false). - -
-
+#### 📝 Description
-**enforcePolicies:** `Optional` — Whether to enforce authorization policies (true) or to ignore them (false). - -
-
-
-**tokenEncryption:** `Optional` - +Modify the details of a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. +
+
+#### 🔌 Usage +
-**consentPolicy:** `Optional` - -
-
-
-**authorizationDetails:** `Optional>` - +```java +client.roles().update( + "id", + UpdateRoleRequestContent + .builder() + .build() +); +```
+ + + +#### ⚙️ Parameters
-**proofOfPossession:** `Optional` +
+
+ +**id:** `String` — ID of the role to update.
@@ -10177,7 +11265,7 @@ client.resourceServers().create(
-**subjectTypeAuthorization:** `Optional` +**name:** `Optional` — Name of this role.
@@ -10185,7 +11273,7 @@ client.resourceServers().create(
-**authorizationPolicy:** `Optional` +**description:** `Optional` — Description of this role.
@@ -10197,7 +11285,8 @@ client.resourceServers().create(
-
client.resourceServers.get(id) -> GetResourceServerResponseContent +## Rules +
client.rules.list() -> SyncPagingIterable&lt;Rule&gt;
@@ -10209,7 +11298,7 @@ client.resourceServers().create(
-Retrieve API details with the given ID. +Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a list of fields to include or exclude.
@@ -10224,10 +11313,14 @@ Retrieve API details with the given ID
```java -client.resourceServers().get( - "id", - GetResourceServerRequestParameters +client.rules().list( + ListRulesRequestParameters .builder() + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") .includeFields(true) .build() ); @@ -10245,7 +11338,7 @@ client.resourceServers().get(
-**id:** `String` — ID or audience of the resource server to retrieve. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -10253,61 +11346,39 @@ client.resourceServers().get(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**perPage:** `Optional` — Number of results per page.
-
-
- - - - -
-
client.resourceServers.delete(id)
-#### 📝 Description - -
-
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
-Delete an existing API by ID. For more information, read API Settings. -
-
+**enabled:** `Optional` — Optional filter on whether a rule is enabled (true) or disabled (false). +
-#### 🔌 Usage - -
-
-
-```java -client.resourceServers().delete("id"); -``` -
-
+**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — ID or the audience of the resource server to delete. +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -10319,7 +11390,7 @@ client.resourceServers().delete("id");
-
client.resourceServers.update(id, request) -> UpdateResourceServerResponseContent +
client.rules.create(request) -> CreateRuleResponseContent
@@ -10331,7 +11402,9 @@ client.resourceServers().delete("id");
-Change an existing API setting by resource server ID. For more information, read API Settings. +Create a [new rule](https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api). + +Note: Changing a rule's stage of execution from the default `login_success` can change the rule's function signature to have user omitted.
@@ -10346,10 +11419,11 @@ Change an existing API setting by resource server ID. For more information, read
```java -client.resourceServers().update( - "id", - UpdateResourceServerRequestContent +client.rules().create( + CreateRuleRequestContent .builder() + .name("name") + .script("script") .build() ); ``` @@ -10366,7 +11440,7 @@ client.resourceServers().update(
-**id:** `String` — ID or audience of the resource server to update. +**name:** `String` — Name of this rule.
@@ -10374,7 +11448,7 @@ client.resourceServers().update(
-**name:** `Optional` — Friendly name for this resource server. Can not contain `<` or `>` characters. +**script:** `String` — Code to be executed when this rule runs.
@@ -10382,7 +11456,7 @@ client.resourceServers().update(
-**scopes:** `Optional>` — List of permissions (scopes) that this API uses. +**order:** `Optional` — Order that this rule should execute in relative to other rules. Lower-valued rules execute first.
@@ -10390,63 +11464,68 @@ client.resourceServers().update(
-**signingAlg:** `Optional` +**enabled:** `Optional` — Whether the rule is enabled (true), or disabled (false).
+
+
-
-
-**signingSecret:** `Optional` — Secret used to sign tokens when using symmetric algorithms (HS256). -
+
+
client.rules.get(id) -> GetRuleResponseContent
-**skipConsentForVerifiableFirstPartyClients:** `Optional` — Whether to skip user consent for applications flagged as first party (true) or not (false). - -
-
+#### 📝 Description
-**allowOfflineAccess:** `Optional` — Whether refresh tokens can be issued for this API (true) or not (false). - -
-
-
-**allowOnlineAccess:** `Optional` — Whether Online Refresh Tokens can be issued for this API (true) or not (false). - +Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields to include or exclude in the result. +
+
+#### 🔌 Usage +
-**allowOnlineAccessWithEphemeralSessions:** `Optional` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - -
-
-
-**tokenLifetime:** `Optional` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - +```java +client.rules().get( + "id", + GetRuleRequestParameters + .builder() + .fields("fields") + .includeFields(true) + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**tokenDialect:** `Optional` +
+
+ +**id:** `String` — ID of the rule to retrieve.
@@ -10454,7 +11533,7 @@ client.resourceServers().update(
-**enforcePolicies:** `Optional` — Whether authorization policies are enforced (true) or not enforced (false). +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
@@ -10462,47 +11541,61 @@ client.resourceServers().update(
-**tokenEncryption:** `Optional` +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
+
+
-
-
-**consentPolicy:** `Optional` -
+
+
client.rules.delete(id)
-**authorizationDetails:** `Optional>` - -
-
+#### 📝 Description
-**proofOfPossession:** `Optional` - +
+
+ +Delete a rule. +
+
+#### 🔌 Usage +
-**subjectTypeAuthorization:** `Optional` - +
+
+ +```java +client.rules().delete("id"); +``` +
+
+#### ⚙️ Parameters +
-**authorizationPolicy:** `Optional` +
+
+ +**id:** `String` — ID of the rule to delete.
@@ -10514,8 +11607,7 @@ client.resourceServers().update(
-## Roles -
client.roles.list() -> SyncPagingIterable&lt;Role&gt; +
client.rules.update(id, request) -> UpdateRuleResponseContent
@@ -10527,9 +11619,7 @@ client.resourceServers().update(
-Retrieve detailed list of user roles created in your tenant. - -**Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access. +Update an existing rule.
@@ -10544,13 +11634,10 @@ Retrieve detailed list of user roles created in your tenant.
```java -client.roles().list( - ListRolesRequestParameters +client.rules().update( + "id", + UpdateRuleRequestContent .builder() - .perPage(1) - .page(1) - .includeTotals(true) - .nameFilter("name_filter") .build() ); ``` @@ -10567,7 +11654,7 @@ client.roles().list(
-**perPage:** `Optional` — Number of results per page. Defaults to 50. +**id:** `String` — ID of the rule to retrieve.
@@ -10575,7 +11662,7 @@ client.roles().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**script:** `Optional` — Code to be executed when this rule runs.
@@ -10583,7 +11670,7 @@ client.roles().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**name:** `Optional` — Name of this rule.
@@ -10591,7 +11678,15 @@ client.roles().list(
-**nameFilter:** `Optional` — Optional filter on name (case-insensitive). +**order:** `Optional` — Order that this rule should execute in relative to other rules. Lower-valued rules execute first. + +
+
+ +
+
+ +**enabled:** `Optional` — Whether the rule is enabled (true), or disabled (false).
@@ -10603,7 +11698,8 @@ client.roles().list(
-
client.roles.create(request) -> CreateRoleResponseContent +## RulesConfigs +
client.rulesConfigs.list() -> List&lt;RulesConfig&gt;
@@ -10615,9 +11711,9 @@ client.roles().list(
-Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). +Retrieve rules config variable keys. -**Note**: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions. + Note: For security, config variable values cannot be retrieved outside rule execution.
@@ -10632,47 +11728,19 @@ Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage
```java -client.roles().create( - CreateRoleRequestContent - .builder() - .name("name") - .build() -); +client.rulesConfigs().list(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**name:** `String` — Name of the role. - -
-
- -
-
- -**description:** `Optional` — Description of the role. - -
-
-
-
-
-
client.roles.get(id) -> GetRoleResponseContent +
client.rulesConfigs.set(key, request) -> SetRulesConfigResponseContent
@@ -10684,7 +11752,7 @@ client.roles().create(
-Retrieve details about a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. +Sets a rules config variable.
@@ -10699,7 +11767,13 @@ Retrieve details about a specific [user role](https://auth0.com/docs/manage-user
```java -client.roles().get("id"); +client.rulesConfigs().set( + "key", + SetRulesConfigRequestContent + .builder() + .value("value") + .build() +); ```
@@ -10714,7 +11788,15 @@ client.roles().get("id");
-**id:** `String` — ID of the role to retrieve. +**key:** `String` — Key of the rules config variable to set (max length: 127 characters). + +
+
+ +
+
+ +**value:** `String` — Value for a rules config variable.
@@ -10726,7 +11808,7 @@ client.roles().get("id");
-
client.roles.delete(id) +
client.rulesConfigs.delete(key)
@@ -10738,7 +11820,7 @@ client.roles().get("id");
-Delete a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. +Delete a rules config variable identified by its key.
@@ -10753,7 +11835,7 @@ Delete a specific [user role](https://auth0.com/docs/manage-users/access-control
```java -client.roles().delete("id"); +client.rulesConfigs().delete("key"); ```
@@ -10768,7 +11850,7 @@ client.roles().delete("id");
-**id:** `String` — ID of the role to delete. +**key:** `String` — Key of the rules config variable to delete.
@@ -10780,7 +11862,8 @@ client.roles().delete("id");
-
client.roles.update(id, request) -> UpdateRoleResponseContent +## SelfServiceProfiles +
client.selfServiceProfiles.list() -> SyncPagingIterable&lt;SelfServiceProfile&gt;
@@ -10792,7 +11875,7 @@ client.roles().delete("id");
-Modify the details of a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. +Retrieves self-service profiles.
@@ -10807,10 +11890,12 @@ Modify the details of a specific [user role](https://auth0.com/docs/manage-users
```java -client.roles().update( - "id", - UpdateRoleRequestContent +client.selfServiceProfiles().list( + ListSelfServiceProfilesRequestParameters .builder() + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -10827,7 +11912,7 @@ client.roles().update(
-**id:** `String` — ID of the role to update. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -10835,7 +11920,7 @@ client.roles().update(
-**name:** `Optional` — Name of this role. +**perPage:** `Optional` — Number of results per page. Defaults to 50.
@@ -10843,7 +11928,7 @@ client.roles().update(
-**description:** `Optional` — Description of this role. +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -10855,8 +11940,7 @@ client.roles().update(
-## Rules -
client.rules.list() -> SyncPagingIterable&lt;Rule&gt; +
client.selfServiceProfiles.create(request) -> CreateSelfServiceProfileResponseContent
@@ -10868,7 +11952,7 @@ client.roles().update(
-Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a list of fields to include or exclude. +Creates a self-service profile.
@@ -10883,15 +11967,10 @@ Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a lis
```java -client.rules().list( - ListRulesRequestParameters +client.selfServiceProfiles().create( + CreateSelfServiceProfileRequestContent .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .enabled(true) - .fields("fields") - .includeFields(true) + .name("name") .build() ); ``` @@ -10908,7 +11987,7 @@ client.rules().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**name:** `String` — The name of the self-service Profile.
@@ -10916,7 +11995,7 @@ client.rules().list(
-**perPage:** `Optional` — Number of results per page. +**description:** `Optional` — The description of the self-service Profile.
@@ -10924,7 +12003,7 @@ client.rules().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**branding:** `Optional`
@@ -10932,7 +12011,7 @@ client.rules().list(
-**enabled:** `Optional` — Optional filter on whether a rule is enabled (true) or disabled (false). +**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]
@@ -10940,7 +12019,7 @@ client.rules().list(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**userAttributes:** `Optional>` — List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow.
@@ -10948,7 +12027,7 @@ client.rules().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**userAttributeProfileId:** `Optional` — ID of the user-attribute-profile to associate with this self-service profile.
@@ -10960,7 +12039,7 @@ client.rules().list(
-
client.rules.create(request) -> CreateRuleResponseContent +
client.selfServiceProfiles.get(id) -> GetSelfServiceProfileResponseContent
@@ -10972,9 +12051,7 @@ client.rules().list(
-Create a [new rule](https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api). - -Note: Changing a rule's stage of execution from the default `login_success` can change the rule's function signature to have user omitted. +Retrieves a self-service profile by Id.
@@ -10989,13 +12066,7 @@ Note: Changing a rule's stage of execution from the default `login_success` can
```java -client.rules().create( - CreateRuleRequestContent - .builder() - .name("name") - .script("script") - .build() -); +client.selfServiceProfiles().get("id"); ```
@@ -11010,31 +12081,61 @@ client.rules().create(
-**name:** `String` — Name of this rule. +**id:** `String` — The id of the self-service profile to retrieve
+ + + + + + +
+
client.selfServiceProfiles.delete(id)
-**script:** `String` — Code to be executed when this rule runs. - +#### 📝 Description + +
+
+ +
+
+ +Deletes a self-service profile by Id. +
+
+#### 🔌 Usage +
-**order:** `Optional` — Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - +
+
+ +```java +client.selfServiceProfiles().delete("id"); +``` +
+
+#### ⚙️ Parameters +
-**enabled:** `Optional` — Whether the rule is enabled (true), or disabled (false). +
+
+ +**id:** `String` — The id of the self-service profile to delete
@@ -11046,7 +12147,7 @@ client.rules().create(
-
client.rules.get(id) -> GetRuleResponseContent +
client.selfServiceProfiles.update(id, request) -> UpdateSelfServiceProfileResponseContent
@@ -11058,7 +12159,7 @@ client.rules().create(
-Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields to include or exclude in the result. +Updates a self-service profile.
@@ -11073,12 +12174,10 @@ Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields
```java -client.rules().get( +client.selfServiceProfiles().update( "id", - GetRuleRequestParameters + UpdateSelfServiceProfileRequestContent .builder() - .fields("fields") - .includeFields(true) .build() ); ``` @@ -11095,7 +12194,7 @@ client.rules().get(
-**id:** `String` — ID of the rule to retrieve. +**id:** `String` — The id of the self-service profile to update
@@ -11103,7 +12202,7 @@ client.rules().get(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**name:** `Optional` — The name of the self-service Profile.
@@ -11111,7 +12210,39 @@ client.rules().get(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**description:** `Optional` + +
+
+ +
+
+ +**branding:** `Optional` + +
+
+ +
+
+ +**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] + +
+
+ +
+
+ +**userAttributes:** `Optional>` + +
+
+ +
+
+ +**userAttributeProfileId:** `Optional` — ID of the user-attribute-profile to associate with this self-service profile.
@@ -11123,7 +12254,8 @@ client.rules().get(
-
client.rules.delete(id) +## Sessions +
client.sessions.get(id) -> GetSessionResponseContent
@@ -11135,7 +12267,7 @@ client.rules().get(
-Delete a rule. +Retrieve session information.
@@ -11150,7 +12282,7 @@ Delete a rule.
```java -client.rules().delete("id"); +client.sessions().get("id"); ```
@@ -11165,7 +12297,7 @@ client.rules().delete("id");
-**id:** `String` — ID of the rule to delete. +**id:** `String` — ID of session to retrieve
@@ -11177,7 +12309,7 @@ client.rules().delete("id");
-
client.rules.update(id, request) -> UpdateRuleResponseContent +
client.sessions.delete(id)
@@ -11189,7 +12321,7 @@ client.rules().delete("id");
-Update an existing rule. +Delete a session by ID.
@@ -11204,12 +12336,7 @@ Update an existing rule.
```java -client.rules().update( - "id", - UpdateRuleRequestContent - .builder() - .build() -); +client.sessions().delete("id"); ```
@@ -11224,56 +12351,37 @@ client.rules().update(
-**id:** `String` — ID of the rule to retrieve. +**id:** `String` — ID of the session to delete.
+ + -
-
-**script:** `Optional` — Code to be executed when this rule runs. -
+
+
client.sessions.update(id, request) -> UpdateSessionResponseContent
-**name:** `Optional` — Name of this rule. - -
-
+#### 📝 Description
-**order:** `Optional` — Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - -
-
-
-**enabled:** `Optional` — Whether the rule is enabled (true), or disabled (false). - -
-
+Update session information. - - -
- -## RulesConfigs -
client.rulesConfigs.list() -> List&lt;RulesConfig&gt; -
-
-#### 📝 Description +#### 🔌 Usage
@@ -11281,15 +12389,20 @@ client.rules().update(
-Retrieve rules config variable keys. - - Note: For security, config variable values cannot be retrieved outside rule execution. +```java +client.sessions().update( + "id", + UpdateSessionRequestContent + .builder() + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -11297,9 +12410,16 @@ Retrieve rules config variable keys.
-```java -client.rulesConfigs().list(); -``` +**id:** `String` — ID of the session to update. + +
+
+ +
+
+ +**sessionMetadata:** `Optional>` — Metadata associated with the session. Pass null or {} to remove all session_metadata. +
@@ -11310,7 +12430,7 @@ client.rulesConfigs().list();
-
client.rulesConfigs.set(key, request) -> SetRulesConfigResponseContent +
client.sessions.revoke(id)
@@ -11322,7 +12442,7 @@ client.rulesConfigs().list();
-Sets a rules config variable. +Revokes a session by ID and all associated refresh tokens.
@@ -11337,13 +12457,7 @@ Sets a rules config variable.
```java -client.rulesConfigs().set( - "key", - SetRulesConfigRequestContent - .builder() - .value("value") - .build() -); +client.sessions().revoke("id"); ```
@@ -11358,15 +12472,7 @@ client.rulesConfigs().set(
-**key:** `String` — Key of the rules config variable to set (max length: 127 characters). - -
-
- -
-
- -**value:** `String` — Value for a rules config variable. +**id:** `String` — ID of the session to revoke.
@@ -11378,7 +12484,8 @@ client.rulesConfigs().set(
-
client.rulesConfigs.delete(key) +## Stats +
client.stats.getActiveUsersCount() -> Double
@@ -11390,7 +12497,7 @@ client.rulesConfigs().set(
-Delete a rules config variable identified by its key. +Retrieve the number of active users that logged in during the last 30 days.
@@ -11405,35 +12512,19 @@ Delete a rules config variable identified by its key.
```java -client.rulesConfigs().delete("key"); +client.stats().getActiveUsersCount(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**key:** `String` — Key of the rules config variable to delete. - -
-
-
-
-
-## SelfServiceProfiles -
client.selfServiceProfiles.list() -> SyncPagingIterable&lt;SelfServiceProfile&gt; +
client.stats.getDaily() -> List&lt;DailyStats&gt;
@@ -11445,7 +12536,7 @@ client.rulesConfigs().delete("key");
-Retrieves self-service profiles. +Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range.
@@ -11460,12 +12551,11 @@ Retrieves self-service profiles.
```java -client.selfServiceProfiles().list( - ListSelfServiceProfilesRequestParameters +client.stats().getDaily( + GetDailyStatsRequestParameters .builder() - .page(1) - .perPage(1) - .includeTotals(true) + .from("from") + .to("to") .build() ); ``` @@ -11482,15 +12572,7 @@ client.selfServiceProfiles().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**perPage:** `Optional` — Number of results per page. Defaults to 50. +**from:** `Optional` — Optional first day of the date range (inclusive) in YYYYMMDD format.
@@ -11498,7 +12580,7 @@ client.selfServiceProfiles().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**to:** `Optional` — Optional last day of the date range (inclusive) in YYYYMMDD format.
@@ -11510,7 +12592,8 @@ client.selfServiceProfiles().list(
-
client.selfServiceProfiles.create(request) -> CreateSelfServiceProfileResponseContent +## SupplementalSignals +
client.supplementalSignals.get() -> GetSupplementalSignalsResponseContent
@@ -11522,7 +12605,7 @@ client.selfServiceProfiles().list(
-Creates a self-service profile. +Get the supplemental signals configuration for a tenant.
@@ -11537,67 +12620,66 @@ Creates a self-service profile.
```java -client.selfServiceProfiles().create( - CreateSelfServiceProfileRequestContent - .builder() - .name("name") - .build() -); +client.supplementalSignals().get(); ```
-#### ⚙️ Parameters + + +
+ +
client.supplementalSignals.patch(request) -> PatchSupplementalSignalsResponseContent
+#### 📝 Description +
-**name:** `String` — The name of the self-service Profile. - -
-
-
-**description:** `Optional` — The description of the self-service Profile. - +Update the supplemental signals configuration for a tenant. +
+
+#### 🔌 Usage +
-**branding:** `Optional` - -
-
-
-**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - +```java +client.supplementalSignals().patch( + UpdateSupplementalSignalsRequestContent + .builder() + .akamaiEnabled(true) + .build() +); +```
+ + + +#### ⚙️ Parameters
-**userAttributes:** `Optional>` — List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - -
-
-
-**userAttributeProfileId:** `Optional` — ID of the user-attribute-profile to associate with this self-service profile. +**akamaiEnabled:** `Boolean` — Indicates if incoming Akamai Headers should be processed
@@ -11609,7 +12691,8 @@ client.selfServiceProfiles().create(
-
client.selfServiceProfiles.get(id) -> GetSelfServiceProfileResponseContent +## Tickets +
client.tickets.verifyEmail(request) -> VerifyEmailTicketResponseContent
@@ -11621,7 +12704,7 @@ client.selfServiceProfiles().create(
-Retrieves a self-service profile by Id. +Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address.
@@ -11636,7 +12719,12 @@ Retrieves a self-service profile by Id.
```java -client.selfServiceProfiles().get("id"); +client.tickets().verifyEmail( + VerifyEmailTicketRequestContent + .builder() + .userId("user_id") + .build() +); ```
@@ -11651,61 +12739,55 @@ client.selfServiceProfiles().get("id");
-**id:** `String` — The id of the self-service profile to retrieve +**resultUrl:** `Optional` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id.
- - +
+
+**userId:** `String` — user_id of for whom the ticket should be created. +
-
-
client.selfServiceProfiles.delete(id)
-#### 📝 Description - -
-
+**clientId:** `Optional` — ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. + +
+
-Deletes a self-service profile by Id. -
-
+**organizationId:** `Optional` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. +
-#### 🔌 Usage -
-
-
- -```java -client.selfServiceProfiles().delete("id"); -``` -
-
+**ttlSec:** `Optional` — Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). +
-#### ⚙️ Parameters -
+**includeEmailInRedirect:** `Optional` — Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). + +
+
+
-**id:** `String` — The id of the self-service profile to delete +**identity:** `Optional`
@@ -11717,7 +12799,7 @@ client.selfServiceProfiles().delete("id");
-
client.selfServiceProfiles.update(id, request) -> UpdateSelfServiceProfileResponseContent +
client.tickets.changePassword(request) -> ChangePasswordTicketResponseContent
@@ -11729,7 +12811,9 @@ client.selfServiceProfiles().delete("id");
-Updates a self-service profile. +Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. + +Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.
@@ -11744,9 +12828,8 @@ Updates a self-service profile.
```java -client.selfServiceProfiles().update( - "id", - UpdateSelfServiceProfileRequestContent +client.tickets().changePassword( + ChangePasswordTicketRequestContent .builder() .build() ); @@ -11764,7 +12847,7 @@ client.selfServiceProfiles().update(
-**id:** `String` — The id of the self-service profile to update +**resultUrl:** `Optional` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound.
@@ -11772,7 +12855,7 @@ client.selfServiceProfiles().update(
-**name:** `Optional` — The name of the self-service Profile. +**userId:** `Optional` — user_id of for whom the ticket should be created.
@@ -11780,7 +12863,7 @@ client.selfServiceProfiles().update(
-**description:** `Optional` +**clientId:** `Optional` — ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.
@@ -11788,7 +12871,7 @@ client.selfServiceProfiles().update(
-**branding:** `Optional` +**organizationId:** `Optional` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters.
@@ -11796,7 +12879,7 @@ client.selfServiceProfiles().update(
-**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] +**connectionId:** `Optional` — ID of the connection. If provided, allows the user to be specified using email instead of user_id. If you set this value, you must also send the email parameter. You cannot send user_id when specifying a connection_id.
@@ -11804,7 +12887,7 @@ client.selfServiceProfiles().update(
-**userAttributes:** `Optional>` +**email:** `Optional` — Email address of the user for whom the tickets should be created. Requires the connection_id parameter. Cannot be specified when using user_id.
@@ -11812,62 +12895,31 @@ client.selfServiceProfiles().update(
-**userAttributeProfileId:** `Optional` — ID of the user-attribute-profile to associate with this self-service profile. +**ttlSec:** `Optional` — Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days).
-
-
- - - - -
- -## Sessions -
client.sessions.get(id) -> GetSessionResponseContent -
-
- -#### 📝 Description - -
-
-Retrieve session information. -
-
+**markEmailAsVerified:** `Optional` — Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). +
-#### 🔌 Usage -
-
-
- -```java -client.sessions().get("id"); -``` -
-
+**includeEmailInRedirect:** `Optional` — Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). +
-#### ⚙️ Parameters -
-
-
- -**id:** `String` — ID of session to retrieve +**identity:** `Optional`
@@ -11879,7 +12931,8 @@ client.sessions().get("id");
-
client.sessions.delete(id) +## TokenExchangeProfiles +
client.tokenExchangeProfiles.list() -> SyncPagingIterable&lt;TokenExchangeProfileResponseContent&gt;
@@ -11891,7 +12944,16 @@ client.sessions().get("id");
-Delete a session by ID. +Retrieve a list of all Token Exchange Profiles available in your tenant. + +By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. + +This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters: + +- `from`: Optional id from which to start selection. +- `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. + +**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining.
@@ -11906,7 +12968,13 @@ Delete a session by ID.
```java -client.sessions().delete("id"); +client.tokenExchangeProfiles().list( + TokenExchangeProfilesListRequest + .builder() + .from("from") + .take(1) + .build() +); ```
@@ -11921,7 +12989,15 @@ client.sessions().delete("id");
-**id:** `String` — ID of the session to delete. +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -11933,7 +13009,7 @@ client.sessions().delete("id");
-
client.sessions.update(id, request) -> UpdateSessionResponseContent +
client.tokenExchangeProfiles.create(request) -> CreateTokenExchangeProfileResponseContent
@@ -11945,7 +13021,9 @@ client.sessions().delete("id");
-Update session information. +Create a new Token Exchange Profile within your tenant. + +By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details.
@@ -11960,10 +13038,13 @@ Update session information.
```java -client.sessions().update( - "id", - UpdateSessionRequestContent +client.tokenExchangeProfiles().create( + CreateTokenExchangeProfileRequestContent .builder() + .name("name") + .subjectTokenType("subject_token_type") + .actionId("action_id") + .type(TokenExchangeProfileTypeEnum.CUSTOM_AUTHENTICATION) .build() ); ``` @@ -11980,7 +13061,7 @@ client.sessions().update(
-**id:** `String` — ID of the session to update. +**name:** `String` — Friendly name of this profile.
@@ -11988,7 +13069,23 @@ client.sessions().update(
-**sessionMetadata:** `Optional>` — Metadata associated with the session. Pass null or {} to remove all session_metadata. +**subjectTokenType:** `String` — Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. + +
+
+ +
+
+ +**actionId:** `String` — The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. + +
+
+ +
+
+ +**type:** `TokenExchangeProfileTypeEnum`
@@ -12000,7 +13097,7 @@ client.sessions().update(
-
client.sessions.revoke(id) +
client.tokenExchangeProfiles.get(id) -> GetTokenExchangeProfileResponseContent
@@ -12012,7 +13109,9 @@ client.sessions().update(
-Revokes a session by ID and all associated refresh tokens. +Retrieve details about a single Token Exchange Profile specified by ID. + +By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details.
@@ -12027,7 +13126,7 @@ Revokes a session by ID and all associated refresh tokens.
```java -client.sessions().revoke("id"); +client.tokenExchangeProfiles().get("id"); ```
@@ -12042,7 +13141,7 @@ client.sessions().revoke("id");
-**id:** `String` — ID of the session to revoke. +**id:** `String` — ID of the Token Exchange Profile to retrieve.
@@ -12054,8 +13153,7 @@ client.sessions().revoke("id");
-## Stats -
client.stats.getActiveUsersCount() -> Double +
client.tokenExchangeProfiles.delete(id)
@@ -12067,7 +13165,9 @@ client.sessions().revoke("id");
-Retrieve the number of active users that logged in during the last 30 days. +Delete a Token Exchange Profile within your tenant. + +By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details.
@@ -12082,19 +13182,34 @@ Retrieve the number of active users that logged in during the last 30 days.
```java -client.stats().getActiveUsersCount(); +client.tokenExchangeProfiles().delete("id"); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the Token Exchange Profile to delete. + +
+
+
+
+
-
client.stats.getDaily() -> List&lt;DailyStats&gt; +
client.tokenExchangeProfiles.update(id, request)
@@ -12106,7 +13221,9 @@ client.stats().getActiveUsersCount();
-Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. +Update a Token Exchange Profile within your tenant. + +By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details.
@@ -12121,11 +13238,10 @@ Retrieve the number of logins, signups and breached-password detections (subscri
```java -client.stats().getDaily( - GetDailyStatsRequestParameters +client.tokenExchangeProfiles().update( + "id", + UpdateTokenExchangeProfileRequestContent .builder() - .from("from") - .to("to") .build() ); ``` @@ -12142,7 +13258,7 @@ client.stats().getDaily(
-**from:** `Optional` — Optional first day of the date range (inclusive) in YYYYMMDD format. +**id:** `String` — ID of the Token Exchange Profile to update.
@@ -12150,48 +13266,16 @@ client.stats().getDaily(
-**to:** `Optional` — Optional last day of the date range (inclusive) in YYYYMMDD format. +**name:** `Optional` — Friendly name of this profile.
-
-
- - - - -
- -## SupplementalSignals -
client.supplementalSignals.get() -> GetSupplementalSignalsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get the supplemental signals configuration for a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
-```java -client.supplementalSignals().get(); -``` +**subjectTokenType:** `Optional` — Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. +
@@ -12202,7 +13286,8 @@ client.supplementalSignals().get();
-
client.supplementalSignals.patch(request) -> PatchSupplementalSignalsResponseContent +## UserAttributeProfiles +
client.userAttributeProfiles.list() -> SyncPagingIterable&lt;UserAttributeProfile&gt;
@@ -12214,7 +13299,7 @@ client.supplementalSignals().get();
-Update the supplemental signals configuration for a tenant. +Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination.
@@ -12229,10 +13314,11 @@ Update the supplemental signals configuration for a tenant.
```java -client.supplementalSignals().patch( - UpdateSupplementalSignalsRequestContent +client.userAttributeProfiles().list( + ListUserAttributeProfileRequestParameters .builder() - .akamaiEnabled(true) + .from("from") + .take(1) .build() ); ``` @@ -12249,7 +13335,15 @@ client.supplementalSignals().patch(
-**akamaiEnabled:** `Boolean` — Indicates if incoming Akamai Headers should be processed +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 5.
@@ -12261,8 +13355,7 @@ client.supplementalSignals().patch(
-## Tickets -
client.tickets.verifyEmail(request) -> VerifyEmailTicketResponseContent +
client.userAttributeProfiles.create(request) -> CreateUserAttributeProfileResponseContent
@@ -12274,7 +13367,7 @@ client.supplementalSignals().patch(
-Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address. +Create a User Attribute Profile.
@@ -12289,10 +13382,21 @@ Create an email verification ticket for a given user. An email verification tick
```java -client.tickets().verifyEmail( - VerifyEmailTicketRequestContent +client.userAttributeProfiles().create( + CreateUserAttributeProfileRequestContent .builder() - .userId("user_id") + .name("name") + .userAttributes( + new HashMap() {{ + put("key", UserAttributeProfileUserAttributeAdditionalProperties + .builder() + .description("description") + .label("label") + .profileRequired(true) + .auth0Mapping("auth0_mapping") + .build()); + }} + ) .build() ); ``` @@ -12309,7 +13413,7 @@ client.tickets().verifyEmail(
-**resultUrl:** `Optional` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id. +**name:** `String`
@@ -12317,7 +13421,7 @@ client.tickets().verifyEmail(
-**userId:** `String` — user_id of for whom the ticket should be created. +**userId:** `Optional`
@@ -12325,40 +13429,47 @@ client.tickets().verifyEmail(
-**clientId:** `Optional` — ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. +**userAttributes:** `Map`
+
+
-
-
-**organizationId:** `Optional` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. -
+
+
client.userAttributeProfiles.listTemplates() -> ListUserAttributeProfileTemplateResponseContent
-**ttlSec:** `Optional` — Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - -
-
+#### 📝 Description
-**includeEmailInRedirect:** `Optional` — Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - +
+
+ +Retrieve a list of User Attribute Profile Templates.
+
+
+ +#### 🔌 Usage
-**identity:** `Optional` - +
+
+ +```java +client.userAttributeProfiles().listTemplates(); +```
@@ -12369,7 +13480,7 @@ client.tickets().verifyEmail(
-
client.tickets.changePassword(request) -> ChangePasswordTicketResponseContent +
client.userAttributeProfiles.getTemplate(id) -> GetUserAttributeProfileTemplateResponseContent
@@ -12381,9 +13492,7 @@ client.tickets().verifyEmail(
-Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. - -Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity. +Retrieve a User Attribute Profile Template.
@@ -12398,11 +13507,7 @@ Note: This endpoint does not verify the given user’s identity. If you call thi
```java -client.tickets().changePassword( - ChangePasswordTicketRequestContent - .builder() - .build() -); +client.userAttributeProfiles().getTemplate("id"); ```
@@ -12417,79 +13522,61 @@ client.tickets().changePassword(
-**resultUrl:** `Optional` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound. +**id:** `String` — ID of the user-attribute-profile-template to retrieve.
- -
-
- -**userId:** `Optional` — user_id of for whom the ticket should be created. -
-
-
-**clientId:** `Optional` — ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. -
+
+
client.userAttributeProfiles.get(id) -> GetUserAttributeProfileResponseContent
-**organizationId:** `Optional` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - -
-
+#### 📝 Description
-**connectionId:** `Optional` — ID of the connection. If provided, allows the user to be specified using email instead of user_id. If you set this value, you must also send the email parameter. You cannot send user_id when specifying a connection_id. - -
-
-
-**email:** `Optional` — Email address of the user for whom the tickets should be created. Requires the connection_id parameter. Cannot be specified when using user_id. - +Retrieve details about a single User Attribute Profile specified by ID. +
+
+#### 🔌 Usage +
-**ttlSec:** `Optional` — Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - -
-
-
-**markEmailAsVerified:** `Optional` — Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). - +```java +client.userAttributeProfiles().get("id"); +``` +
+
+#### ⚙️ Parameters +
-**includeEmailInRedirect:** `Optional` — Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - -
-
-
-**identity:** `Optional` +**id:** `String` — ID of the user-attribute-profile to retrieve.
@@ -12501,8 +13588,7 @@ client.tickets().changePassword(
-## TokenExchangeProfiles -
client.tokenExchangeProfiles.list() -> SyncPagingIterable&lt;TokenExchangeProfileResponseContent&gt; +
client.userAttributeProfiles.delete(id)
@@ -12514,16 +13600,7 @@ client.tickets().changePassword(
-Retrieve a list of all Token Exchange Profiles available in your tenant. - -By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - -This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters: - -- `from`: Optional id from which to start selection. -- `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - -**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. +Delete a single User Attribute Profile specified by ID.
@@ -12538,13 +13615,7 @@ This endpoint supports Checkpoint pagination. To search by checkpoint, use the f
```java -client.tokenExchangeProfiles().list( - TokenExchangeProfilesListRequest - .builder() - .from("from") - .take(1) - .build() -); +client.userAttributeProfiles().delete("id"); ```
@@ -12559,15 +13630,7 @@ client.tokenExchangeProfiles().list(
-**from:** `Optional` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `Optional` — Number of results per page. Defaults to 50. +**id:** `String` — ID of the user-attribute-profile to delete.
@@ -12579,7 +13642,7 @@ client.tokenExchangeProfiles().list(
-
client.tokenExchangeProfiles.create(request) -> CreateTokenExchangeProfileResponseContent +
client.userAttributeProfiles.update(id, request) -> UpdateUserAttributeProfileResponseContent
@@ -12591,9 +13654,7 @@ client.tokenExchangeProfiles().list(
-Create a new Token Exchange Profile within your tenant. - -By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. +Update the details of a specific User attribute profile, such as name, user_id and user_attributes.
@@ -12608,13 +13669,10 @@ By using this feature, you agree to the applicable Free Trial terms in [Okta’s
```java -client.tokenExchangeProfiles().create( - CreateTokenExchangeProfileRequestContent +client.userAttributeProfiles().update( + "id", + UpdateUserAttributeProfileRequestContent .builder() - .name("name") - .subjectTokenType("subject_token_type") - .actionId("action_id") - .type(TokenExchangeProfileTypeEnum.CUSTOM_AUTHENTICATION) .build() ); ``` @@ -12631,7 +13689,7 @@ client.tokenExchangeProfiles().create(
-**name:** `String` — Friendly name of this profile. +**id:** `String` — ID of the user attribute profile to update.
@@ -12639,7 +13697,7 @@ client.tokenExchangeProfiles().create(
-**subjectTokenType:** `String` — Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. +**name:** `Optional`
@@ -12647,7 +13705,7 @@ client.tokenExchangeProfiles().create(
-**actionId:** `String` — The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. +**userId:** `Optional`
@@ -12655,7 +13713,7 @@ client.tokenExchangeProfiles().create(
-**type:** `TokenExchangeProfileTypeEnum` +**userAttributes:** `Optional>`
@@ -12667,7 +13725,8 @@ client.tokenExchangeProfiles().create(
-
client.tokenExchangeProfiles.get(id) -> GetTokenExchangeProfileResponseContent +## UserBlocks +
client.userBlocks.listByIdentifier() -> ListUserBlocksByIdentifierResponseContent
@@ -12679,9 +13738,7 @@ client.tokenExchangeProfiles().create(
-Retrieve details about a single Token Exchange Profile specified by ID. - -By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. +Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email).
@@ -12696,7 +13753,13 @@ By using this feature, you agree to the applicable Free Trial terms in [Okta’s
```java -client.tokenExchangeProfiles().get("id"); +client.userBlocks().listByIdentifier( + ListUserBlocksByIdentifierRequestParameters + .builder() + .identifier("identifier") + .considerBruteForceEnablement(true) + .build() +); ```
@@ -12711,7 +13774,20 @@ client.tokenExchangeProfiles().get("id");
-**id:** `String` — ID of the Token Exchange Profile to retrieve. +**identifier:** `String` — Should be any of a username, phone number, or email. + +
+
+ +
+
+ +**considerBruteForceEnablement:** `Optional` + + + If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. + If true and Brute Force Protection is disabled, will return an empty list. +
@@ -12723,7 +13799,7 @@ client.tokenExchangeProfiles().get("id");
-
client.tokenExchangeProfiles.delete(id) +
client.userBlocks.deleteByIdentifier()
@@ -12735,9 +13811,9 @@ client.tokenExchangeProfiles().get("id");
-Delete a Token Exchange Profile within your tenant. +Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given identifier (username, phone number, or email). -By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. +Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user).
@@ -12752,7 +13828,12 @@ By using this feature, you agree to the applicable Free Trial terms in [Okta's M
```java -client.tokenExchangeProfiles().delete("id"); +client.userBlocks().deleteByIdentifier( + DeleteUserBlocksByIdentifierRequestParameters + .builder() + .identifier("identifier") + .build() +); ```
@@ -12767,7 +13848,7 @@ client.tokenExchangeProfiles().delete("id");
-**id:** `String` — ID of the Token Exchange Profile to delete. +**identifier:** `String` — Should be any of a username, phone number, or email.
@@ -12779,7 +13860,7 @@ client.tokenExchangeProfiles().delete("id");
-
client.tokenExchangeProfiles.update(id, request) +
client.userBlocks.list(id) -> ListUserBlocksResponseContent
@@ -12791,9 +13872,7 @@ client.tokenExchangeProfiles().delete("id");
-Update a Token Exchange Profile within your tenant. - -By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. +Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID.
@@ -12808,10 +13887,11 @@ By using this feature, you agree to the applicable Free Trial terms in [Okta's M
```java -client.tokenExchangeProfiles().update( +client.userBlocks().list( "id", - UpdateTokenExchangeProfileRequestContent + ListUserBlocksRequestParameters .builder() + .considerBruteForceEnablement(true) .build() ); ``` @@ -12828,7 +13908,7 @@ client.tokenExchangeProfiles().update(
-**id:** `String` — ID of the Token Exchange Profile to update. +**id:** `String` — user_id of the user blocks to retrieve.
@@ -12836,15 +13916,12 @@ client.tokenExchangeProfiles().update(
-**name:** `Optional` — Friendly name of this profile. - -
-
+**considerBruteForceEnablement:** `Optional` -
-
-**subjectTokenType:** `Optional` — Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. + If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. + If true and Brute Force Protection is disabled, will return an empty list. +
@@ -12856,8 +13933,7 @@ client.tokenExchangeProfiles().update(
-## UserAttributeProfiles -
client.userAttributeProfiles.list() -> SyncPagingIterable&lt;UserAttributeProfile&gt; +
client.userBlocks.delete(id)
@@ -12869,7 +13945,9 @@ client.tokenExchangeProfiles().update(
-Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. +Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. + +Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user).
@@ -12884,13 +13962,7 @@ Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pa
```java -client.userAttributeProfiles().list( - ListUserAttributeProfileRequestParameters - .builder() - .from("from") - .take(1) - .build() -); +client.userBlocks().delete("id"); ```
@@ -12905,15 +13977,7 @@ client.userAttributeProfiles().list(
-**from:** `Optional` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `Optional` — Number of results per page. Defaults to 5. +**id:** `String` — The user_id of the user to update.
@@ -12925,7 +13989,8 @@ client.userAttributeProfiles().list(
-
client.userAttributeProfiles.create(request) -> CreateUserAttributeProfileResponseContent +## Users +
client.users.list() -> SyncPagingIterable&lt;UserResponseSchema&gt;
@@ -12937,7 +14002,24 @@ client.userAttributeProfiles().list(
-Create a User Attribute Profile. +Retrieve details of users. It is possible to: + +- Specify a search criteria for users +- Sort the users to be returned +- Select the fields to be returned +- Specify the number of users to retrieve per page and the page index + + + +The `q` query parameter can be used to get users that match the specified criteria [using query string syntax.](https://auth0.com/docs/users/search/v3/query-syntax) + +[Learn more about searching for users.](https://auth0.com/docs/users/search/v3) + +Read about [best practices](https://auth0.com/docs/users/search/best-practices) when working with the API endpoints for retrieving users. + + + +Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the [export job](https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports), or the [User Import / Export](https://auth0.com/docs/extensions/user-import-export) extension.
@@ -12952,21 +14034,19 @@ Create a User Attribute Profile.
```java -client.userAttributeProfiles().create( - CreateUserAttributeProfileRequestContent +client.users().list( + ListUsersRequestParameters .builder() - .name("name") - .userAttributes( - new HashMap() {{ - put("key", UserAttributeProfileUserAttributeAdditionalProperties - .builder() - .description("description") - .label("label") - .profileRequired(true) - .auth0Mapping("auth0_mapping") - .build()); - }} - ) + .page(1) + .perPage(1) + .includeTotals(true) + .sort("sort") + .connection("connection") + .fields("fields") + .includeFields(true) + .q("q") + .searchEngine(SearchEngineVersionsEnum.V1) + .primaryOrder(true) .build() ); ``` @@ -12983,7 +14063,7 @@ client.userAttributeProfiles().create(
-**name:** `String` +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -12991,7 +14071,7 @@ client.userAttributeProfiles().create(
-**userId:** `Optional` +**perPage:** `Optional` — Number of results per page.
@@ -12999,47 +14079,64 @@ client.userAttributeProfiles().create(
-**userAttributes:** `Map` +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
-
-
+
+
+**sort:** `Optional` — Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 +
-
-
client.userAttributeProfiles.listTemplates() -> ListUserAttributeProfileTemplateResponseContent
-#### 📝 Description +**connection:** `Optional` — Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" + +
+
+**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + +
+
+
-Retrieve a list of User Attribute Profile Templates. +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +
+ +
+
+ +**q:** `Optional` — Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. +
-#### 🔌 Usage -
+**searchEngine:** `Optional` — The version of the search engine + +
+
+
-```java -client.userAttributeProfiles().listTemplates(); -``` +**primaryOrder:** `Optional` — If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. +
@@ -13050,7 +14147,7 @@ client.userAttributeProfiles().listTemplates();
-
client.userAttributeProfiles.getTemplate(id) -> GetUserAttributeProfileTemplateResponseContent +
client.users.create(request) -> CreateUserResponseContent
@@ -13062,7 +14159,9 @@ client.userAttributeProfiles().listTemplates();
-Retrieve a User Attribute Profile Template. +Create a new user for a given [database](https://auth0.com/docs/connections/database) or [passwordless](https://auth0.com/docs/connections/passwordless) connection. + +Note: `connection` is required but other parameters such as `email` and `password` are dependent upon the type of connection.
@@ -13077,7 +14176,12 @@ Retrieve a User Attribute Profile Template.
```java -client.userAttributeProfiles().getTemplate("id"); +client.users().create( + CreateUserRequestContent + .builder() + .connection("connection") + .build() +); ```
@@ -13092,115 +14196,135 @@ client.userAttributeProfiles().getTemplate("id");
-**id:** `String` — ID of the user-attribute-profile-template to retrieve. +**email:** `Optional` — The user's email.
- - +
+
+**phoneNumber:** `Optional` — The user's phone number (following the E.164 recommendation). +
-
-
client.userAttributeProfiles.get(id) -> GetUserAttributeProfileResponseContent
-#### 📝 Description +**userMetadata:** `Optional>` + +
+
+**blocked:** `Optional` — Whether this user was blocked by an administrator (true) or not (false). + +
+
+
-Retrieve details about a single User Attribute Profile specified by ID. -
-
+**emailVerified:** `Optional` — Whether this email address is verified (true) or unverified (false). User will receive a verification email after creation if `email_verified` is false or not specified + -#### 🔌 Usage -
+**phoneVerified:** `Optional` — Whether this phone number has been verified (true) or not (false). + +
+
+
-```java -client.userAttributeProfiles().get("id"); -``` -
-
+**appMetadata:** `Optional>` + -#### ⚙️ Parameters -
+**givenName:** `Optional` — The user's given name(s). + +
+
+
-**id:** `String` — ID of the user-attribute-profile to retrieve. +**familyName:** `Optional` — The user's family name(s).
- - +
+
+**name:** `Optional` — The user's full name. +
-
-
client.userAttributeProfiles.delete(id)
-#### 📝 Description +**nickname:** `Optional` — The user's nickname. + +
+
+**picture:** `Optional` — A URI pointing to the user's picture. + +
+
+
-Delete a single User Attribute Profile specified by ID. -
-
+**userId:** `Optional` — The external user's id provided by the identity provider. + -#### 🔌 Usage -
+**connection:** `String` — Name of the connection this user should be created in. + +
+
+
-```java -client.userAttributeProfiles().delete("id"); -``` -
-
+**password:** `Optional` — Initial password for this user. Only valid for auth0 connection strategy. + -#### ⚙️ Parameters -
+**verifyEmail:** `Optional` — Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. + +
+
+
-**id:** `String` — ID of the user-attribute-profile to delete. +**username:** `Optional` — The user's username. Only valid if the connection requires a username.
@@ -13212,7 +14336,7 @@ client.userAttributeProfiles().delete("id");
-
client.userAttributeProfiles.update(id, request) -> UpdateUserAttributeProfileResponseContent +
client.users.listUsersByEmail() -> List&lt;UserResponseSchema&gt;
@@ -13224,7 +14348,11 @@ client.userAttributeProfiles().delete("id");
-Update the details of a specific User attribute profile, such as name, user_id and user_attributes. +Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it. + +For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com. + +Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case.
@@ -13239,10 +14367,12 @@ Update the details of a specific User attribute profile, such as name, user_id a
```java -client.userAttributeProfiles().update( - "id", - UpdateUserAttributeProfileRequestContent +client.users().listUsersByEmail( + ListUsersByEmailRequestParameters .builder() + .email("email") + .fields("fields") + .includeFields(true) .build() ); ``` @@ -13259,15 +14389,7 @@ client.userAttributeProfiles().update(
-**id:** `String` — ID of the user attribute profile to update. - -
-
- -
-
- -**name:** `Optional` +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
@@ -13275,7 +14397,7 @@ client.userAttributeProfiles().update(
-**userId:** `Optional` +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). Defaults to true.
@@ -13283,7 +14405,7 @@ client.userAttributeProfiles().update(
-**userAttributes:** `Optional>` +**email:** `String` — Email address to search for (case-sensitive).
@@ -13295,8 +14417,7 @@ client.userAttributeProfiles().update(
-## UserBlocks -
client.userBlocks.listByIdentifier() -> ListUserBlocksByIdentifierResponseContent +
client.users.get(id) -> GetUserResponseContent
@@ -13308,7 +14429,7 @@ client.userAttributeProfiles().update(
-Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email). +Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint).
@@ -13323,11 +14444,12 @@ Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/a
```java -client.userBlocks().listByIdentifier( - ListUserBlocksByIdentifierRequestParameters +client.users().get( + "id", + GetUserRequestParameters .builder() - .identifier("identifier") - .considerBruteForceEnablement(true) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -13344,7 +14466,7 @@ client.userBlocks().listByIdentifier(
-**identifier:** `String` — Should be any of a username, phone number, or email. +**id:** `String` — ID of the user to retrieve.
@@ -13352,12 +14474,15 @@ client.userBlocks().listByIdentifier(
-**considerBruteForceEnablement:** `Optional` +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + +
+
+
+
- If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. - If true and Brute Force Protection is disabled, will return an empty list. - +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -13369,7 +14494,7 @@ client.userBlocks().listByIdentifier(
-
client.userBlocks.deleteByIdentifier() +
client.users.delete(id)
@@ -13381,9 +14506,7 @@ client.userBlocks().listByIdentifier(
-Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given identifier (username, phone number, or email). - -Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). +Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see [Delete Users](https://auth0.com/docs/manage-users/user-accounts/delete-users).
@@ -13398,12 +14521,7 @@ Note: This endpoint does not unblock users that were [blocked by a tenant admini
```java -client.userBlocks().deleteByIdentifier( - DeleteUserBlocksByIdentifierRequestParameters - .builder() - .identifier("identifier") - .build() -); +client.users().delete("id"); ```
@@ -13418,7 +14536,7 @@ client.userBlocks().deleteByIdentifier(
-**identifier:** `String` — Should be any of a username, phone number, or email. +**id:** `String` — ID of the user to delete.
@@ -13430,19 +14548,109 @@ client.userBlocks().deleteByIdentifier(
-
client.userBlocks.list(id) -> ListUserBlocksResponseContent -
-
+
client.users.update(id, request) -> UpdateUserResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update a user. + +These are the attributes that can be updated at the root level: + +- app_metadata +- blocked +- email +- email_verified +- family_name +- given_name +- name +- nickname +- password +- phone_number +- phone_verified +- picture +- username +- user_metadata +- verify_email + +Some considerations: + +- The properties of the new object will replace the old ones. +- The metadata fields are an exception to this rule (`user_metadata` and `app_metadata`). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level. +- If you are updating `email`, `email_verified`, `phone_number`, `phone_verified`, `username` or `password` of a secondary identity, you need to specify the `connection` property too. +- If you are updating `email` or `phone_number` you can specify, optionally, the `client_id` property. +- Updating `email_verified` is not supported for enterprise and passwordless sms connections. +- Updating the `blocked` to `false` does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state. +- Supported attributes can be unset by supplying `null` as the value. + +**Updating a field (non-metadata property)** + +To mark the email address of a user as verified, the body to send should be: + +```json +{ "email_verified": true } +``` + +**Updating a user metadata root property** + +Let's assume that our test user has the following `user_metadata`: + +```json +{ "user_metadata" : { "profileCode": 1479 } } +``` + +To add the field `addresses` the body to send should be: + +```json +{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }} +``` + +The modified object ends up with the following `user_metadata` property: + +```json +{ + "user_metadata": { + "profileCode": 1479, + "addresses": { "work_address": "100 Industrial Way" } + } +} +``` + +**Updating an inner user metadata property** -#### 📝 Description +If there's existing user metadata to which we want to add `"home_address": "742 Evergreen Terrace"` (using the `addresses` property) we should send the whole `addresses` object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: -
-
+```json +{ + "user_metadata": { + "addresses": { + "work_address": "100 Industrial Way", + "home_address": "742 Evergreen Terrace" + } + } +} +``` -
-
+The modified object ends up with the following `user_metadata` property: -Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. +```json +{ + "user_metadata": { + "profileCode": 1479, + "addresses": { + "work_address": "100 Industrial Way", + "home_address": "742 Evergreen Terrace" + } + } +} +```
@@ -13457,11 +14665,10 @@ Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/a
```java -client.userBlocks().list( +client.users().update( "id", - ListUserBlocksRequestParameters + UpdateUserRequestContent .builder() - .considerBruteForceEnablement(true) .build() ); ``` @@ -13478,7 +14685,7 @@ client.userBlocks().list(
-**id:** `String` — user_id of the user blocks to retrieve. +**id:** `String` — ID of the user to update.
@@ -13486,154 +14693,71 @@ client.userBlocks().list(
-**considerBruteForceEnablement:** `Optional` - - - If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. - If true and Brute Force Protection is disabled, will return an empty list. - +**blocked:** `Optional` — Whether this user was blocked by an administrator (true) or not (false).
-
-
- - -
-
-
- -
client.userBlocks.delete(id) -
-
- -#### 📝 Description
-
-
- -Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - -Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). -
-
+**emailVerified:** `Optional` — Whether this email address is verified (true) or unverified (false). If set to false the user will not receive a verification email unless `verify_email` is set to true. +
-#### 🔌 Usage -
-
-
- -```java -client.userBlocks().delete("id"); -``` -
-
+**email:** `Optional` — Email address of this user. +
-#### ⚙️ Parameters -
-
-
- -**id:** `String` — The user_id of the user to update. +**phoneNumber:** `Optional` — The user's phone number (following the E.164 recommendation).
-
-
+
+
+**phoneVerified:** `Optional` — Whether this phone number has been verified (true) or not (false). +
-
-## Users -
client.users.list() -> SyncPagingIterable&lt;UserResponseSchema&gt;
-#### 📝 Description - -
-
+**userMetadata:** `Optional>` — User metadata to which this user has read/write access. + +
+
-Retrieve details of users. It is possible to: - -- Specify a search criteria for users -- Sort the users to be returned -- Select the fields to be returned -- Specify the number of users to retrieve per page and the page index - - - -The `q` query parameter can be used to get users that match the specified criteria [using query string syntax.](https://auth0.com/docs/users/search/v3/query-syntax) - -[Learn more about searching for users.](https://auth0.com/docs/users/search/v3) - -Read about [best practices](https://auth0.com/docs/users/search/best-practices) when working with the API endpoints for retrieving users. - - - -Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the [export job](https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports), or the [User Import / Export](https://auth0.com/docs/extensions/user-import-export) extension. -
-
+**appMetadata:** `Optional>` — User metadata to which this user has read-only access. +
-#### 🔌 Usage - -
-
-
-```java -client.users().list( - ListUsersRequestParameters - .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .sort("sort") - .connection("connection") - .fields("fields") - .includeFields(true) - .q("q") - .searchEngine(SearchEngineVersionsEnum.V1) - .primaryOrder(true) - .build() -); -``` -
-
+**givenName:** `Optional` — Given name/first name/forename of this user. +
-#### ⚙️ Parameters -
-
-
- -**page:** `Optional` — Page index of the results to return. First page is 0. +**familyName:** `Optional` — Family name/last name/surname of this user.
@@ -13641,7 +14765,7 @@ client.users().list(
-**perPage:** `Optional` — Number of results per page. +**name:** `Optional` — Name of this user.
@@ -13649,7 +14773,7 @@ client.users().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**nickname:** `Optional` — Preferred nickname or alias of this user.
@@ -13657,7 +14781,7 @@ client.users().list(
-**sort:** `Optional` — Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 +**picture:** `Optional` — URL to picture, photo, or avatar of this user.
@@ -13665,7 +14789,7 @@ client.users().list(
-**connection:** `Optional` — Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" +**verifyEmail:** `Optional` — Whether this user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter.
@@ -13673,7 +14797,7 @@ client.users().list(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**verifyPhoneNumber:** `Optional` — Whether this user will receive a text after changing the phone number (true) or no text (false). Only valid when changing phone number for SMS connections.
@@ -13681,7 +14805,7 @@ client.users().list(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**password:** `Optional` — New password for this user. Only valid for database connections.
@@ -13689,7 +14813,7 @@ client.users().list(
-**q:** `Optional` — Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. +**connection:** `Optional` — Name of the connection to target for this user update.
@@ -13697,7 +14821,7 @@ client.users().list(
-**searchEngine:** `Optional` — The version of the search engine +**clientId:** `Optional` — Auth0 client ID. Only valid when updating email address.
@@ -13705,7 +14829,7 @@ client.users().list(
-**primaryOrder:** `Optional` — If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. +**username:** `Optional` — The user's username. Only valid if the connection requires a username.
@@ -13717,7 +14841,7 @@ client.users().list(
-
client.users.create(request) -> CreateUserResponseContent +
client.users.regenerateRecoveryCode(id) -> RegenerateUsersRecoveryCodeResponseContent
@@ -13729,9 +14853,7 @@ client.users().list(
-Create a new user for a given [database](https://auth0.com/docs/connections/database) or [passwordless](https://auth0.com/docs/connections/passwordless) connection. - -Note: `connection` is required but other parameters such as `email` and `password` are dependent upon the type of connection. +Remove an existing multi-factor authentication (MFA) [recovery code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate.
@@ -13746,12 +14868,7 @@ Note: `connection` is required but other parameters such as `email` and `passwor
```java -client.users().create( - CreateUserRequestContent - .builder() - .connection("connection") - .build() -); +client.users().regenerateRecoveryCode("id"); ```
@@ -13766,47 +14883,66 @@ client.users().create(
-**email:** `Optional` — The user's email. +**id:** `String` — ID of the user to regenerate a multi-factor authentication recovery code for.
+
+
-
-
-**phoneNumber:** `Optional` — The user's phone number (following the E.164 recommendation). -
+
+
client.users.revokeAccess(id, request)
-**userMetadata:** `Optional>` - -
-
+#### 📝 Description
-**blocked:** `Optional` — Whether this user was blocked by an administrator (true) or not (false). - +
+
+ +Revokes selected resources related to a user (sessions, refresh tokens, ...). +
+
+#### 🔌 Usage +
-**emailVerified:** `Optional` — Whether this email address is verified (true) or unverified (false). User will receive a verification email after creation if `email_verified` is false or not specified - +
+
+ +```java +client.users().revokeAccess( + "id", + RevokeUserAccessRequestContent + .builder() + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**phoneVerified:** `Optional` — Whether this phone number has been verified (true) or not (false). +
+
+ +**id:** `String` — ID of the user.
@@ -13814,7 +14950,7 @@ client.users().create(
-**appMetadata:** `Optional>` +**sessionId:** `Optional` — ID of the session to revoke.
@@ -13822,63 +14958,69 @@ client.users().create(
-**givenName:** `Optional` — The user's given name(s). +**preserveRefreshTokens:** `Optional` — Whether to preserve the refresh tokens associated with the session.
+
+
-
-
-**familyName:** `Optional` — The user's family name(s). -
+
+ +## Actions Versions +
client.actions.versions.list(actionId) -> SyncPagingIterable&lt;ActionVersion&gt; +
+
+ +#### 📝 Description
-**name:** `Optional` — The user's full name. - -
-
-
-**nickname:** `Optional` — The user's nickname. - +Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. +
+
+#### 🔌 Usage +
-**picture:** `Optional` — A URI pointing to the user's picture. - -
-
-
-**userId:** `Optional` — The external user's id provided by the identity provider. - +```java +client.actions().versions().list( + "actionId", + ListActionVersionsRequestParameters + .builder() + .page(1) + .perPage(1) + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**connection:** `String` — Name of the connection this user should be created in. - -
-
-
-**password:** `Optional` — Initial password for this user. Only valid for auth0 connection strategy. +**actionId:** `String` — The ID of the action.
@@ -13886,7 +15028,7 @@ client.users().create(
-**verifyEmail:** `Optional` — Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. +**page:** `Optional` — Use this field to request a specific page of the list results.
@@ -13894,7 +15036,7 @@ client.users().create(
-**username:** `Optional` — The user's username. Only valid if the connection requires a username. +**perPage:** `Optional` — This field specify the maximum number of results to be returned by the server. 20 by default
@@ -13906,7 +15048,7 @@ client.users().create(
-
client.users.listUsersByEmail() -> List&lt;UserResponseSchema&gt; +
client.actions.versions.get(actionId, id) -> GetActionVersionResponseContent
@@ -13918,11 +15060,7 @@ client.users().create(
-Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it. - -For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com. - -Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case. +Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created.
@@ -13937,14 +15075,7 @@ Therefore, when using this endpoint, make sure that you are searching for users
```java -client.users().listUsersByEmail( - ListUsersByEmailRequestParameters - .builder() - .email("email") - .fields("fields") - .includeFields(true) - .build() -); +client.actions().versions().get("actionId", "id"); ```
@@ -13959,15 +15090,7 @@ client.users().listUsersByEmail(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). Defaults to true. +**actionId:** `String` — The ID of the action.
@@ -13975,7 +15098,7 @@ client.users().listUsersByEmail(
-**email:** `String` — Email address to search for (case-sensitive). +**id:** `String` — The ID of the action version.
@@ -13987,7 +15110,7 @@ client.users().listUsersByEmail(
-
client.users.get(id) -> GetUserResponseContent +
client.actions.versions.deploy(actionId, id, request) -> DeployActionVersionResponseContent
@@ -13999,7 +15122,7 @@ client.users().listUsersByEmail(
-Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint). +Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.
@@ -14014,13 +15137,14 @@ Retrieve user details. A list of fields to include or exclude may also be specif
```java -client.users().get( +client.actions().versions().deploy( + "actionId", "id", - GetUserRequestParameters - .builder() - .fields("fields") - .includeFields(true) - .build() + OptionalNullable.of( + DeployActionVersionRequestContent + .builder() + .build() + ) ); ```
@@ -14036,7 +15160,7 @@ client.users().get(
-**id:** `String` — ID of the user to retrieve. +**actionId:** `String` — The ID of an action.
@@ -14044,7 +15168,7 @@ client.users().get(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. +**id:** `String` — The ID of an action version.
@@ -14052,7 +15176,7 @@ client.users().get(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**request:** `Optional`
@@ -14064,7 +15188,8 @@ client.users().get(
-
client.users.delete(id) +## Actions Executions +
client.actions.executions.get(id) -> GetActionExecutionResponseContent
@@ -14076,7 +15201,7 @@ client.users().get(
-Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see [Delete Users](https://auth0.com/docs/manage-users/user-accounts/delete-users). +Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation.
@@ -14091,7 +15216,7 @@ Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard inst
```java -client.users().delete("id"); +client.actions().executions().get("id"); ```
@@ -14106,7 +15231,7 @@ client.users().delete("id");
-**id:** `String` — ID of the user to delete. +**id:** `String` — The ID of the execution to retrieve.
@@ -14118,7 +15243,8 @@ client.users().delete("id");
-
client.users.update(id, request) -> UpdateUserResponseContent +## Actions Modules +
client.actions.modules.list() -> SyncPagingIterable&lt;ActionModuleListItem&gt;
@@ -14130,97 +15256,7 @@ client.users().delete("id");
-Update a user. - -These are the attributes that can be updated at the root level: - -- app_metadata -- blocked -- email -- email_verified -- family_name -- given_name -- name -- nickname -- password -- phone_number -- phone_verified -- picture -- username -- user_metadata -- verify_email - -Some considerations: - -- The properties of the new object will replace the old ones. -- The metadata fields are an exception to this rule (`user_metadata` and `app_metadata`). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level. -- If you are updating `email`, `email_verified`, `phone_number`, `phone_verified`, `username` or `password` of a secondary identity, you need to specify the `connection` property too. -- If you are updating `email` or `phone_number` you can specify, optionally, the `client_id` property. -- Updating `email_verified` is not supported for enterprise and passwordless sms connections. -- Updating the `blocked` to `false` does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state. -- Supported attributes can be unset by supplying `null` as the value. - -**Updating a field (non-metadata property)** - -To mark the email address of a user as verified, the body to send should be: - -```json -{ "email_verified": true } -``` - -**Updating a user metadata root property** - -Let's assume that our test user has the following `user_metadata`: - -```json -{ "user_metadata" : { "profileCode": 1479 } } -``` - -To add the field `addresses` the body to send should be: - -```json -{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }} -``` - -The modified object ends up with the following `user_metadata` property: - -```json -{ - "user_metadata": { - "profileCode": 1479, - "addresses": { "work_address": "100 Industrial Way" } - } -} -``` - -**Updating an inner user metadata property** - -If there's existing user metadata to which we want to add `"home_address": "742 Evergreen Terrace"` (using the `addresses` property) we should send the whole `addresses` object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - -```json -{ - "user_metadata": { - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } -} -``` - -The modified object ends up with the following `user_metadata` property: - -```json -{ - "user_metadata": { - "profileCode": 1479, - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } -} -``` +Retrieve a paginated list of all Actions Modules with optional filtering and totals.
@@ -14235,10 +15271,11 @@ The modified object ends up with the following `user_metadata` property:
```java -client.users().update( - "id", - UpdateUserRequestContent +client.actions().modules().list( + GetActionModulesRequestParameters .builder() + .page(1) + .perPage(1) .build() ); ``` @@ -14255,7 +15292,7 @@ client.users().update(
-**id:** `String` — ID of the user to update. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -14263,39 +15300,67 @@ client.users().update(
-**blocked:** `Optional` — Whether this user was blocked by an administrator (true) or not (false). +**perPage:** `Optional` — Number of results per page. Paging is disabled if parameter not sent.
+
+
-
-
-**emailVerified:** `Optional` — Whether this email address is verified (true) or unverified (false). If set to false the user will not receive a verification email unless `verify_email` is set to true. -
+
+
client.actions.modules.create(request) -> CreateActionModuleResponseContent
-**email:** `Optional` — Email address of this user. - +#### 📝 Description + +
+
+ +
+
+ +Create a new Actions Module for reusable code across actions. +
+
+#### 🔌 Usage +
-**phoneNumber:** `Optional` — The user's phone number (following the E.164 recommendation). - +
+
+ +```java +client.actions().modules().create( + CreateActionModuleRequestContent + .builder() + .name("name") + .code("code") + .build() +); +``` +
+
+#### ⚙️ Parameters + +
+
+
-**phoneVerified:** `Optional` — Whether this phone number has been verified (true) or not (false). +**name:** `String` — The name of the action module.
@@ -14303,7 +15368,7 @@ client.users().update(
-**userMetadata:** `Optional>` — User metadata to which this user has read/write access. +**code:** `String` — The source code of the action module.
@@ -14311,7 +15376,7 @@ client.users().update(
-**appMetadata:** `Optional>` — User metadata to which this user has read-only access. +**secrets:** `Optional>` — The secrets to associate with the action module.
@@ -14319,7 +15384,7 @@ client.users().update(
-**givenName:** `Optional` — Given name/first name/forename of this user. +**dependencies:** `Optional>` — The npm dependencies of the action module.
@@ -14327,7 +15392,7 @@ client.users().update(
-**familyName:** `Optional` — Family name/last name/surname of this user. +**apiVersion:** `Optional` — The API version of the module.
@@ -14335,71 +15400,61 @@ client.users().update(
-**name:** `Optional` — Name of this user. +**publish:** `Optional` — Whether to publish the module immediately after creation.
+
+
-
-
-**nickname:** `Optional` — Preferred nickname or alias of this user. -
+
+
client.actions.modules.get(id) -> GetActionModuleResponseContent
-**picture:** `Optional` — URL to picture, photo, or avatar of this user. - -
-
+#### 📝 Description
-**verifyEmail:** `Optional` — Whether this user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - -
-
-
-**verifyPhoneNumber:** `Optional` — Whether this user will receive a text after changing the phone number (true) or no text (false). Only valid when changing phone number for SMS connections. - +Retrieve details of a specific Actions Module by its unique identifier. +
+
+#### 🔌 Usage +
-**password:** `Optional` — New password for this user. Only valid for database connections. - -
-
-
-**connection:** `Optional` — Name of the connection to target for this user update. - +```java +client.actions().modules().get("id"); +``` +
+
+#### ⚙️ Parameters +
-**clientId:** `Optional` — Auth0 client ID. Only valid when updating email address. - -
-
-
-**username:** `Optional` — The user's username. Only valid if the connection requires a username. +**id:** `String` — The ID of the action module to retrieve.
@@ -14411,7 +15466,7 @@ client.users().update(
-
client.users.regenerateRecoveryCode(id) -> RegenerateUsersRecoveryCodeResponseContent +
client.actions.modules.delete(id)
@@ -14423,7 +15478,7 @@ client.users().update(
-Remove an existing multi-factor authentication (MFA) [recovery code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. +Permanently delete an Actions Module. This will fail if the module is still in use by any actions.
@@ -14438,7 +15493,7 @@ Remove an existing multi-factor authentication (MFA) [recovery code](https://aut
```java -client.users().regenerateRecoveryCode("id"); +client.actions().modules().delete("id"); ```
@@ -14453,7 +15508,7 @@ client.users().regenerateRecoveryCode("id");
-**id:** `String` — ID of the user to regenerate a multi-factor authentication recovery code for. +**id:** `String` — The ID of the Actions Module to delete.
@@ -14465,7 +15520,7 @@ client.users().regenerateRecoveryCode("id");
-
client.users.revokeAccess(id, request) +
client.actions.modules.update(id, request) -> UpdateActionModuleResponseContent
@@ -14477,7 +15532,7 @@ client.users().regenerateRecoveryCode("id");
-Revokes selected resources related to a user (sessions, refresh tokens, ...). +Update properties of an existing Actions Module, such as code, dependencies, or secrets.
@@ -14492,9 +15547,9 @@ Revokes selected resources related to a user (sessions, refresh tokens, ...).
```java -client.users().revokeAccess( +client.actions().modules().update( "id", - RevokeUserAccessRequestContent + UpdateActionModuleRequestContent .builder() .build() ); @@ -14512,7 +15567,7 @@ client.users().revokeAccess(
-**id:** `String` — ID of the user. +**id:** `String` — The ID of the action module to update.
@@ -14520,7 +15575,7 @@ client.users().revokeAccess(
-**sessionId:** `Optional` — ID of the session to revoke. +**code:** `Optional` — The source code of the action module.
@@ -14528,7 +15583,15 @@ client.users().revokeAccess(
-**preserveRefreshTokens:** `Optional` — Whether to preserve the refresh tokens associated with the session. +**secrets:** `Optional>` — The secrets to associate with the action module. + +
+
+ +
+
+ +**dependencies:** `Optional>` — The npm dependencies of the action module.
@@ -14540,8 +15603,7 @@ client.users().revokeAccess(
-## Actions Versions -
client.actions.versions.list(actionId) -> SyncPagingIterable&lt;ActionVersion&gt; +
client.actions.modules.listActions(id) -> SyncPagingIterable&lt;ActionModuleAction&gt;
@@ -14553,7 +15615,7 @@ client.users().revokeAccess(
-Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. +Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module.
@@ -14568,9 +15630,9 @@ Retrieve all of an action's versions. An action version is created whenever an a
```java -client.actions().versions().list( - "actionId", - ListActionVersionsRequestParameters +client.actions().modules().listActions( + "id", + GetActionModuleActionsRequestParameters .builder() .page(1) .perPage(1) @@ -14590,7 +15652,7 @@ client.actions().versions().list(
-**actionId:** `String` — The ID of the action. +**id:** `String` — The unique ID of the module.
@@ -14598,7 +15660,7 @@ client.actions().versions().list(
-**page:** `Optional` — Use this field to request a specific page of the list results. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -14606,7 +15668,7 @@ client.actions().versions().list(
-**perPage:** `Optional` — This field specify the maximum number of results to be returned by the server. 20 by default +**perPage:** `Optional` — Number of results per page.
@@ -14618,7 +15680,7 @@ client.actions().versions().list(
-
client.actions.versions.get(actionId, id) -> GetActionVersionResponseContent +
client.actions.modules.rollback(id, request) -> RollbackActionModuleResponseContent
@@ -14630,7 +15692,7 @@ client.actions().versions().list(
-Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created. +Rolls back an Actions Module's draft to a previously created version. This action copies the code, dependencies, and secrets from the specified version into the current draft.
@@ -14645,7 +15707,13 @@ Retrieve a specific version of an action. An action version is created whenever
```java -client.actions().versions().get("actionId", "id"); +client.actions().modules().rollback( + "id", + RollbackActionModuleRequestParameters + .builder() + .moduleVersionId("module_version_id") + .build() +); ```
@@ -14660,7 +15728,7 @@ client.actions().versions().get("actionId", "id");
-**actionId:** `String` — The ID of the action. +**id:** `String` — The unique ID of the module to roll back.
@@ -14668,7 +15736,7 @@ client.actions().versions().get("actionId", "id");
-**id:** `String` — The ID of the action version. +**moduleVersionId:** `String` — The unique ID of the module version to roll back to.
@@ -14680,7 +15748,8 @@ client.actions().versions().get("actionId", "id");
-
client.actions.versions.deploy(actionId, id, request) -> DeployActionVersionResponseContent +## Actions Triggers +
client.actions.triggers.list() -> ListActionTriggersResponseContent
@@ -14692,7 +15761,7 @@ client.actions().versions().get("actionId", "id");
-Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. +Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound.
@@ -14707,14 +15776,53 @@ Performs the equivalent of a roll-back of an action to an earlier, specified ver
```java -client.actions().versions().deploy( - "actionId", +client.actions().triggers().list(); +``` +
+
+ + + + + + +
+ +## Actions Modules Versions +
client.actions.modules.versions.list(id) -> SyncPagingIterable&lt;ActionModuleVersion&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List all published versions of a specific Actions Module. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.actions().modules().versions().list( "id", - OptionalNullable.of( - DeployActionVersionRequestContent - .builder() - .build() - ) + GetActionModuleVersionsRequestParameters + .builder() + .page(1) + .perPage(1) + .build() ); ```
@@ -14730,7 +15838,7 @@ client.actions().versions().deploy(
-**actionId:** `String` — The ID of an action. +**id:** `String` — The unique ID of the module.
@@ -14738,7 +15846,7 @@ client.actions().versions().deploy(
-**id:** `String` — The ID of an action version. +**page:** `Optional` — Use this field to request a specific page of the list results.
@@ -14746,7 +15854,7 @@ client.actions().versions().deploy(
-**request:** `Optional` +**perPage:** `Optional` — The maximum number of results to be returned by the server in a single response. 20 by default.
@@ -14758,8 +15866,7 @@ client.actions().versions().deploy(
-## Actions Executions -
client.actions.executions.get(id) -> GetActionExecutionResponseContent +
client.actions.modules.versions.create(id) -> CreateActionModuleVersionResponseContent
@@ -14771,7 +15878,7 @@ client.actions().versions().deploy(
-Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. +Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development.
@@ -14786,7 +15893,7 @@ Retrieve information about a specific execution of a trigger. Relevant execution
```java -client.actions().executions().get("id"); +client.actions().modules().versions().create("id"); ```
@@ -14801,7 +15908,69 @@ client.actions().executions().get("id");
-**id:** `String` — The ID of the execution to retrieve. +**id:** `String` — The ID of the action module to create a version for. + +
+
+ + + + + + +
+ +
client.actions.modules.versions.get(id, versionId) -> GetActionModuleVersionResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve the details of a specific, immutable version of an Actions Module. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.actions().modules().versions().get("id", "versionId"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The unique ID of the module. + +
+
+ +
+
+ +**versionId:** `String` — The unique ID of the module version to retrieve.
@@ -14813,8 +15982,8 @@ client.actions().executions().get("id");
-## Actions Modules -
client.actions.modules.list() -> SyncPagingIterable&lt;ActionModuleListItem&gt; +## Actions Triggers Bindings +
client.actions.triggers.bindings.list(triggerId) -> SyncPagingIterable&lt;ActionBinding&gt;
@@ -14826,7 +15995,7 @@ client.actions().executions().get("id");
-Retrieve a paginated list of all Actions Modules with optional filtering and totals. +Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow.
@@ -14841,8 +16010,9 @@ Retrieve a paginated list of all Actions Modules with optional filtering and tot
```java -client.actions().modules().list( - GetActionModulesRequestParameters +client.actions().triggers().bindings().list( + ActionTriggerTypeEnum.POST_LOGIN, + ListActionTriggerBindingsRequestParameters .builder() .page(1) .perPage(1) @@ -14862,7 +16032,7 @@ client.actions().modules().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**triggerId:** `ActionTriggerTypeEnum` — An actions extensibility point.
@@ -14870,7 +16040,15 @@ client.actions().modules().list(
-**perPage:** `Optional` — Number of results per page. Paging is disabled if parameter not sent. +**page:** `Optional` — Use this field to request a specific page of the list results. + +
+
+ +
+
+ +**perPage:** `Optional` — The maximum number of results to be returned in a single request. 20 by default
@@ -14882,7 +16060,7 @@ client.actions().modules().list(
-
client.actions.modules.create(request) -> CreateActionModuleResponseContent +
client.actions.triggers.bindings.updateMany(triggerId, request) -> UpdateActionBindingsResponseContent
@@ -14894,7 +16072,7 @@ client.actions().modules().list(
-Create a new Actions Module for reusable code across actions. +Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed.
@@ -14909,11 +16087,10 @@ Create a new Actions Module for reusable code across actions.
```java -client.actions().modules().create( - CreateActionModuleRequestContent +client.actions().triggers().bindings().updateMany( + ActionTriggerTypeEnum.POST_LOGIN, + UpdateActionBindingsRequestContent .builder() - .name("name") - .code("code") .build() ); ``` @@ -14930,7 +16107,7 @@ client.actions().modules().create(
-**name:** `String` — The name of the action module. +**triggerId:** `ActionTriggerTypeEnum` — An actions extensibility point.
@@ -14938,39 +16115,62 @@ client.actions().modules().create(
-**code:** `String` — The source code of the action module. +**bindings:** `Optional>` — The actions that will be bound to this trigger. The order in which they are included will be the order in which they are executed.
+
+
-
-
-**secrets:** `Optional>` — The secrets to associate with the action module. -
+
+## Anomaly Blocks +
client.anomaly.blocks.checkIp(id)
-**dependencies:** `Optional>` — The npm dependencies of the action module. - +#### 📝 Description + +
+
+ +
+
+ +Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. +
+
+#### 🔌 Usage +
-**apiVersion:** `Optional` — The API version of the module. - +
+
+ +```java +client.anomaly().blocks().checkIp("id"); +``` +
+
+#### ⚙️ Parameters +
-**publish:** `Optional` — Whether to publish the module immediately after creation. +
+
+ +**id:** `String` — IP address to check.
@@ -14982,7 +16182,7 @@ client.actions().modules().create(
-
client.actions.modules.get(id) -> GetActionModuleResponseContent +
client.anomaly.blocks.unblockIp(id)
@@ -14994,7 +16194,7 @@ client.actions().modules().create(
-Retrieve details of a specific Actions Module by its unique identifier. +Remove a block imposed by Suspicious IP Throttling for the given IP address.
@@ -15009,7 +16209,7 @@ Retrieve details of a specific Actions Module by its unique identifier.
```java -client.actions().modules().get("id"); +client.anomaly().blocks().unblockIp("id"); ```
@@ -15024,7 +16224,7 @@ client.actions().modules().get("id");
-**id:** `String` — The ID of the action module to retrieve. +**id:** `String` — IP address to unblock.
@@ -15036,7 +16236,8 @@ client.actions().modules().get("id");
-
client.actions.modules.delete(id) +## AttackProtection BotDetection +
client.attackProtection.botDetection.get() -> GetBotDetectionSettingsResponseContent
@@ -15048,7 +16249,7 @@ client.actions().modules().get("id");
-Permanently delete an Actions Module. This will fail if the module is still in use by any actions. +Get the Bot Detection configuration of your tenant.
@@ -15063,34 +16264,19 @@ Permanently delete an Actions Module. This will fail if the module is still in u
```java -client.actions().modules().delete("id"); +client.attackProtection().botDetection().get(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — The ID of the Actions Module to delete. - -
-
-
-
-
-
client.actions.modules.update(id, request) -> UpdateActionModuleResponseContent +
client.attackProtection.botDetection.update(request) -> UpdateBotDetectionSettingsResponseContent
@@ -15102,7 +16288,7 @@ client.actions().modules().delete("id");
-Update properties of an existing Actions Module, such as code, dependencies, or secrets. +Update the Bot Detection configuration of your tenant.
@@ -15117,9 +16303,8 @@ Update properties of an existing Actions Module, such as code, dependencies, or
```java -client.actions().modules().update( - "id", - UpdateActionModuleRequestContent +client.attackProtection().botDetection().update( + UpdateBotDetectionSettingsRequestContent .builder() .build() ); @@ -15137,7 +16322,7 @@ client.actions().modules().update(
-**id:** `String` — The ID of the action module to update. +**botDetectionLevel:** `Optional`
@@ -15145,7 +16330,7 @@ client.actions().modules().update(
-**code:** `Optional` — The source code of the action module. +**challengePasswordPolicy:** `Optional`
@@ -15153,7 +16338,7 @@ client.actions().modules().update(
-**secrets:** `Optional>` — The secrets to associate with the action module. +**challengePasswordlessPolicy:** `Optional`
@@ -15161,60 +16346,40 @@ client.actions().modules().update(
-**dependencies:** `Optional>` — The npm dependencies of the action module. +**challengePasswordResetPolicy:** `Optional`
-
-
- - - -
- -
client.actions.modules.listActions(id) -> SyncPagingIterable&lt;ActionModuleAction&gt;
-#### 📝 Description - -
-
+**allowlist:** `Optional>` + +
+
-Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. +**monitoringModeEnabled:** `Optional` +
-#### 🔌 Usage -
-
+
+
+
+## AttackProtection BreachedPasswordDetection +
client.attackProtection.breachedPasswordDetection.get() -> GetBreachedPasswordDetectionSettingsResponseContent
-```java -client.actions().modules().listActions( - "id", - GetActionModuleActionsRequestParameters - .builder() - .page(1) - .perPage(1) - .build() -); -``` -
-
- - - -#### ⚙️ Parameters +#### 📝 Description
@@ -15222,24 +16387,23 @@ client.actions().modules().listActions(
-**id:** `String` — The unique ID of the module. - +Retrieve details of the Breached Password Detection configuration of your tenant. +
+
+#### 🔌 Usage +
-**page:** `Optional` — Page index of the results to return. First page is 0. - -
-
-
-**perPage:** `Optional` — Number of results per page. - +```java +client.attackProtection().breachedPasswordDetection().get(); +```
@@ -15250,7 +16414,7 @@ client.actions().modules().listActions(
-
client.actions.modules.rollback(id, request) -> RollbackActionModuleResponseContent +
client.attackProtection.breachedPasswordDetection.update(request) -> UpdateBreachedPasswordDetectionSettingsResponseContent
@@ -15262,7 +16426,7 @@ client.actions().modules().listActions(
-Rolls back an Actions Module's draft to a previously created version. This action copies the code, dependencies, and secrets from the specified version into the current draft. +Update details of the Breached Password Detection configuration of your tenant.
@@ -15277,11 +16441,9 @@ Rolls back an Actions Module's draft to a previously created version. This actio
```java -client.actions().modules().rollback( - "id", - RollbackActionModuleRequestParameters +client.attackProtection().breachedPasswordDetection().update( + UpdateBreachedPasswordDetectionSettingsRequestContent .builder() - .moduleVersionId("module_version_id") .build() ); ``` @@ -15298,7 +16460,7 @@ client.actions().modules().rollback(
-**id:** `String` — The unique ID of the module to roll back. +**enabled:** `Optional` — Whether or not breached password detection is active.
@@ -15306,7 +16468,37 @@ client.actions().modules().rollback(
-**moduleVersionId:** `String` — The unique ID of the module version to roll back to. +**shields:** `Optional>` + +Action to take when a breached password is detected during a login. + Possible values: block, user_notification, admin_notification. + +
+
+ +
+
+ +**adminNotificationFrequency:** `Optional>` + +When "admin_notification" is enabled, determines how often email notifications are sent. + Possible values: immediately, daily, weekly, monthly. + +
+
+ +
+
+ +**method:** `Optional` + +
+
+ +
+
+ +**stage:** `Optional`
@@ -15318,8 +16510,8 @@ client.actions().modules().rollback(
-## Actions Triggers -
client.actions.triggers.list() -> ListActionTriggersResponseContent +## AttackProtection BruteForceProtection +
client.attackProtection.bruteForceProtection.get() -> GetBruteForceSettingsResponseContent
@@ -15331,7 +16523,7 @@ client.actions().modules().rollback(
-Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. +Retrieve details of the Brute-force Protection configuration of your tenant.
@@ -15346,7 +16538,7 @@ Retrieve the set of triggers currently available within actions. A trigger is an
```java -client.actions().triggers().list(); +client.attackProtection().bruteForceProtection().get(); ```
@@ -15358,8 +16550,7 @@ client.actions().triggers().list();
-## Actions Modules Versions -
client.actions.modules.versions.list(id) -> SyncPagingIterable&lt;ActionModuleVersion&gt; +
client.attackProtection.bruteForceProtection.update(request) -> UpdateBruteForceSettingsResponseContent
@@ -15371,7 +16562,7 @@ client.actions().triggers().list();
-List all published versions of a specific Actions Module. +Update the Brute-force Protection configuration of your tenant.
@@ -15386,12 +16577,9 @@ List all published versions of a specific Actions Module.
```java -client.actions().modules().versions().list( - "id", - GetActionModuleVersionsRequestParameters +client.attackProtection().bruteForceProtection().update( + UpdateBruteForceSettingsRequestContent .builder() - .page(1) - .perPage(1) .build() ); ``` @@ -15400,15 +16588,34 @@ client.actions().modules().versions().list(
-#### ⚙️ Parameters - +#### ⚙️ Parameters + +
+
+ +
+
+ +**enabled:** `Optional` — Whether or not brute force attack protections are active. + +
+
+
+**shields:** `Optional>` + +Action to take when a brute force protection threshold is violated. + Possible values: block, user_notification. + +
+
+
-**id:** `String` — The unique ID of the module. +**allowlist:** `Optional>` — List of trusted IP addresses that will not have attack protection enforced against them.
@@ -15416,7 +16623,7 @@ client.actions().modules().versions().list(
-**page:** `Optional` — Use this field to request a specific page of the list results. +**mode:** `Optional`
@@ -15424,7 +16631,7 @@ client.actions().modules().versions().list(
-**perPage:** `Optional` — The maximum number of results to be returned by the server in a single response. 20 by default. +**maxAttempts:** `Optional` — Maximum number of unsuccessful attempts.
@@ -15436,7 +16643,8 @@ client.actions().modules().versions().list(
-
client.actions.modules.versions.create(id) -> CreateActionModuleVersionResponseContent +## AttackProtection Captcha +
client.attackProtection.captcha.get() -> GetAttackProtectionCaptchaResponseContent
@@ -15448,7 +16656,7 @@ client.actions().modules().versions().list(
-Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development. +Get the CAPTCHA configuration for your client.
@@ -15463,34 +16671,19 @@ Creates a new immutable version of an Actions Module from the current draft vers
```java -client.actions().modules().versions().create("id"); +client.attackProtection().captcha().get(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — The ID of the action module to create a version for. - -
-
-
-
-
-
client.actions.modules.versions.get(id, versionId) -> GetActionModuleVersionResponseContent +
client.attackProtection.captcha.update(request) -> UpdateAttackProtectionCaptchaResponseContent
@@ -15502,7 +16695,7 @@ client.actions().modules().versions().create("id");
-Retrieve the details of a specific, immutable version of an Actions Module. +Update existing CAPTCHA configuration for your client.
@@ -15517,7 +16710,11 @@ Retrieve the details of a specific, immutable version of an Actions Module.
```java -client.actions().modules().versions().get("id", "versionId"); +client.attackProtection().captcha().update( + UpdateAttackProtectionCaptchaRequestContent + .builder() + .build() +); ```
@@ -15532,7 +16729,7 @@ client.actions().modules().versions().get("id", "versionId");
-**id:** `String` — The unique ID of the module. +**activeProviderId:** `Optional`
@@ -15540,86 +16737,96 @@ client.actions().modules().versions().get("id", "versionId");
-**versionId:** `String` — The unique ID of the module version to retrieve. +**arkose:** `Optional`
- - +
+
+**authChallenge:** `Optional` +
-
-## Actions Triggers Bindings -
client.actions.triggers.bindings.list(triggerId) -> SyncPagingIterable&lt;ActionBinding&gt;
-#### 📝 Description +**hcaptcha:** `Optional` + +
+
+**friendlyCaptcha:** `Optional` + +
+
+
-Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. -
-
+**recaptchaEnterprise:** `Optional` + -#### 🔌 Usage -
+**recaptchaV2:** `Optional` + +
+
+
-```java -client.actions().triggers().bindings().list( - ActionTriggerTypeEnum.POST_LOGIN, - ListActionTriggerBindingsRequestParameters - .builder() - .page(1) - .perPage(1) - .build() -); -``` +**simpleCaptcha:** `Optional>` +
-#### ⚙️ Parameters + + +
+ +## AttackProtection PhoneProviderProtection +
client.attackProtection.phoneProviderProtection.get() -> GetPhoneProviderProtectionResponseContent
+#### 📝 Description +
-**triggerId:** `ActionTriggerTypeEnum` — An actions extensibility point. - -
-
-
-**page:** `Optional` — Use this field to request a specific page of the list results. - +Get the phone provider protection configuration for a tenant.
+
+
+ +#### 🔌 Usage
-**perPage:** `Optional` — The maximum number of results to be returned in a single request. 20 by default - +
+
+ +```java +client.attackProtection().phoneProviderProtection().get(); +```
@@ -15630,7 +16837,7 @@ client.actions().triggers().bindings().list(
-
client.actions.triggers.bindings.updateMany(triggerId, request) -> UpdateActionBindingsResponseContent +
client.attackProtection.phoneProviderProtection.patch(request) -> PatchPhoneProviderProtectionResponseContent
@@ -15642,7 +16849,7 @@ client.actions().triggers().bindings().list(
-Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. +Update the phone provider protection configuration for a tenant.
@@ -15657,10 +16864,10 @@ Update the actions that are bound (i.e. attached) to a trigger. Once an action i
```java -client.actions().triggers().bindings().updateMany( - ActionTriggerTypeEnum.POST_LOGIN, - UpdateActionBindingsRequestContent +client.attackProtection().phoneProviderProtection().patch( + PatchPhoneProviderProtectionRequestContent .builder() + .type(PhoneProviderProtectionBackoffStrategyEnum.EXPONENTIAL) .build() ); ``` @@ -15677,15 +16884,7 @@ client.actions().triggers().bindings().updateMany(
-**triggerId:** `ActionTriggerTypeEnum` — An actions extensibility point. - -
-
- -
-
- -**bindings:** `Optional>` — The actions that will be bound to this trigger. The order in which they are included will be the order in which they are executed. +**type:** `PhoneProviderProtectionBackoffStrategyEnum`
@@ -15697,8 +16896,8 @@ client.actions().triggers().bindings().updateMany(
-## Anomaly Blocks -
client.anomaly.blocks.checkIp(id) +## AttackProtection SuspiciousIpThrottling +
client.attackProtection.suspiciousIpThrottling.get() -> GetSuspiciousIpThrottlingSettingsResponseContent
@@ -15710,7 +16909,7 @@ client.actions().triggers().bindings().updateMany(
-Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. +Retrieve details of the Suspicious IP Throttling configuration of your tenant.
@@ -15725,34 +16924,19 @@ Check if the given IP address is blocked via the
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — IP address to check. - -
-
-
-
-
-
client.anomaly.blocks.unblockIp(id) +
client.attackProtection.suspiciousIpThrottling.update(request) -> UpdateSuspiciousIpThrottlingSettingsResponseContent
@@ -15764,7 +16948,7 @@ client.anomaly().blocks().checkIp("id");
-Remove a block imposed by Suspicious IP Throttling for the given IP address. +Update the details of the Suspicious IP Throttling configuration of your tenant.
@@ -15779,7 +16963,11 @@ Remove a block imposed by
@@ -15794,36 +16982,49 @@ client.anomaly().blocks().unblockIp("id");
-**id:** `String` — IP address to unblock. +**enabled:** `Optional` — Whether or not suspicious IP throttling attack protections are active.
- - +
+
+ +**shields:** `Optional>` +Action to take when a suspicious IP throttling threshold is violated. + Possible values: block, admin_notification. +
-
-## AttackProtection BotDetection -
client.attackProtection.botDetection.get() -> GetBotDetectionSettingsResponseContent
-#### 📝 Description - -
-
+**allowlist:** `Optional>` + +
+
-Get the Bot Detection configuration of your tenant. +**stage:** `Optional` + +
+
+ + +
+ +## Branding Templates +
client.branding.templates.getUniversalLogin() -> GetUniversalLoginTemplateResponseContent +
+
#### 🔌 Usage @@ -15834,7 +17035,7 @@ Get the Bot Detection configuration of your tenant.
```java -client.attackProtection().botDetection().get(); +client.branding().templates().getUniversalLogin(); ```
@@ -15846,7 +17047,7 @@ client.attackProtection().botDetection().get();
-
client.attackProtection.botDetection.update(request) -> UpdateBotDetectionSettingsResponseContent +
client.branding.templates.updateUniversalLogin(request)
@@ -15858,81 +17059,62 @@ client.attackProtection().botDetection().get();
-Update the Bot Detection configuration of your tenant. -
-
-
-
+Update the Universal Login branding template. -#### 🔌 Usage +When `content-type` header is set to `application/json`: -
-
+```json +{ + "template": "{% assign resolved_dir = dir | default: \"auto\" %}{%- auth0:head -%}{%- auth0:widget -%}" +} +``` -
-
+When `content-type` header is set to `text/html`: -```java -client.attackProtection().botDetection().update( - UpdateBotDetectionSettingsRequestContent - .builder() - .build() -); +```html + +{% assign resolved_dir = dir | default: "auto" %} + + + {%- auth0:head -%} + + + {%- auth0:widget -%} + + ```
-#### ⚙️ Parameters - -
-
+#### 🔌 Usage
-**botDetectionLevel:** `Optional` - -
-
-
-**challengePasswordPolicy:** `Optional` - +```java +client.branding().templates().updateUniversalLogin( + UpdateUniversalLoginTemplateRequestContent.of("string") +); +```
- -
-
- -**challengePasswordlessPolicy:** `Optional` -
-
-
- -**challengePasswordResetPolicy:** `Optional` - -
-
+#### ⚙️ Parameters
-**allowlist:** `Optional>` - -
-
-
-**monitoringModeEnabled:** `Optional` +**request:** `UpdateUniversalLoginTemplateRequestContent`
@@ -15944,25 +17126,10 @@ client.attackProtection().botDetection().update(
-## AttackProtection BreachedPasswordDetection -
client.attackProtection.breachedPasswordDetection.get() -> GetBreachedPasswordDetectionSettingsResponseContent -
-
- -#### 📝 Description - -
-
- +
client.branding.templates.deleteUniversalLogin()
-Retrieve details of the Breached Password Detection configuration of your tenant. -
-
-
-
- #### 🔌 Usage
@@ -15972,7 +17139,7 @@ Retrieve details of the Breached Password Detection configuration of your tenant
```java -client.attackProtection().breachedPasswordDetection().get(); +client.branding().templates().deleteUniversalLogin(); ```
@@ -15984,7 +17151,8 @@ client.attackProtection().breachedPasswordDetection().get();
-
client.attackProtection.breachedPasswordDetection.update(request) -> UpdateBreachedPasswordDetectionSettingsResponseContent +## Branding Themes +
client.branding.themes.create(request) -> CreateBrandingThemeResponseContent
@@ -15996,7 +17164,7 @@ client.attackProtection().breachedPasswordDetection().get();
-Update details of the Breached Password Detection configuration of your tenant. +Create branding theme.
@@ -16011,9 +17179,112 @@ Update details of the Breached Password Detection configuration of your tenant.
```java -client.attackProtection().breachedPasswordDetection().update( - UpdateBreachedPasswordDetectionSettingsRequestContent +client.branding().themes().create( + CreateBrandingThemeRequestContent .builder() + .borders( + BrandingThemeBorders + .builder() + .buttonBorderRadius(1.1) + .buttonBorderWeight(1.1) + .buttonsStyle(BrandingThemeBordersButtonsStyleEnum.PILL) + .inputBorderRadius(1.1) + .inputBorderWeight(1.1) + .inputsStyle(BrandingThemeBordersInputsStyleEnum.PILL) + .showWidgetShadow(true) + .widgetBorderWeight(1.1) + .widgetCornerRadius(1.1) + .build() + ) + .colors( + BrandingThemeColors + .builder() + .bodyText("body_text") + .error("error") + .header("header") + .icons("icons") + .inputBackground("input_background") + .inputBorder("input_border") + .inputFilledText("input_filled_text") + .inputLabelsPlaceholders("input_labels_placeholders") + .linksFocusedComponents("links_focused_components") + .primaryButton("primary_button") + .primaryButtonLabel("primary_button_label") + .secondaryButtonBorder("secondary_button_border") + .secondaryButtonLabel("secondary_button_label") + .success("success") + .widgetBackground("widget_background") + .widgetBorder("widget_border") + .build() + ) + .fonts( + BrandingThemeFonts + .builder() + .bodyText( + BrandingThemeFontBodyText + .builder() + .bold(true) + .size(1.1) + .build() + ) + .buttonsText( + BrandingThemeFontButtonsText + .builder() + .bold(true) + .size(1.1) + .build() + ) + .fontUrl("font_url") + .inputLabels( + BrandingThemeFontInputLabels + .builder() + .bold(true) + .size(1.1) + .build() + ) + .links( + BrandingThemeFontLinks + .builder() + .bold(true) + .size(1.1) + .build() + ) + .linksStyle(BrandingThemeFontLinksStyleEnum.NORMAL) + .referenceTextSize(1.1) + .subtitle( + BrandingThemeFontSubtitle + .builder() + .bold(true) + .size(1.1) + .build() + ) + .title( + BrandingThemeFontTitle + .builder() + .bold(true) + .size(1.1) + .build() + ) + .build() + ) + .pageBackground( + BrandingThemePageBackground + .builder() + .backgroundColor("background_color") + .backgroundImageUrl("background_image_url") + .pageLayout(BrandingThemePageBackgroundPageLayoutEnum.CENTER) + .build() + ) + .widget( + BrandingThemeWidget + .builder() + .headerTextAlignment(BrandingThemeWidgetHeaderTextAlignmentEnum.CENTER) + .logoHeight(1.1) + .logoPosition(BrandingThemeWidgetLogoPositionEnum.CENTER) + .logoUrl("logo_url") + .socialButtonsLayout(BrandingThemeWidgetSocialButtonsLayoutEnum.BOTTOM) + .build() + ) .build() ); ``` @@ -16030,7 +17301,7 @@ client.attackProtection().breachedPasswordDetection().update(
-**enabled:** `Optional` — Whether or not breached password detection is active. +**borders:** `BrandingThemeBorders`
@@ -16038,10 +17309,15 @@ client.attackProtection().breachedPasswordDetection().update(
-**shields:** `Optional>` +**colors:** `BrandingThemeColors` + +
+
-Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. +
+
+ +**displayName:** `Optional` — Display Name
@@ -16049,10 +17325,15 @@ Action to take when a breached password is detected during a login.
-**adminNotificationFrequency:** `Optional>` +**fonts:** `BrandingThemeFonts` + +
+
-When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. +
+
+ +**identifiers:** `Optional`
@@ -16060,7 +17341,7 @@ When "admin_notification" is enabled, determines how often email notifications a
-**method:** `Optional` +**pageBackground:** `BrandingThemePageBackground`
@@ -16068,7 +17349,7 @@ When "admin_notification" is enabled, determines how often email notifications a
-**stage:** `Optional` +**widget:** `BrandingThemeWidget`
@@ -16080,8 +17361,7 @@ When "admin_notification" is enabled, determines how often email notifications a
-## AttackProtection BruteForceProtection -
client.attackProtection.bruteForceProtection.get() -> GetBruteForceSettingsResponseContent +
client.branding.themes.getDefault() -> GetBrandingDefaultThemeResponseContent
@@ -16093,7 +17373,7 @@ When "admin_notification" is enabled, determines how often email notifications a
-Retrieve details of the Brute-force Protection configuration of your tenant. +Retrieve default branding theme.
@@ -16108,7 +17388,7 @@ Retrieve details of the Brute-force Protection configuration of your tenant.
```java -client.attackProtection().bruteForceProtection().get(); +client.branding().themes().getDefault(); ```
@@ -16120,7 +17400,7 @@ client.attackProtection().bruteForceProtection().get();
-
client.attackProtection.bruteForceProtection.update(request) -> UpdateBruteForceSettingsResponseContent +
client.branding.themes.get(themeId) -> GetBrandingThemeResponseContent
@@ -16132,7 +17412,7 @@ client.attackProtection().bruteForceProtection().get();
-Update the Brute-force Protection configuration of your tenant. +Retrieve branding theme.
@@ -16147,11 +17427,7 @@ Update the Brute-force Protection configuration of your tenant.
```java -client.attackProtection().bruteForceProtection().update( - UpdateBruteForceSettingsRequestContent - .builder() - .build() -); +client.branding().themes().get("themeId"); ```
@@ -16166,42 +17442,7 @@ client.attackProtection().bruteForceProtection().update(
-**enabled:** `Optional` — Whether or not brute force attack protections are active. - -
-
- -
-
- -**shields:** `Optional>` - -Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - -
-
- -
-
- -**allowlist:** `Optional>` — List of trusted IP addresses that will not have attack protection enforced against them. - -
-
- -
-
- -**mode:** `Optional` - -
-
- -
-
- -**maxAttempts:** `Optional` — Maximum number of unsuccessful attempts. +**themeId:** `String` — The ID of the theme
@@ -16213,8 +17454,7 @@ Action to take when a brute force protection threshold is violated.
-## AttackProtection Captcha -
client.attackProtection.captcha.get() -> GetAttackProtectionCaptchaResponseContent +
client.branding.themes.delete(themeId)
@@ -16226,7 +17466,7 @@ Action to take when a brute force protection threshold is violated.
-Get the CAPTCHA configuration for your client. +Delete branding theme.
@@ -16241,19 +17481,34 @@ Get the CAPTCHA configuration for your client.
```java -client.attackProtection().captcha().get(); +client.branding().themes().delete("themeId"); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**themeId:** `String` — The ID of the theme + +
+
+
+
+
-
client.attackProtection.captcha.update(request) -> UpdateAttackProtectionCaptchaResponseContent +
client.branding.themes.update(themeId, request) -> UpdateBrandingThemeResponseContent
@@ -16265,7 +17520,7 @@ client.attackProtection().captcha().get();
-Update existing CAPTCHA configuration for your client. +Update branding theme.
@@ -16280,9 +17535,113 @@ Update existing CAPTCHA configuration for your client.
```java -client.attackProtection().captcha().update( - UpdateAttackProtectionCaptchaRequestContent +client.branding().themes().update( + "themeId", + UpdateBrandingThemeRequestContent .builder() + .borders( + BrandingThemeBorders + .builder() + .buttonBorderRadius(1.1) + .buttonBorderWeight(1.1) + .buttonsStyle(BrandingThemeBordersButtonsStyleEnum.PILL) + .inputBorderRadius(1.1) + .inputBorderWeight(1.1) + .inputsStyle(BrandingThemeBordersInputsStyleEnum.PILL) + .showWidgetShadow(true) + .widgetBorderWeight(1.1) + .widgetCornerRadius(1.1) + .build() + ) + .colors( + BrandingThemeColors + .builder() + .bodyText("body_text") + .error("error") + .header("header") + .icons("icons") + .inputBackground("input_background") + .inputBorder("input_border") + .inputFilledText("input_filled_text") + .inputLabelsPlaceholders("input_labels_placeholders") + .linksFocusedComponents("links_focused_components") + .primaryButton("primary_button") + .primaryButtonLabel("primary_button_label") + .secondaryButtonBorder("secondary_button_border") + .secondaryButtonLabel("secondary_button_label") + .success("success") + .widgetBackground("widget_background") + .widgetBorder("widget_border") + .build() + ) + .fonts( + BrandingThemeFonts + .builder() + .bodyText( + BrandingThemeFontBodyText + .builder() + .bold(true) + .size(1.1) + .build() + ) + .buttonsText( + BrandingThemeFontButtonsText + .builder() + .bold(true) + .size(1.1) + .build() + ) + .fontUrl("font_url") + .inputLabels( + BrandingThemeFontInputLabels + .builder() + .bold(true) + .size(1.1) + .build() + ) + .links( + BrandingThemeFontLinks + .builder() + .bold(true) + .size(1.1) + .build() + ) + .linksStyle(BrandingThemeFontLinksStyleEnum.NORMAL) + .referenceTextSize(1.1) + .subtitle( + BrandingThemeFontSubtitle + .builder() + .bold(true) + .size(1.1) + .build() + ) + .title( + BrandingThemeFontTitle + .builder() + .bold(true) + .size(1.1) + .build() + ) + .build() + ) + .pageBackground( + BrandingThemePageBackground + .builder() + .backgroundColor("background_color") + .backgroundImageUrl("background_image_url") + .pageLayout(BrandingThemePageBackgroundPageLayoutEnum.CENTER) + .build() + ) + .widget( + BrandingThemeWidget + .builder() + .headerTextAlignment(BrandingThemeWidgetHeaderTextAlignmentEnum.CENTER) + .logoHeight(1.1) + .logoPosition(BrandingThemeWidgetLogoPositionEnum.CENTER) + .logoUrl("logo_url") + .socialButtonsLayout(BrandingThemeWidgetSocialButtonsLayoutEnum.BOTTOM) + .build() + ) .build() ); ``` @@ -16299,7 +17658,7 @@ client.attackProtection().captcha().update(
-**activeProviderId:** `Optional` +**themeId:** `String` — The ID of the theme
@@ -16307,7 +17666,7 @@ client.attackProtection().captcha().update(
-**arkose:** `Optional` +**borders:** `BrandingThemeBorders`
@@ -16315,7 +17674,7 @@ client.attackProtection().captcha().update(
-**authChallenge:** `Optional` +**colors:** `BrandingThemeColors`
@@ -16323,7 +17682,7 @@ client.attackProtection().captcha().update(
-**hcaptcha:** `Optional` +**displayName:** `Optional` — Display Name
@@ -16331,7 +17690,7 @@ client.attackProtection().captcha().update(
-**friendlyCaptcha:** `Optional` +**fonts:** `BrandingThemeFonts`
@@ -16339,7 +17698,7 @@ client.attackProtection().captcha().update(
-**recaptchaEnterprise:** `Optional` +**identifiers:** `Optional`
@@ -16347,7 +17706,7 @@ client.attackProtection().captcha().update(
-**recaptchaV2:** `Optional` +**pageBackground:** `BrandingThemePageBackground`
@@ -16355,7 +17714,7 @@ client.attackProtection().captcha().update(
-**simpleCaptcha:** `Optional>` +**widget:** `BrandingThemeWidget`
@@ -16367,47 +17726,8 @@ client.attackProtection().captcha().update(
-## AttackProtection PhoneProviderProtection -
client.attackProtection.phoneProviderProtection.get() -> GetPhoneProviderProtectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get the phone provider protection configuration for a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -client.attackProtection().phoneProviderProtection().get(); -``` -
-
-
-
- - -
-
-
- -
client.attackProtection.phoneProviderProtection.patch(request) -> PatchPhoneProviderProtectionResponseContent +## Branding Phone Providers +
client.branding.phone.providers.list() -> ListBrandingPhoneProvidersResponseContent
@@ -16419,7 +17739,7 @@ client.attackProtection().phoneProviderProtection().get();
-Update the phone provider protection configuration for a tenant. +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.
@@ -16434,10 +17754,10 @@ Update the phone provider protection configuration for a tenant.
```java -client.attackProtection().phoneProviderProtection().patch( - PatchPhoneProviderProtectionRequestContent +client.branding().phone().providers().list( + ListBrandingPhoneProvidersRequestParameters .builder() - .type(PhoneProviderProtectionBackoffStrategyEnum.EXPONENTIAL) + .disabled(true) .build() ); ``` @@ -16454,7 +17774,7 @@ client.attackProtection().phoneProviderProtection().patch(
-**type:** `PhoneProviderProtectionBackoffStrategyEnum` +**disabled:** `Optional` — Whether the provider is enabled (false) or disabled (true).
@@ -16466,47 +17786,7 @@ client.attackProtection().phoneProviderProtection().patch(
-## AttackProtection SuspiciousIpThrottling -
client.attackProtection.suspiciousIpThrottling.get() -> GetSuspiciousIpThrottlingSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the Suspicious IP Throttling configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -client.attackProtection().suspiciousIpThrottling().get(); -``` -
-
-
-
- - -
-
-
- -
client.attackProtection.suspiciousIpThrottling.update(request) -> UpdateSuspiciousIpThrottlingSettingsResponseContent +
client.branding.phone.providers.create(request) -> CreateBrandingPhoneProviderResponseContent
@@ -16518,7 +17798,8 @@ client.attackProtection().suspiciousIpThrottling().get();
-Update the details of the Suspicious IP Throttling configuration of your tenant. +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).
@@ -16533,9 +17814,18 @@ Update the details of the Suspicious IP Throttling configuration of your tenant.
```java -client.attackProtection().suspiciousIpThrottling().update( - UpdateSuspiciousIpThrottlingSettingsRequestContent +client.branding().phone().providers().create( + CreateBrandingPhoneProviderRequestContent .builder() + .name(PhoneProviderNameEnum.TWILIO) + .credentials( + PhoneProviderCredentials.of( + TwilioProviderCredentials + .builder() + .authToken("auth_token") + .build() + ) + ) .build() ); ``` @@ -16552,7 +17842,7 @@ client.attackProtection().suspiciousIpThrottling().update(
-**enabled:** `Optional` — Whether or not suspicious IP throttling attack protections are active. +**name:** `PhoneProviderNameEnum`
@@ -16560,10 +17850,7 @@ client.attackProtection().suspiciousIpThrottling().update(
-**shields:** `Optional>` - -Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. +**disabled:** `Optional` — Whether the provider is enabled (false) or disabled (true).
@@ -16571,7 +17858,7 @@ Action to take when a suspicious IP throttling threshold is violated.
-**allowlist:** `Optional>` +**configuration:** `Optional`
@@ -16579,7 +17866,7 @@ Action to take when a suspicious IP throttling threshold is violated.
-**stage:** `Optional` +**credentials:** `PhoneProviderCredentials`
@@ -16591,11 +17878,24 @@ Action to take when a suspicious IP throttling threshold is violated.
-## Branding Templates -
client.branding.templates.getUniversalLogin() -> GetUniversalLoginTemplateResponseContent +
client.branding.phone.providers.get(id) -> GetBrandingPhoneProviderResponseContent +
+
+ +#### 📝 Description + +
+
+
+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. +
+
+
+
+ #### 🔌 Usage
@@ -16605,19 +17905,34 @@ Action to take when a suspicious IP throttling threshold is violated.
```java -client.branding().templates().getUniversalLogin(); +client.branding().phone().providers().get("id"); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` + +
+
+
+
+
-
client.branding.templates.updateUniversalLogin(request) +
client.branding.phone.providers.delete(id)
@@ -16629,30 +17944,7 @@ client.branding().templates().getUniversalLogin();
-Update the Universal Login branding template. - -When `content-type` header is set to `application/json`: - -```json -{ - "template": "{% assign resolved_dir = dir | default: \"auto\" %}{%- auth0:head -%}{%- auth0:widget -%}" -} -``` - -When `content-type` header is set to `text/html`: - -```html - -{% assign resolved_dir = dir | default: "auto" %} - - - {%- auth0:head -%} - - - {%- auth0:widget -%} - - -``` +Delete the configured phone provider.
@@ -16667,9 +17959,7 @@ When `content-type` header is set to `text/html`:
```java -client.branding().templates().updateUniversalLogin( - UpdateUniversalLoginTemplateRequestContent.of("string") -); +client.branding().phone().providers().delete("id"); ```
@@ -16684,7 +17974,7 @@ client.branding().templates().updateUniversalLogin(
-**request:** `UpdateUniversalLoginTemplateRequestContent` +**id:** `String`
@@ -16696,11 +17986,11 @@ client.branding().templates().updateUniversalLogin(
-
client.branding.templates.deleteUniversalLogin() +
client.branding.phone.providers.update(id, request) -> UpdateBrandingPhoneProviderResponseContent
-#### 🔌 Usage +#### 📝 Description
@@ -16708,25 +17998,14 @@ client.branding().templates().updateUniversalLogin(
-```java -client.branding().templates().deleteUniversalLogin(); -``` -
-
+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).
- -
-
- -## Branding Themes -
client.branding.themes.create(request) -> CreateBrandingThemeResponseContent -
-
-#### 📝 Description +#### 🔌 Usage
@@ -16734,13 +18013,20 @@ client.branding().templates().deleteUniversalLogin();
-Create branding theme. +```java +client.branding().phone().providers().update( + "id", + UpdateBrandingPhoneProviderRequestContent + .builder() + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -16748,130 +18034,31 @@ Create branding theme.
-```java -client.branding().themes().create( - CreateBrandingThemeRequestContent - .builder() - .borders( - BrandingThemeBorders - .builder() - .buttonBorderRadius(1.1) - .buttonBorderWeight(1.1) - .buttonsStyle(BrandingThemeBordersButtonsStyleEnum.PILL) - .inputBorderRadius(1.1) - .inputBorderWeight(1.1) - .inputsStyle(BrandingThemeBordersInputsStyleEnum.PILL) - .showWidgetShadow(true) - .widgetBorderWeight(1.1) - .widgetCornerRadius(1.1) - .build() - ) - .colors( - BrandingThemeColors - .builder() - .bodyText("body_text") - .error("error") - .header("header") - .icons("icons") - .inputBackground("input_background") - .inputBorder("input_border") - .inputFilledText("input_filled_text") - .inputLabelsPlaceholders("input_labels_placeholders") - .linksFocusedComponents("links_focused_components") - .primaryButton("primary_button") - .primaryButtonLabel("primary_button_label") - .secondaryButtonBorder("secondary_button_border") - .secondaryButtonLabel("secondary_button_label") - .success("success") - .widgetBackground("widget_background") - .widgetBorder("widget_border") - .build() - ) - .fonts( - BrandingThemeFonts - .builder() - .bodyText( - BrandingThemeFontBodyText - .builder() - .bold(true) - .size(1.1) - .build() - ) - .buttonsText( - BrandingThemeFontButtonsText - .builder() - .bold(true) - .size(1.1) - .build() - ) - .fontUrl("font_url") - .inputLabels( - BrandingThemeFontInputLabels - .builder() - .bold(true) - .size(1.1) - .build() - ) - .links( - BrandingThemeFontLinks - .builder() - .bold(true) - .size(1.1) - .build() - ) - .linksStyle(BrandingThemeFontLinksStyleEnum.NORMAL) - .referenceTextSize(1.1) - .subtitle( - BrandingThemeFontSubtitle - .builder() - .bold(true) - .size(1.1) - .build() - ) - .title( - BrandingThemeFontTitle - .builder() - .bold(true) - .size(1.1) - .build() - ) - .build() - ) - .pageBackground( - BrandingThemePageBackground - .builder() - .backgroundColor("background_color") - .backgroundImageUrl("background_image_url") - .pageLayout(BrandingThemePageBackgroundPageLayoutEnum.CENTER) - .build() - ) - .widget( - BrandingThemeWidget - .builder() - .headerTextAlignment(BrandingThemeWidgetHeaderTextAlignmentEnum.CENTER) - .logoHeight(1.1) - .logoPosition(BrandingThemeWidgetLogoPositionEnum.CENTER) - .logoUrl("logo_url") - .socialButtonsLayout(BrandingThemeWidgetSocialButtonsLayoutEnum.BOTTOM) - .build() - ) - .build() -); -``` +**id:** `String` +
+ +
+
+ +**name:** `Optional` +
-#### ⚙️ Parameters -
+**disabled:** `Optional` — Whether the provider is enabled (false) or disabled (true). + +
+
+
-**borders:** `BrandingThemeBorders` +**credentials:** `Optional`
@@ -16879,31 +18066,53 @@ client.branding().themes().create(
-**colors:** `BrandingThemeColors` +**configuration:** `Optional`
+
+
+ + +
+
+
+ +
client.branding.phone.providers.test(id, request) -> CreatePhoneProviderSendTestResponseContent +
+
+ +#### 🔌 Usage + +
+
-**displayName:** `Optional` — Display Name - +```java +client.branding().phone().providers().test( + "id", + CreatePhoneProviderSendTestRequestContent + .builder() + .to("to") + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**fonts:** `BrandingThemeFonts` - -
-
-
-**identifiers:** `Optional` +**id:** `String`
@@ -16911,7 +18120,7 @@ client.branding().themes().create(
-**pageBackground:** `BrandingThemePageBackground` +**to:** `String` — The recipient phone number to receive a given notification.
@@ -16919,7 +18128,7 @@ client.branding().themes().create(
-**widget:** `BrandingThemeWidget` +**deliveryMethod:** `Optional`
@@ -16931,11 +18140,12 @@ client.branding().themes().create(
-
client.branding.themes.getDefault() -> GetBrandingDefaultThemeResponseContent +## Branding Phone Templates +
client.branding.phone.templates.list() -> ListPhoneTemplatesResponseContent
-#### 📝 Description +#### 🔌 Usage
@@ -16943,13 +18153,20 @@ client.branding().themes().create(
-Retrieve default branding theme. +```java +client.branding().phone().templates().list( + ListPhoneTemplatesRequestParameters + .builder() + .disabled(true) + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -16957,9 +18174,8 @@ Retrieve default branding theme.
-```java -client.branding().themes().getDefault(); -``` +**disabled:** `Optional` — Whether the template is enabled (false) or disabled (true). +
@@ -16970,11 +18186,11 @@ client.branding().themes().getDefault();
-
client.branding.themes.get(themeId) -> GetBrandingThemeResponseContent +
client.branding.phone.templates.create(request) -> CreatePhoneTemplateResponseContent
-#### 📝 Description +#### 🔌 Usage
@@ -16982,13 +18198,19 @@ client.branding().themes().getDefault();
-Retrieve branding theme. +```java +client.branding().phone().templates().create( + CreatePhoneTemplateRequestContent + .builder() + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -16996,23 +18218,23 @@ Retrieve branding theme.
-```java -client.branding().themes().get("themeId"); -``` -
-
+**type:** `Optional` +
-#### ⚙️ Parameters -
+**disabled:** `Optional` — Whether the template is enabled (false) or disabled (true). + +
+
+
-**themeId:** `String` — The ID of the theme +**content:** `Optional`
@@ -17024,24 +18246,10 @@ client.branding().themes().get("themeId");
-
client.branding.themes.delete(themeId) -
-
- -#### 📝 Description - -
-
- +
client.branding.phone.templates.get(id) -> GetPhoneTemplateResponseContent
-Delete branding theme. -
-
-
-
- #### 🔌 Usage
@@ -17051,7 +18259,7 @@ Delete branding theme.
```java -client.branding().themes().delete("themeId"); +client.branding().phone().templates().get("id"); ```
@@ -17066,7 +18274,7 @@ client.branding().themes().delete("themeId");
-**themeId:** `String` — The ID of the theme +**id:** `String`
@@ -17078,24 +18286,10 @@ client.branding().themes().delete("themeId");
-
client.branding.themes.update(themeId, request) -> UpdateBrandingThemeResponseContent -
-
- -#### 📝 Description - -
-
- +
client.branding.phone.templates.delete(id)
-Update branding theme. -
-
-
-
- #### 🔌 Usage
@@ -17105,115 +18299,7 @@ Update branding theme.
```java -client.branding().themes().update( - "themeId", - UpdateBrandingThemeRequestContent - .builder() - .borders( - BrandingThemeBorders - .builder() - .buttonBorderRadius(1.1) - .buttonBorderWeight(1.1) - .buttonsStyle(BrandingThemeBordersButtonsStyleEnum.PILL) - .inputBorderRadius(1.1) - .inputBorderWeight(1.1) - .inputsStyle(BrandingThemeBordersInputsStyleEnum.PILL) - .showWidgetShadow(true) - .widgetBorderWeight(1.1) - .widgetCornerRadius(1.1) - .build() - ) - .colors( - BrandingThemeColors - .builder() - .bodyText("body_text") - .error("error") - .header("header") - .icons("icons") - .inputBackground("input_background") - .inputBorder("input_border") - .inputFilledText("input_filled_text") - .inputLabelsPlaceholders("input_labels_placeholders") - .linksFocusedComponents("links_focused_components") - .primaryButton("primary_button") - .primaryButtonLabel("primary_button_label") - .secondaryButtonBorder("secondary_button_border") - .secondaryButtonLabel("secondary_button_label") - .success("success") - .widgetBackground("widget_background") - .widgetBorder("widget_border") - .build() - ) - .fonts( - BrandingThemeFonts - .builder() - .bodyText( - BrandingThemeFontBodyText - .builder() - .bold(true) - .size(1.1) - .build() - ) - .buttonsText( - BrandingThemeFontButtonsText - .builder() - .bold(true) - .size(1.1) - .build() - ) - .fontUrl("font_url") - .inputLabels( - BrandingThemeFontInputLabels - .builder() - .bold(true) - .size(1.1) - .build() - ) - .links( - BrandingThemeFontLinks - .builder() - .bold(true) - .size(1.1) - .build() - ) - .linksStyle(BrandingThemeFontLinksStyleEnum.NORMAL) - .referenceTextSize(1.1) - .subtitle( - BrandingThemeFontSubtitle - .builder() - .bold(true) - .size(1.1) - .build() - ) - .title( - BrandingThemeFontTitle - .builder() - .bold(true) - .size(1.1) - .build() - ) - .build() - ) - .pageBackground( - BrandingThemePageBackground - .builder() - .backgroundColor("background_color") - .backgroundImageUrl("background_image_url") - .pageLayout(BrandingThemePageBackgroundPageLayoutEnum.CENTER) - .build() - ) - .widget( - BrandingThemeWidget - .builder() - .headerTextAlignment(BrandingThemeWidgetHeaderTextAlignmentEnum.CENTER) - .logoHeight(1.1) - .logoPosition(BrandingThemeWidgetLogoPositionEnum.CENTER) - .logoUrl("logo_url") - .socialButtonsLayout(BrandingThemeWidgetSocialButtonsLayoutEnum.BOTTOM) - .build() - ) - .build() -); +client.branding().phone().templates().delete("id"); ```
@@ -17228,47 +18314,52 @@ client.branding().themes().update(
-**themeId:** `String` — The ID of the theme +**id:** `String`
+
+
-
-
-**borders:** `BrandingThemeBorders` -
+
+
client.branding.phone.templates.update(id, request) -> UpdatePhoneTemplateResponseContent
-**colors:** `BrandingThemeColors` - -
-
+#### 🔌 Usage
-**displayName:** `Optional` — Display Name - +
+
+ +```java +client.branding().phone().templates().update( + "id", + UpdatePhoneTemplateRequestContent + .builder() + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**fonts:** `BrandingThemeFonts` - -
-
-
-**identifiers:** `Optional` +**id:** `String`
@@ -17276,7 +18367,7 @@ client.branding().themes().update(
-**pageBackground:** `BrandingThemePageBackground` +**content:** `Optional`
@@ -17284,7 +18375,7 @@ client.branding().themes().update(
-**widget:** `BrandingThemeWidget` +**disabled:** `Optional` — Whether the template is enabled (false) or disabled (true).
@@ -17296,12 +18387,11 @@ client.branding().themes().update(
-## Branding Phone Providers -
client.branding.phone.providers.list() -> ListBrandingPhoneProvidersResponseContent +
client.branding.phone.templates.reset(id, request) -> ResetPhoneTemplateResponseContent
-#### 📝 Description +#### 🔌 Usage
@@ -17309,13 +18399,20 @@ client.branding().themes().update(
-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. +```java +client.branding().phone().templates().reset( + "id", + ResetPhoneTemplateRequestContent.of(new + HashMap() {{put("key", "value"); + }}) +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -17323,28 +18420,15 @@ Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-mess
-```java -client.branding().phone().providers().list( - ListBrandingPhoneProvidersRequestParameters - .builder() - .disabled(true) - .build() -); -``` -
-
+**id:** `String` +
-#### ⚙️ Parameters - -
-
-
-**disabled:** `Optional` — Whether the provider is enabled (false) or disabled (true). +**request:** `Object`
@@ -17356,25 +18440,10 @@ client.branding().phone().providers().list(
-
client.branding.phone.providers.create(request) -> CreateBrandingPhoneProviderResponseContent -
-
- -#### 📝 Description - -
-
- +
client.branding.phone.templates.test(id, request) -> CreatePhoneTemplateTestNotificationResponseContent
-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). -
-
-
-
- #### 🔌 Usage
@@ -17384,18 +18453,11 @@ The `credentials` object requires different properties depending on the phone pr
```java -client.branding().phone().providers().create( - CreateBrandingPhoneProviderRequestContent +client.branding().phone().templates().test( + "id", + CreatePhoneTemplateTestNotificationRequestContent .builder() - .name(PhoneProviderNameEnum.TWILIO) - .credentials( - PhoneProviderCredentials.of( - TwilioProviderCredentials - .builder() - .authToken("auth_token") - .build() - ) - ) + .to("to") .build() ); ``` @@ -17412,15 +18474,7 @@ client.branding().phone().providers().create(
-**name:** `PhoneProviderNameEnum` - -
-
- -
-
- -**disabled:** `Optional` — Whether the provider is enabled (false) or disabled (true). +**id:** `String`
@@ -17428,7 +18482,7 @@ client.branding().phone().providers().create(
-**configuration:** `Optional` +**to:** `String` — Destination of the testing phone notification
@@ -17436,7 +18490,7 @@ client.branding().phone().providers().create(
-**credentials:** `PhoneProviderCredentials` +**deliveryMethod:** `Optional` — Medium to use to send the notification
@@ -17448,11 +18502,12 @@ client.branding().phone().providers().create(
-
client.branding.phone.providers.get(id) -> GetBrandingPhoneProviderResponseContent +## ClientGrants Organizations +
client.clientGrants.organizations.list(id) -> SyncPagingIterable&lt;Organization&gt;
-#### 📝 Description +#### 🔌 Usage
@@ -17460,13 +18515,23 @@ client.branding().phone().providers().create(
-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. +```java +client.clientGrants().organizations().list( + "id", + ListClientGrantOrganizationsRequestParameters + .builder() + .includeTotals(true) + .from("from") + .take(1) + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -17474,23 +18539,31 @@ Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/config
-```java -client.branding().phone().providers().get("id"); -``` +**id:** `String` — ID of the client grant +
+ +
+
+ +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +
-#### ⚙️ Parameters -
+**from:** `Optional` — Optional Id from which to start selection. + +
+
+
-**id:** `String` +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -17502,7 +18575,8 @@ client.branding().phone().providers().get("id");
-
client.branding.phone.providers.delete(id) +## Clients Credentials +
client.clients.credentials.list(clientId) -> List&lt;ClientCredential&gt;
@@ -17514,7 +18588,9 @@ client.branding().phone().providers().get("id");
-Delete the configured phone provider. +Get the details of a client credential. + +**Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client.
@@ -17529,7 +18605,7 @@ Delete the configured phone provider.
```java -client.branding().phone().providers().delete("id"); +client.clients().credentials().list("client_id"); ```
@@ -17544,7 +18620,7 @@ client.branding().phone().providers().delete("id");
-**id:** `String` +**clientId:** `String` — ID of the client.
@@ -17556,7 +18632,7 @@ client.branding().phone().providers().delete("id");
-
client.branding.phone.providers.update(id, request) -> UpdateBrandingPhoneProviderResponseContent +
client.clients.credentials.create(clientId, request) -> PostClientCredentialResponseContent
@@ -17568,89 +18644,67 @@ client.branding().phone().providers().delete("id");
-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). -
-
-
-
+Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. -#### 🔌 Usage +**Public Key** -
-
+Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests. -
-
+Sample: -```java -client.branding().phone().providers().update( - "id", - UpdateBrandingPhoneProviderRequestContent - .builder() - .build() -); +```json +{ + "credential_type": "public_key", + "name": "string", + "pem": "string", + "alg": "RS256", + "parse_expiry_from_cert": false, + "expires_at": "2022-12-31T23:59:59Z" +} ``` -
-
-
-
- -#### ⚙️ Parameters - -
-
-
-
+**Certificate (CA-signed & self-signed)** -**id:** `String` - -
-
+Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN. -
-
+CA-signed Certificate Sample (pem): -**name:** `Optional` - -
-
+```json +{ + "credential_type": "x509_cert", + "name": "string", + "pem": "string" +} +``` -
-
+CA-signed Certificate Sample (subject_dn): -**disabled:** `Optional` — Whether the provider is enabled (false) or disabled (true). - -
-
+```json +{ + "credential_type": "cert_subject_dn", + "name": "string", + "subject_dn": "string" +} +``` -
-
+Self-signed Certificate Sample: -**credentials:** `Optional` - -
-
+```json +{ + "credential_type": "cert_subject_dn", + "name": "string", + "pem": "string" +} +``` -
-
+The credential will be created but not yet enabled for use until you set the corresponding properties in the client: -**configuration:** `Optional` - -
-
+- To enable the credential for Private Key JWT or mTLS authentication methods, set the `client_authentication_methods` property on the client. For more information, read [Configure Private Key JWT Authentication](https://auth0.com/docs/get-started/applications/configure-private-key-jwt) and [Configure mTLS Authentication](https://auth0.com/docs/get-started/applications/configure-mtls) +- To enable the credential for JWT-secured Authorization requests, set the `signed_request_object`property on the client. For more information, read [Configure JWT-secured Authorization Requests (JAR)](https://auth0.com/docs/get-started/applications/configure-jar)
- - -
- -
client.branding.phone.providers.test(id, request) -> CreatePhoneProviderSendTestResponseContent -
-
#### 🔌 Usage @@ -17659,13 +18713,13 @@ client.branding().phone().providers().update(
- -```java -client.branding().phone().providers().test( - "id", - CreatePhoneProviderSendTestRequestContent + +```java +client.clients().credentials().create( + "client_id", + PostClientCredentialRequestContent .builder() - .to("to") + .credentialType(ClientCredentialTypeEnum.PUBLIC_KEY) .build() ); ``` @@ -17682,7 +18736,7 @@ client.branding().phone().providers().test(
-**id:** `String` +**clientId:** `String` — ID of the client.
@@ -17690,7 +18744,7 @@ client.branding().phone().providers().test(
-**to:** `String` — The recipient phone number to receive a given notification. +**credentialType:** `ClientCredentialTypeEnum`
@@ -17698,53 +18752,55 @@ client.branding().phone().providers().test(
-**deliveryMethod:** `Optional` +**name:** `Optional` — Friendly name for a credential.
-
-
+
+
+**subjectDn:** `Optional` — Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. +
-
-## Branding Phone Templates -
client.branding.phone.templates.list() -> ListPhoneTemplatesResponseContent
-#### 🔌 Usage +**pem:** `Optional` — PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. + +
+
+**alg:** `Optional` + +
+
+
-```java -client.branding().phone().templates().list( - ListPhoneTemplatesRequestParameters - .builder() - .disabled(true) - .build() -); -``` -
-
+**parseExpiryFromCert:** `Optional` — Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. + -#### ⚙️ Parameters -
+**expiresAt:** `Optional` — The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. + +
+
+
-**disabled:** `Optional` — Whether the template is enabled (false) or disabled (true). +**kid:** `Optional` — Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}
@@ -17756,11 +18812,11 @@ client.branding().phone().templates().list(
-
client.branding.phone.templates.create(request) -> CreatePhoneTemplateResponseContent +
client.clients.credentials.get(clientId, credentialId) -> GetClientCredentialResponseContent
-#### 🔌 Usage +#### 📝 Description
@@ -17768,19 +18824,15 @@ client.branding().phone().templates().list(
-```java -client.branding().phone().templates().create( - CreatePhoneTemplateRequestContent - .builder() - .build() -); -``` +Get the details of a client credential. + +**Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client.
-#### ⚙️ Parameters +#### 🔌 Usage
@@ -17788,15 +18840,23 @@ client.branding().phone().templates().create(
-**type:** `Optional` - +```java +client.clients().credentials().get("client_id", "credential_id"); +``` +
+
+#### ⚙️ Parameters +
-**disabled:** `Optional` — Whether the template is enabled (false) or disabled (true). +
+
+ +**clientId:** `String` — ID of the client.
@@ -17804,7 +18864,7 @@ client.branding().phone().templates().create(
-**content:** `Optional` +**credentialId:** `String` — ID of the credential.
@@ -17816,11 +18876,11 @@ client.branding().phone().templates().create(
-
client.branding.phone.templates.get(id) -> GetPhoneTemplateResponseContent +
client.clients.credentials.delete(clientId, credentialId)
-#### 🔌 Usage +#### 📝 Description
@@ -17828,15 +18888,13 @@ client.branding().phone().templates().create(
-```java -client.branding().phone().templates().get("id"); -``` +Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow.
-#### ⚙️ Parameters +#### 🔌 Usage
@@ -17844,23 +18902,15 @@ client.branding().phone().templates().get("id");
-**id:** `String` - -
-
+```java +client.clients().credentials().delete("client_id", "credential_id"); +```
- -
-
- -
client.branding.phone.templates.delete(id) -
-
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -17868,23 +18918,15 @@ client.branding().phone().templates().get("id");
-```java -client.branding().phone().templates().delete("id"); -``` -
-
+**clientId:** `String` — ID of the client. +
-#### ⚙️ Parameters -
-
-
- -**id:** `String` +**credentialId:** `String` — ID of the credential to delete.
@@ -17896,10 +18938,24 @@ client.branding().phone().templates().delete("id");
-
client.branding.phone.templates.update(id, request) -> UpdatePhoneTemplateResponseContent +
client.clients.credentials.update(clientId, credentialId, request) -> PatchClientCredentialResponseContent +
+
+ +#### 📝 Description +
+
+
+ +Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. +
+
+
+
+ #### 🔌 Usage
@@ -17909,9 +18965,10 @@ client.branding().phone().templates().delete("id");
```java -client.branding().phone().templates().update( - "id", - UpdatePhoneTemplateRequestContent +client.clients().credentials().update( + "client_id", + "credential_id", + PatchClientCredentialRequestContent .builder() .build() ); @@ -17929,7 +18986,7 @@ client.branding().phone().templates().update(
-**id:** `String` +**clientId:** `String` — ID of the client.
@@ -17937,7 +18994,7 @@ client.branding().phone().templates().update(
-**content:** `Optional` +**credentialId:** `String` — ID of the credential.
@@ -17945,7 +19002,7 @@ client.branding().phone().templates().update(
-**disabled:** `Optional` — Whether the template is enabled (false) or disabled (true). +**expiresAt:** `Optional` — The ISO 8601 formatted date representing the expiration of the credential.
@@ -17957,10 +19014,28 @@ client.branding().phone().templates().update(
-
client.branding.phone.templates.reset(id, request) -> ResetPhoneTemplateResponseContent +## Clients Connections +
client.clients.connections.get(id) -> SyncPagingIterable&lt;ConnectionForList&gt; +
+
+ +#### 📝 Description + +
+
+
+Retrieve all connections that are enabled for the specified [Application](https://www.auth0.com/docs/get-started/applications), using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + +- This endpoint requires the `read:connections` scope and any one of `read:clients` or `read:client_summary`. +- **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. +
+
+
+
+ #### 🔌 Usage
@@ -17970,11 +19045,18 @@ client.branding().phone().templates().update(
```java -client.branding().phone().templates().reset( +client.clients().connections().get( "id", - ResetPhoneTemplateRequestContent.of(new - HashMap() {{put("key", "value"); - }}) + ConnectionsGetRequest + .builder() + .from("from") + .take(1) + .fields("fields") + .includeFields(true) + .strategy( + Arrays.asList(ConnectionStrategyEnum.AD) + ) + .build() ); ```
@@ -17990,7 +19072,7 @@ client.branding().phone().templates().reset(
-**id:** `String` +**id:** `String` — ID of the client for which to retrieve enabled connections.
@@ -17998,53 +19080,23 @@ client.branding().phone().templates().reset(
-**request:** `Object` +**strategy:** `Optional` — Provide strategies to only retrieve connections with such strategies
-
-
- - - - -
- -
client.branding.phone.templates.test(id, request) -> CreatePhoneTemplateTestNotificationResponseContent -
-
- -#### 🔌 Usage - -
-
-```java -client.branding().phone().templates().test( - "id", - CreatePhoneTemplateTestNotificationRequestContent - .builder() - .to("to") - .build() -); -``` -
-
+**from:** `Optional` — Optional Id from which to start selection. +
-#### ⚙️ Parameters -
-
-
- -**id:** `String` +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -18052,7 +19104,7 @@ client.branding().phone().templates().test(
-**to:** `String` — Destination of the testing phone notification +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields
@@ -18060,7 +19112,7 @@ client.branding().phone().templates().test(
-**deliveryMethod:** `Optional` — Medium to use to send the notification +**includeFields:** `Optional` — true if the fields specified are to be included in the result, false otherwise (defaults to true)
@@ -18072,12 +19124,12 @@ client.branding().phone().templates().test(
-## ClientGrants Organizations -
client.clientGrants.organizations.list(id) -> SyncPagingIterable&lt;Organization&gt; +## Connections DirectoryProvisioning +
client.connections.directoryProvisioning.list() -> SyncPagingIterable&lt;DirectoryProvisioning&gt;
-#### 🔌 Usage +#### 📝 Description
@@ -18085,10 +19137,23 @@ client.branding().phone().templates().test(
-```java -client.clientGrants().organizations().list( - "id", - ListClientGrantOrganizationsRequestParameters +Retrieve a list of directory provisioning configurations of a tenant. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.connections().directoryProvisioning().list( + ListDirectoryProvisioningsRequestParameters .builder() .from("from") .take(1) @@ -18108,14 +19173,6 @@ client.clientGrants().organizations().list(
-**id:** `String` — ID of the client grant - -
-
- -
-
- **from:** `Optional` — Optional Id from which to start selection.
@@ -18136,8 +19193,7 @@ client.clientGrants().organizations().list(
-## Clients Credentials -
client.clients.credentials.list(clientId) -> List&lt;ClientCredential&gt; +
client.connections.directoryProvisioning.get(id) -> GetDirectoryProvisioningResponseContent
@@ -18149,9 +19205,7 @@ client.clientGrants().organizations().list(
-Get the details of a client credential. - -**Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. +Retrieve the directory provisioning configuration of a connection.
@@ -18166,7 +19220,7 @@ Get the details of a client credential.
```java -client.clients().credentials().list("client_id"); +client.connections().directoryProvisioning().get("id"); ```
@@ -18181,7 +19235,7 @@ client.clients().credentials().list("client_id");
-**clientId:** `String` — ID of the client. +**id:** `String` — The id of the connection to retrieve its directory provisioning configuration
@@ -18193,7 +19247,7 @@ client.clients().credentials().list("client_id");
-
client.clients.credentials.create(clientId, request) -> PostClientCredentialResponseContent +
client.connections.directoryProvisioning.create(id, request) -> CreateDirectoryProvisioningResponseContent
@@ -18205,63 +19259,7 @@ client.clients().credentials().list("client_id");
-Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - -**Public Key** - -Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests. - -Sample: - -```json -{ - "credential_type": "public_key", - "name": "string", - "pem": "string", - "alg": "RS256", - "parse_expiry_from_cert": false, - "expires_at": "2022-12-31T23:59:59Z" -} -``` - -**Certificate (CA-signed & self-signed)** - -Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN. - -CA-signed Certificate Sample (pem): - -```json -{ - "credential_type": "x509_cert", - "name": "string", - "pem": "string" -} -``` - -CA-signed Certificate Sample (subject_dn): - -```json -{ - "credential_type": "cert_subject_dn", - "name": "string", - "subject_dn": "string" -} -``` - -Self-signed Certificate Sample: - -```json -{ - "credential_type": "cert_subject_dn", - "name": "string", - "pem": "string" -} -``` - -The credential will be created but not yet enabled for use until you set the corresponding properties in the client: - -- To enable the credential for Private Key JWT or mTLS authentication methods, set the `client_authentication_methods` property on the client. For more information, read [Configure Private Key JWT Authentication](https://auth0.com/docs/get-started/applications/configure-private-key-jwt) and [Configure mTLS Authentication](https://auth0.com/docs/get-started/applications/configure-mtls) -- To enable the credential for JWT-secured Authorization requests, set the `signed_request_object`property on the client. For more information, read [Configure JWT-secured Authorization Requests (JAR)](https://auth0.com/docs/get-started/applications/configure-jar) +Create a directory provisioning configuration for a connection.
@@ -18276,12 +19274,13 @@ The credential will be created but not yet enabled for use until you set the cor
```java -client.clients().credentials().create( - "client_id", - PostClientCredentialRequestContent - .builder() - .credentialType(ClientCredentialTypeEnum.PUBLIC_KEY) - .build() +client.connections().directoryProvisioning().create( + "id", + OptionalNullable.of( + CreateDirectoryProvisioningRequestContent + .builder() + .build() + ) ); ```
@@ -18297,7 +19296,7 @@ client.clients().credentials().create(
-**clientId:** `String` — ID of the client. +**id:** `String` — The id of the connection to create its directory provisioning configuration
@@ -18305,63 +19304,61 @@ client.clients().credentials().create(
-**credentialType:** `ClientCredentialTypeEnum` +**request:** `Optional`
+ +
-
-
-**name:** `Optional` — Friendly name for a credential. -
+
+
client.connections.directoryProvisioning.delete(id)
-**subjectDn:** `Optional` — Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. - -
-
+#### 📝 Description
-**pem:** `Optional` — PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. - -
-
-
-**alg:** `Optional` - +Delete the directory provisioning configuration of a connection. +
+
+#### 🔌 Usage +
-**parseExpiryFromCert:** `Optional` — Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. - -
-
-
-**expiresAt:** `Optional` — The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. - +```java +client.connections().directoryProvisioning().delete("id"); +``` +
+
+#### ⚙️ Parameters +
-**kid:** `Optional` — Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} +
+
+ +**id:** `String` — The id of the connection to delete its directory provisioning configuration
@@ -18373,7 +19370,7 @@ client.clients().credentials().create(
-
client.clients.credentials.get(clientId, credentialId) -> GetClientCredentialResponseContent +
client.connections.directoryProvisioning.update(id, request) -> UpdateDirectoryProvisioningResponseContent
@@ -18385,9 +19382,7 @@ client.clients().credentials().create(
-Get the details of a client credential. - -**Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. +Update the directory provisioning configuration of a connection.
@@ -18402,7 +19397,14 @@ Get the details of a client credential.
```java -client.clients().credentials().get("client_id", "credential_id"); +client.connections().directoryProvisioning().update( + "id", + OptionalNullable.of( + UpdateDirectoryProvisioningRequestContent + .builder() + .build() + ) +); ```
@@ -18417,7 +19419,7 @@ client.clients().credentials().get("client_id", "credential_id");
-**clientId:** `String` — ID of the client. +**id:** `String` — The id of the connection to create its directory provisioning configuration
@@ -18425,7 +19427,7 @@ client.clients().credentials().get("client_id", "credential_id");
-**credentialId:** `String` — ID of the credential. +**request:** `Optional`
@@ -18437,7 +19439,7 @@ client.clients().credentials().get("client_id", "credential_id");
-
client.clients.credentials.delete(clientId, credentialId) +
client.connections.directoryProvisioning.getDefaultMapping(id) -> GetDirectoryProvisioningDefaultMappingResponseContent
@@ -18449,7 +19451,7 @@ client.clients().credentials().get("client_id", "credential_id");
-Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. +Retrieve the directory provisioning default attribute mapping of a connection.
@@ -18464,7 +19466,7 @@ Delete a client credential you previously created. May be enabled or disabled. F
```java -client.clients().credentials().delete("client_id", "credential_id"); +client.connections().directoryProvisioning().getDefaultMapping("id"); ```
@@ -18479,15 +19481,7 @@ client.clients().credentials().delete("client_id", "credential_id");
-**clientId:** `String` — ID of the client. - -
-
- -
-
- -**credentialId:** `String` — ID of the credential to delete. +**id:** `String` — The id of the connection to retrieve its directory provisioning configuration
@@ -18499,7 +19493,7 @@ client.clients().credentials().delete("client_id", "credential_id");
-
client.clients.credentials.update(clientId, credentialId, request) -> PatchClientCredentialResponseContent +
client.connections.directoryProvisioning.listSynchronizedGroups(id) -> SyncPagingIterable&lt;SynchronizedGroupPayload&gt;
@@ -18511,7 +19505,7 @@ client.clients().credentials().delete("client_id", "credential_id");
-Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. +Retrieve the configured synchronized groups for a connection directory provisioning configuration.
@@ -18526,11 +19520,13 @@ Change a client credential you previously created. May be enabled or disabled. F
```java -client.clients().credentials().update( - "client_id", - "credential_id", - PatchClientCredentialRequestContent +client.connections().directoryProvisioning().listSynchronizedGroups( + "id", + ListSynchronizedGroupsRequestParameters .builder() + .from("from") + .take(1) + .q("q") .build() ); ``` @@ -18547,7 +19543,7 @@ client.clients().credentials().update(
-**clientId:** `String` — ID of the client. +**id:** `String` — The id of the connection to list synchronized groups for.
@@ -18555,7 +19551,7 @@ client.clients().credentials().update(
-**credentialId:** `String` — ID of the credential. +**from:** `Optional` — Optional Id from which to start selection.
@@ -18563,7 +19559,15 @@ client.clients().credentials().update(
-**expiresAt:** `Optional` — The ISO 8601 formatted date representing the expiration of the credential. +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+ +
+
+ +**q:** `Optional` — Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*".
@@ -18575,8 +19579,7 @@ client.clients().credentials().update(
-## Clients Connections -
client.clients.connections.get(id) -> SyncPagingIterable&lt;ConnectionForList&gt; +
client.connections.directoryProvisioning.addSynchronizedGroupSelections(id, request)
@@ -18588,10 +19591,7 @@ client.clients().credentials().update(
-Retrieve all connections that are enabled for the specified [Application](https://www.auth0.com/docs/get-started/applications), using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - -- This endpoint requires the `read:connections` scope and any one of `read:clients` or `read:client_summary`. -- **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. +Add synchronized group selections to a directory provisioning configuration.
@@ -18606,16 +19606,17 @@ Retrieve all connections that are enabled for the specified [Application](https:
```java -client.clients().connections().get( +client.connections().directoryProvisioning().addSynchronizedGroupSelections( "id", - ConnectionsGetRequest + AddSynchronizedGroupsRequestContent .builder() - .from("from") - .take(1) - .fields("fields") - .includeFields(true) - .strategy( - Arrays.asList(ConnectionStrategyEnum.AD) + .groups( + Arrays.asList( + SynchronizedGroupPayload + .builder() + .id("id") + .build() + ) ) .build() ); @@ -18625,47 +19626,15 @@ client.clients().connections().get(
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — ID of the client for which to retrieve enabled connections. - -
-
- -
-
- -**strategy:** `Optional` — Provide strategies to only retrieve connections with such strategies - -
-
- -
-
- -**from:** `Optional` — Optional Id from which to start selection. - -
-
- +#### ⚙️ Parameters +
-**take:** `Optional` — Number of results per page. Defaults to 50. - -
-
-
-**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields +**id:** `String` — The id of the connection to add synchronized groups to
@@ -18673,7 +19642,7 @@ client.clients().connections().get(
-**includeFields:** `Optional` — true if the fields specified are to be included in the result, false otherwise (defaults to true) +**groups:** `List` — Array of Google Workspace Directory group objects to synchronize.
@@ -18685,8 +19654,7 @@ client.clients().connections().get(
-## Connections DirectoryProvisioning -
client.connections.directoryProvisioning.list() -> SyncPagingIterable&lt;DirectoryProvisioning&gt; +
client.connections.directoryProvisioning.set(id, request)
@@ -18698,7 +19666,7 @@ client.clients().connections().get(
-Retrieve a list of directory provisioning configurations of a tenant. +Create or replace the selected groups for a connection directory provisioning configuration.
@@ -18713,11 +19681,18 @@ Retrieve a list of directory provisioning configurations of a tenant.
```java -client.connections().directoryProvisioning().list( - ListDirectoryProvisioningsRequestParameters +client.connections().directoryProvisioning().set( + "id", + ReplaceSynchronizedGroupsRequestContent .builder() - .from("from") - .take(1) + .groups( + Arrays.asList( + SynchronizedGroupPayload + .builder() + .id("id") + .build() + ) + ) .build() ); ``` @@ -18734,7 +19709,7 @@ client.connections().directoryProvisioning().list(
-**from:** `Optional` — Optional Id from which to start selection. +**id:** `String` — The id of the connection to create or replace synchronized groups for
@@ -18742,7 +19717,7 @@ client.connections().directoryProvisioning().list(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**groups:** `List` — Array of Google Workspace Directory group objects to synchronize.
@@ -18754,7 +19729,7 @@ client.connections().directoryProvisioning().list(
-
client.connections.directoryProvisioning.get(id) -> GetDirectoryProvisioningResponseContent +
client.connections.directoryProvisioning.deleteSynchronizedGroupSelections(id, request)
@@ -18766,7 +19741,7 @@ client.connections().directoryProvisioning().list(
-Retrieve the directory provisioning configuration of a connection. +Delete synchronized group selections for a directory provisioning configuration
@@ -18781,7 +19756,20 @@ Retrieve the directory provisioning configuration of a connection.
```java -client.connections().directoryProvisioning().get("id"); +client.connections().directoryProvisioning().deleteSynchronizedGroupSelections( + "id", + DeleteSynchronizedGroupsRequestContent + .builder() + .groups( + Arrays.asList( + SynchronizedGroupSelectionId + .builder() + .id("id") + .build() + ) + ) + .build() +); ```
@@ -18796,7 +19784,15 @@ client.connections().directoryProvisioning().get("id");
-**id:** `String` — The id of the connection to retrieve its directory provisioning configuration +**id:** `String` — The id of the connection to delete synchronized group selections for + +
+
+ +
+
+ +**groups:** `List` — Array of groups to remove from the selection set.
@@ -18808,7 +19804,8 @@ client.connections().directoryProvisioning().get("id");
-
client.connections.directoryProvisioning.create(id, request) -> CreateDirectoryProvisioningResponseContent +## Connections ScimConfiguration +
client.connections.scimConfiguration.list() -> SyncPagingIterable&lt;ScimConfiguration&gt;
@@ -18820,7 +19817,7 @@ client.connections().directoryProvisioning().get("id");
-Create a directory provisioning configuration for a connection. +Retrieve a list of SCIM configurations of a tenant.
@@ -18835,13 +19832,12 @@ Create a directory provisioning configuration for a connection.
```java -client.connections().directoryProvisioning().create( - "id", - OptionalNullable.of( - CreateDirectoryProvisioningRequestContent - .builder() - .build() - ) +client.connections().scimConfiguration().list( + ListScimConfigurationsRequestParameters + .builder() + .from("from") + .take(1) + .build() ); ```
@@ -18857,7 +19853,7 @@ client.connections().directoryProvisioning().create(
-**id:** `String` — The id of the connection to create its directory provisioning configuration +**from:** `Optional` — Optional Id from which to start selection.
@@ -18865,7 +19861,7 @@ client.connections().directoryProvisioning().create(
-**request:** `Optional` +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -18877,7 +19873,7 @@ client.connections().directoryProvisioning().create(
-
client.connections.directoryProvisioning.delete(id) +
client.connections.scimConfiguration.get(id) -> GetScimConfigurationResponseContent
@@ -18889,7 +19885,7 @@ client.connections().directoryProvisioning().create(
-Delete the directory provisioning configuration of a connection. +Retrieves a scim configuration by its `connectionId`.
@@ -18904,7 +19900,7 @@ Delete the directory provisioning configuration of a connection.
```java -client.connections().directoryProvisioning().delete("id"); +client.connections().scimConfiguration().get("id"); ```
@@ -18919,7 +19915,7 @@ client.connections().directoryProvisioning().delete("id");
-**id:** `String` — The id of the connection to delete its directory provisioning configuration +**id:** `String` — The id of the connection to retrieve its SCIM configuration
@@ -18931,7 +19927,7 @@ client.connections().directoryProvisioning().delete("id");
-
client.connections.directoryProvisioning.update(id, request) -> UpdateDirectoryProvisioningResponseContent +
client.connections.scimConfiguration.create(id, request) -> CreateScimConfigurationResponseContent
@@ -18943,7 +19939,7 @@ client.connections().directoryProvisioning().delete("id");
-Update the directory provisioning configuration of a connection. +Create a scim configuration for a connection.
@@ -18958,10 +19954,10 @@ Update the directory provisioning configuration of a connection.
```java -client.connections().directoryProvisioning().update( +client.connections().scimConfiguration().create( "id", OptionalNullable.of( - UpdateDirectoryProvisioningRequestContent + CreateScimConfigurationRequestContent .builder() .build() ) @@ -18980,7 +19976,7 @@ client.connections().directoryProvisioning().update(
-**id:** `String` — The id of the connection to create its directory provisioning configuration +**id:** `String` — The id of the connection to create its SCIM configuration
@@ -18988,7 +19984,7 @@ client.connections().directoryProvisioning().update(
-**request:** `Optional` +**request:** `Optional`
@@ -19000,7 +19996,7 @@ client.connections().directoryProvisioning().update(
-
client.connections.directoryProvisioning.getDefaultMapping(id) -> GetDirectoryProvisioningDefaultMappingResponseContent +
client.connections.scimConfiguration.delete(id)
@@ -19012,7 +20008,7 @@ client.connections().directoryProvisioning().update(
-Retrieve the directory provisioning default attribute mapping of a connection. +Deletes a scim configuration by its `connectionId`.
@@ -19027,7 +20023,7 @@ Retrieve the directory provisioning default attribute mapping of a connection.
```java -client.connections().directoryProvisioning().getDefaultMapping("id"); +client.connections().scimConfiguration().delete("id"); ```
@@ -19042,7 +20038,7 @@ client.connections().directoryProvisioning().getDefaultMapping("id");
-**id:** `String` — The id of the connection to retrieve its directory provisioning configuration +**id:** `String` — The id of the connection to delete its SCIM configuration
@@ -19054,7 +20050,7 @@ client.connections().directoryProvisioning().getDefaultMapping("id");
-
client.connections.directoryProvisioning.listSynchronizedGroups(id) -> SyncPagingIterable&lt;SynchronizedGroupPayload&gt; +
client.connections.scimConfiguration.update(id, request) -> UpdateScimConfigurationResponseContent
@@ -19066,7 +20062,7 @@ client.connections().directoryProvisioning().getDefaultMapping("id");
-Retrieve the configured synchronized groups for a connection directory provisioning configuration. +Update a scim configuration by its `connectionId`.
@@ -19081,12 +20077,18 @@ Retrieve the configured synchronized groups for a connection directory provision
```java -client.connections().directoryProvisioning().listSynchronizedGroups( +client.connections().scimConfiguration().update( "id", - ListSynchronizedGroupsRequestParameters + UpdateScimConfigurationRequestContent .builder() - .from("from") - .take(1) + .userIdAttribute("user_id_attribute") + .mapping( + Arrays.asList( + ScimMappingItem + .builder() + .build() + ) + ) .build() ); ``` @@ -19103,7 +20105,7 @@ client.connections().directoryProvisioning().listSynchronizedGroups(
-**id:** `String` — The id of the connection to list synchronized groups for. +**id:** `String` — The id of the connection to update its SCIM configuration
@@ -19111,7 +20113,7 @@ client.connections().directoryProvisioning().listSynchronizedGroups(
-**from:** `Optional` — Optional Id from which to start selection. +**userIdAttribute:** `String` — User ID attribute for generating unique user ids
@@ -19119,7 +20121,7 @@ client.connections().directoryProvisioning().listSynchronizedGroups(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**mapping:** `List` — The mapping between auth0 and SCIM
@@ -19131,7 +20133,7 @@ client.connections().directoryProvisioning().listSynchronizedGroups(
-
client.connections.directoryProvisioning.set(id, request) +
client.connections.scimConfiguration.getDefaultMapping(id) -> GetScimConfigurationDefaultMappingResponseContent
@@ -19143,7 +20145,7 @@ client.connections().directoryProvisioning().listSynchronizedGroups(
-Create or replace the selected groups for a connection directory provisioning configuration. +Retrieves a scim configuration's default mapping by its `connectionId`.
@@ -19158,20 +20160,7 @@ Create or replace the selected groups for a connection directory provisioning co
```java -client.connections().directoryProvisioning().set( - "id", - ReplaceSynchronizedGroupsRequestContent - .builder() - .groups( - Arrays.asList( - SynchronizedGroupPayload - .builder() - .id("id") - .build() - ) - ) - .build() -); +client.connections().scimConfiguration().getDefaultMapping("id"); ```
@@ -19186,15 +20175,7 @@ client.connections().directoryProvisioning().set(
-**id:** `String` — The id of the connection to create or replace synchronized groups for - -
-
- -
-
- -**groups:** `List` — Array of Google Workspace Directory group objects to synchronize. +**id:** `String` — The id of the connection to retrieve its default SCIM mapping
@@ -19206,8 +20187,8 @@ client.connections().directoryProvisioning().set(
-## Connections ScimConfiguration -
client.connections.scimConfiguration.list() -> SyncPagingIterable&lt;ScimConfiguration&gt; +## Connections Clients +
client.connections.clients.get(id) -> SyncPagingIterable&lt;ConnectionEnabledClient&gt;
@@ -19219,7 +20200,9 @@ client.connections().directoryProvisioning().set(
-Retrieve a list of SCIM configurations of a tenant. +Retrieve all clients that have the specified [connection](https://auth0.com/docs/authenticate/identity-providers) enabled. + +**Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining.
@@ -19234,11 +20217,12 @@ Retrieve a list of SCIM configurations of a tenant.
```java -client.connections().scimConfiguration().list( - ListScimConfigurationsRequestParameters +client.connections().clients().get( + "id", + GetConnectionEnabledClientsRequestParameters .builder() - .from("from") .take(1) + .from("from") .build() ); ``` @@ -19255,7 +20239,7 @@ client.connections().scimConfiguration().list(
-**from:** `Optional` — Optional Id from which to start selection. +**id:** `String` — The id of the connection for which enabled clients are to be retrieved
@@ -19265,6 +20249,14 @@ client.connections().scimConfiguration().list( **take:** `Optional` — Number of results per page. Defaults to 50. +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. +
@@ -19275,7 +20267,65 @@ client.connections().scimConfiguration().list(
-
client.connections.scimConfiguration.get(id) -> GetScimConfigurationResponseContent +
client.connections.clients.update(id, request) +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.connections().clients().update( + "id", + Arrays.asList( + UpdateEnabledClientConnectionsRequestContentItem + .builder() + .clientId("client_id") + .status(true) + .build() + ) +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the connection to modify + +
+
+ +
+
+ +**request:** `List` + +
+
+
+
+ + +
+
+
+ +## Connections Keys +
client.connections.keys.get(id) -> List&lt;ConnectionKey&gt;
@@ -19287,7 +20337,7 @@ client.connections().scimConfiguration().list(
-Retrieves a scim configuration by its `connectionId`. +Gets the connection keys for the Okta or OIDC connection strategy.
@@ -19302,7 +20352,7 @@ Retrieves a scim configuration by its `connectionId`.
```java -client.connections().scimConfiguration().get("id"); +client.connections().keys().get("id"); ```
@@ -19317,7 +20367,7 @@ client.connections().scimConfiguration().get("id");
-**id:** `String` — The id of the connection to retrieve its SCIM configuration +**id:** `String` — ID of the connection
@@ -19329,7 +20379,7 @@ client.connections().scimConfiguration().get("id");
-
client.connections.scimConfiguration.create(id, request) -> CreateScimConfigurationResponseContent +
client.connections.keys.create(id, request) -> List&lt;PostConnectionsKeysResponseContentItem&gt;
@@ -19341,7 +20391,7 @@ client.connections().scimConfiguration().get("id");
-Create a scim configuration for a connection. +Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
@@ -19356,10 +20406,10 @@ Create a scim configuration for a connection.
```java -client.connections().scimConfiguration().create( +client.connections().keys().create( "id", OptionalNullable.of( - CreateScimConfigurationRequestContent + PostConnectionKeysRequestContent .builder() .build() ) @@ -19378,7 +20428,7 @@ client.connections().scimConfiguration().create(
-**id:** `String` — The id of the connection to create its SCIM configuration +**id:** `String` — ID of the connection
@@ -19386,7 +20436,7 @@ client.connections().scimConfiguration().create(
-**request:** `Optional` +**request:** `Optional`
@@ -19398,7 +20448,7 @@ client.connections().scimConfiguration().create(
-
client.connections.scimConfiguration.delete(id) +
client.connections.keys.rotate(id, request) -> RotateConnectionsKeysResponseContent
@@ -19410,7 +20460,7 @@ client.connections().scimConfiguration().create(
-Deletes a scim configuration by its `connectionId`. +Rotates the connection keys for the Okta or OIDC connection strategies.
@@ -19425,7 +20475,14 @@ Deletes a scim configuration by its `connectionId`.
```java -client.connections().scimConfiguration().delete("id"); +client.connections().keys().rotate( + "id", + OptionalNullable.of( + RotateConnectionKeysRequestContent + .builder() + .build() + ) +); ```
@@ -19440,7 +20497,15 @@ client.connections().scimConfiguration().delete("id");
-**id:** `String` — The id of the connection to delete its SCIM configuration +**id:** `String` — ID of the connection + +
+
+ +
+
+ +**request:** `Optional`
@@ -19452,7 +20517,8 @@ client.connections().scimConfiguration().delete("id");
-
client.connections.scimConfiguration.update(id, request) -> UpdateScimConfigurationResponseContent +## Connections Users +
client.connections.users.deleteByEmail(id)
@@ -19464,7 +20530,7 @@ client.connections().scimConfiguration().delete("id");
-Update a scim configuration by its `connectionId`. +Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported.
@@ -19479,18 +20545,11 @@ Update a scim configuration by its `connectionId`.
```java -client.connections().scimConfiguration().update( +client.connections().users().deleteByEmail( "id", - UpdateScimConfigurationRequestContent + DeleteConnectionUsersByEmailQueryParameters .builder() - .userIdAttribute("user_id_attribute") - .mapping( - Arrays.asList( - ScimMappingItem - .builder() - .build() - ) - ) + .email("email") .build() ); ``` @@ -19507,15 +20566,7 @@ client.connections().scimConfiguration().update(
-**id:** `String` — The id of the connection to update its SCIM configuration - -
-
- -
-
- -**userIdAttribute:** `String` — User ID attribute for generating unique user ids +**id:** `String` — The id of the connection (currently only database connections are supported)
@@ -19523,7 +20574,7 @@ client.connections().scimConfiguration().update(
-**mapping:** `List` — The mapping between auth0 and SCIM +**email:** `String` — The email of the user to delete
@@ -19535,7 +20586,8 @@ client.connections().scimConfiguration().update(
-
client.connections.scimConfiguration.getDefaultMapping(id) -> GetScimConfigurationDefaultMappingResponseContent +## Connections DirectoryProvisioning Synchronizations +
client.connections.directoryProvisioning.synchronizations.create(id) -> CreateDirectorySynchronizationResponseContent
@@ -19547,7 +20599,7 @@ client.connections().scimConfiguration().update(
-Retrieves a scim configuration's default mapping by its `connectionId`. +Request an on-demand synchronization of the directory.
@@ -19562,7 +20614,7 @@ Retrieves a scim configuration's default mapping by its `connectionId`.
```java -client.connections().scimConfiguration().getDefaultMapping("id"); +client.connections().directoryProvisioning().synchronizations().create("id"); ```
@@ -19577,7 +20629,7 @@ client.connections().scimConfiguration().getDefaultMapping("id");
-**id:** `String` — The id of the connection to retrieve its default SCIM mapping +**id:** `String` — The id of the connection to trigger synchronization for
@@ -19589,8 +20641,8 @@ client.connections().scimConfiguration().getDefaultMapping("id");
-## Connections Clients -
client.connections.clients.get(id) -> SyncPagingIterable&lt;ConnectionEnabledClient&gt; +## Connections ScimConfiguration Tokens +
client.connections.scimConfiguration.tokens.get(id) -> List&lt;ScimTokenItem&gt;
@@ -19602,9 +20654,7 @@ client.connections().scimConfiguration().getDefaultMapping("id");
-Retrieve all clients that have the specified [connection](https://auth0.com/docs/authenticate/identity-providers) enabled. - -**Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. +Retrieves all scim tokens by its connection `id`.
@@ -19619,14 +20669,7 @@ Retrieve all clients that have the specified [connection](https://auth0.com/docs
```java -client.connections().clients().get( - "id", - GetConnectionEnabledClientsRequestParameters - .builder() - .take(1) - .from("from") - .build() -); +client.connections().scimConfiguration().tokens().get("id"); ```
@@ -19641,23 +20684,7 @@ client.connections().clients().get(
-**id:** `String` — The id of the connection for which enabled clients are to be retrieved - -
-
- -
-
- -**take:** `Optional` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**from:** `Optional` — Optional Id from which to start selection. +**id:** `String` — The id of the connection to retrieve its SCIM configuration
@@ -19669,11 +20696,11 @@ client.connections().clients().get(
-
client.connections.clients.update(id, request) +
client.connections.scimConfiguration.tokens.create(id, request) -> CreateScimTokenResponseContent
-#### 🔌 Usage +#### 📝 Description
@@ -19681,57 +20708,34 @@ client.connections().clients().get(
-```java -client.connections().clients().update( - "id", - Arrays.asList( - UpdateEnabledClientConnectionsRequestContentItem - .builder() - .clientId("client_id") - .status(true) - .build() - ) -); -``` +Create a scim token for a scim client.
-#### ⚙️ Parameters - -
-
+#### 🔌 Usage
-**id:** `String` — The id of the connection to modify - -
-
-
-**request:** `List` - -
-
+```java +client.connections().scimConfiguration().tokens().create( + "id", + CreateScimTokenRequestContent + .builder() + .build() +); +```
- -
-
- -## Connections Keys -
client.connections.keys.get(id) -> List&lt;ConnectionKey&gt; -
-
-#### 📝 Description +#### ⚙️ Parameters
@@ -19739,37 +20743,23 @@ client.connections().clients().update(
-Gets the connection keys for the Okta or OIDC connection strategy. -
-
+**id:** `String` — The id of the connection to create its SCIM token +
-#### 🔌 Usage - -
-
-
-```java -client.connections().keys().get("id"); -``` -
-
+**scopes:** `Optional>` — The scopes of the scim token +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — ID of the connection +**tokenLifetime:** `Optional` — Lifetime of the token in seconds. Must be greater than 900
@@ -19781,7 +20771,7 @@ client.connections().keys().get("id");
-
client.connections.keys.create(id, request) -> List&lt;PostConnectionsKeysResponseContentItem&gt; +
client.connections.scimConfiguration.tokens.delete(id, tokenId)
@@ -19793,7 +20783,7 @@ client.connections().keys().get("id");
-Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions. +Deletes a scim token by its connection `id` and `tokenId`.
@@ -19808,14 +20798,7 @@ Provision initial connection keys for Okta or OIDC connection strategies. This e
```java -client.connections().keys().create( - "id", - OptionalNullable.of( - PostConnectionKeysRequestContent - .builder() - .build() - ) -); +client.connections().scimConfiguration().tokens().delete("id", "tokenId"); ```
@@ -19830,7 +20813,7 @@ client.connections().keys().create(
-**id:** `String` — ID of the connection +**id:** `String` — The connection id that owns the SCIM token to delete
@@ -19838,7 +20821,7 @@ client.connections().keys().create(
-**request:** `Optional` +**tokenId:** `String` — The id of the scim token to delete
@@ -19850,7 +20833,8 @@ client.connections().keys().create(
-
client.connections.keys.rotate(id, request) -> RotateConnectionsKeysResponseContent +## Emails Provider +
client.emails.provider.get() -> GetEmailProviderResponseContent
@@ -19862,7 +20846,7 @@ client.connections().keys().create(
-Rotates the connection keys for the Okta or OIDC connection strategies. +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.
@@ -19877,13 +20861,12 @@ Rotates the connection keys for the Okta or OIDC connection strategies.
```java -client.connections().keys().rotate( - "id", - OptionalNullable.of( - RotateConnectionKeysRequestContent - .builder() - .build() - ) +client.emails().provider().get( + GetEmailProviderRequestParameters + .builder() + .fields("fields") + .includeFields(true) + .build() ); ```
@@ -19899,7 +20882,7 @@ client.connections().keys().rotate(
-**id:** `String` — ID of the connection +**fields:** `Optional` — Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve `name` and `enabled`. Additional fields available include `credentials`, `default_from_address`, and `settings`.
@@ -19907,7 +20890,7 @@ client.connections().keys().rotate(
-**request:** `Optional` +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
@@ -19919,8 +20902,7 @@ client.connections().keys().rotate(
-## Connections Users -
client.connections.users.deleteByEmail(id) +
client.emails.provider.create(request) -> CreateEmailProviderResponseContent
@@ -19932,7 +20914,31 @@ client.connections().keys().rotate(
-Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported. +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.
@@ -19947,11 +20953,18 @@ Deletes a specified connection user by its email (you cannot delete all users fr
```java -client.connections().users().deleteByEmail( - "id", - DeleteConnectionUsersByEmailQueryParameters +client.emails().provider().create( + CreateEmailProviderRequestContent .builder() - .email("email") + .name(EmailProviderNameEnum.MAILGUN) + .credentials( + EmailProviderCredentialsSchema.of( + EmailProviderCredentialsSchemaZero + .builder() + .apiKey("api_key") + .build() + ) + ) .build() ); ``` @@ -19968,7 +20981,7 @@ client.connections().users().deleteByEmail(
-**id:** `String` — The id of the connection (currently only database connections are supported) +**name:** `EmailProviderNameEnum`
@@ -19976,62 +20989,31 @@ client.connections().users().deleteByEmail(
-**email:** `String` — The email of the user to delete +**enabled:** `Optional` — Whether the provider is enabled (true) or disabled (false).
-
-
- - - - -
- -## Connections DirectoryProvisioning Synchronizations -
client.connections.directoryProvisioning.synchronizations.create(id) -> CreateDirectorySynchronizationResponseContent -
-
- -#### 📝 Description - -
-
-Request an on-demand synchronization of the directory. -
-
+**defaultFromAddress:** `Optional` — Email address to use as "from" when no other address specified. +
-#### 🔌 Usage - -
-
-
-```java -client.connections().directoryProvisioning().synchronizations().create("id"); -``` -
-
+**credentials:** `EmailProviderCredentialsSchema` +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — The id of the connection to trigger synchronization for +**settings:** `Optional>`
@@ -20043,8 +21025,7 @@ client.connections().directoryProvisioning().synchronizations().create("id");
-## Connections ScimConfiguration Tokens -
client.connections.scimConfiguration.tokens.get(id) -> List&lt;ScimTokenItem&gt; +
client.emails.provider.delete()
@@ -20056,7 +21037,7 @@ client.connections().directoryProvisioning().synchronizations().create("id");
-Retrieves all scim tokens by its connection `id`. +Delete the email provider.
@@ -20071,34 +21052,19 @@ Retrieves all scim tokens by its connection `id`.
```java -client.connections().scimConfiguration().tokens().get("id"); +client.emails().provider().delete(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — The id of the connection to retrieve its SCIM configuration - -
-
-
-
-
-
client.connections.scimConfiguration.tokens.create(id, request) -> CreateScimTokenResponseContent +
client.emails.provider.update(request) -> UpdateEmailProviderResponseContent
@@ -20110,7 +21076,32 @@ client.connections().scimConfiguration().tokens().get("id");
-Create a scim token for a scim client. +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.
@@ -20125,9 +21116,8 @@ Create a scim token for a scim client.
```java -client.connections().scimConfiguration().tokens().create( - "id", - CreateScimTokenRequestContent +client.emails().provider().update( + UpdateEmailProviderRequestContent .builder() .build() ); @@ -20145,7 +21135,7 @@ client.connections().scimConfiguration().tokens().create(
-**id:** `String` — The id of the connection to create its SCIM token +**name:** `Optional`
@@ -20153,7 +21143,7 @@ client.connections().scimConfiguration().tokens().create(
-**scopes:** `Optional>` — The scopes of the scim token +**enabled:** `Optional` — Whether the provider is enabled (true) or disabled (false).
@@ -20161,35 +21151,38 @@ client.connections().scimConfiguration().tokens().create(
-**tokenLifetime:** `Optional` — Lifetime of the token in seconds. Must be greater than 900 +**defaultFromAddress:** `Optional` — Email address to use as "from" when no other address specified.
-
-
- - - -
- -
client.connections.scimConfiguration.tokens.delete(id, tokenId)
-#### 📝 Description - -
-
+**credentials:** `Optional` + +
+
-Deletes a scim token by its connection `id` and `tokenId`. +**settings:** `Optional>` + +
+
+ + +
+ +## EventStreams Deliveries +
client.eventStreams.deliveries.list(id) -> SyncPagingIterable&lt;EventStreamDelivery&gt; +
+
#### 🔌 Usage @@ -20200,7 +21193,18 @@ Deletes a scim token by its connection `id` and `tokenId`.
```java -client.connections().scimConfiguration().tokens().delete("id", "tokenId"); +client.eventStreams().deliveries().list( + "id", + ListEventStreamDeliveriesRequestParameters + .builder() + .statuses("statuses") + .eventTypes("event_types") + .dateFrom("date_from") + .dateTo("date_to") + .from("from") + .take(1) + .build() +); ```
@@ -20215,7 +21219,7 @@ client.connections().scimConfiguration().tokens().delete("id", "tokenId");
-**id:** `String` — The connection id that owns the SCIM token to delete +**id:** `String` — Unique identifier for the event stream.
@@ -20223,36 +21227,61 @@ client.connections().scimConfiguration().tokens().delete("id", "tokenId");
-**tokenId:** `String` — The id of the scim token to delete +**statuses:** `Optional` — Comma-separated list of statuses by which to filter
+ +
+
+ +**eventTypes:** `Optional` — Comma-separated list of event types by which to filter +
+
+
+**dateFrom:** `Optional` — An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. +
-
-## Emails Provider -
client.emails.provider.get() -> GetEmailProviderResponseContent
-#### 📝 Description +**dateTo:** `Optional` — An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. + +
+
+**from:** `Optional` — Optional Id from which to start selection. + +
+
+
-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. +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+ + +
+ +
client.eventStreams.deliveries.getHistory(id, eventId) -> GetEventStreamDeliveryHistoryResponseContent +
+
#### 🔌 Usage @@ -20263,13 +21292,7 @@ Retrieve details of the [email provider configuration](https://auth0.com/docs/cu
```java -client.emails().provider().get( - GetEmailProviderRequestParameters - .builder() - .fields("fields") - .includeFields(true) - .build() -); +client.eventStreams().deliveries().getHistory("id", "event_id"); ```
@@ -20284,7 +21307,7 @@ client.emails().provider().get(
-**fields:** `Optional` — Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve `name` and `enabled`. Additional fields available include `credentials`, `default_from_address`, and `settings`. +**id:** `String` — Unique identifier for the event stream.
@@ -20292,7 +21315,7 @@ client.emails().provider().get(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**eventId:** `String` — Unique identifier for the event
@@ -20304,48 +21327,11 @@ client.emails().provider().get(
-
client.emails.provider.create(request) -> CreateEmailProviderResponseContent -
-
- -#### 📝 Description - -
-
- +## EventStreams Redeliveries +
client.eventStreams.redeliveries.create(id, request) -> CreateEventStreamRedeliveryResponseContent
-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. -
-
-
-
- #### 🔌 Usage
@@ -20354,19 +21340,11 @@ options, which will be used when sending an email:
-```java -client.emails().provider().create( - CreateEmailProviderRequestContent - .builder() - .name(EmailProviderNameEnum.MAILGUN) - .credentials( - EmailProviderCredentialsSchema.of( - EmailProviderCredentialsSchemaZero - .builder() - .apiKey("api_key") - .build() - ) - ) +```java +client.eventStreams().redeliveries().create( + "id", + CreateEventStreamRedeliveryRequestContent + .builder() .build() ); ``` @@ -20383,7 +21361,7 @@ client.emails().provider().create(
-**name:** `EmailProviderNameEnum` +**id:** `String` — Unique identifier for the event stream.
@@ -20391,7 +21369,7 @@ client.emails().provider().create(
-**enabled:** `Optional` — Whether the provider is enabled (true) or disabled (false). +**dateFrom:** `Optional` — An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision.
@@ -20399,7 +21377,7 @@ client.emails().provider().create(
-**defaultFromAddress:** `Optional` — Email address to use as "from" when no other address specified. +**dateTo:** `Optional` — An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision.
@@ -20407,7 +21385,7 @@ client.emails().provider().create(
-**credentials:** `EmailProviderCredentialsSchema` +**statuses:** `Optional>` — Filter by status
@@ -20415,7 +21393,7 @@ client.emails().provider().create(
-**settings:** `Optional>` +**eventTypes:** `Optional>` — Filter by event type
@@ -20427,11 +21405,11 @@ client.emails().provider().create(
-
client.emails.provider.delete() +
client.eventStreams.redeliveries.createById(id, eventId)
-#### 📝 Description +#### 🔌 Usage
@@ -20439,13 +21417,15 @@ client.emails().provider().create(
-Delete the email provider. +```java +client.eventStreams().redeliveries().createById("id", "event_id"); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -20453,9 +21433,16 @@ Delete the email provider.
-```java -client.emails().provider().delete(); -``` +**id:** `String` — Unique identifier for the event stream. + +
+
+ +
+
+ +**eventId:** `String` — Unique identifier for the event +
@@ -20466,49 +21453,11 @@ client.emails().provider().delete();
-
client.emails.provider.update(request) -> UpdateEmailProviderResponseContent -
-
- -#### 📝 Description - -
-
- +## Flows Executions +
client.flows.executions.list(flowId) -> SyncPagingIterable&lt;FlowExecutionSummary&gt;
-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. -
-
-
-
- #### 🔌 Usage
@@ -20518,9 +21467,13 @@ options, which will be used when sending an email:
```java -client.emails().provider().update( - UpdateEmailProviderRequestContent +client.flows().executions().list( + "flow_id", + ListFlowExecutionsRequestParameters .builder() + .includeTotals(true) + .from("from") + .take(1) .build() ); ``` @@ -20537,15 +21490,7 @@ client.emails().provider().update(
-**name:** `Optional` - -
-
- -
-
- -**enabled:** `Optional` — Whether the provider is enabled (true) or disabled (false). +**flowId:** `String` — Flow id
@@ -20553,7 +21498,7 @@ client.emails().provider().update(
-**defaultFromAddress:** `Optional` — Email address to use as "from" when no other address specified. +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -20561,7 +21506,7 @@ client.emails().provider().update(
-**credentials:** `Optional` +**from:** `Optional` — Optional Id from which to start selection.
@@ -20569,7 +21514,7 @@ client.emails().provider().update(
-**settings:** `Optional>` +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -20581,8 +21526,7 @@ client.emails().provider().update(
-## EventStreams Deliveries -
client.eventStreams.deliveries.list(id) -> List&lt;EventStreamDelivery&gt; +
client.flows.executions.get(flowId, executionId) -> GetFlowExecutionResponseContent
@@ -20595,16 +21539,14 @@ client.emails().provider().update(
```java -client.eventStreams().deliveries().list( - "id", - ListEventStreamDeliveriesRequestParameters +client.flows().executions().get( + "flow_id", + "execution_id", + GetFlowExecutionRequestParameters .builder() - .statuses("statuses") - .eventTypes("event_types") - .dateFrom("date_from") - .dateTo("date_to") - .from("from") - .take(1) + .hydrate( + Arrays.asList(GetFlowExecutionRequestParametersHydrateEnum.DEBUG) + ) .build() ); ``` @@ -20621,7 +21563,7 @@ client.eventStreams().deliveries().list(
-**id:** `String` — Unique identifier for the event stream. +**flowId:** `String` — Flow id
@@ -20629,7 +21571,7 @@ client.eventStreams().deliveries().list(
-**statuses:** `Optional` — Comma-separated list of statuses by which to filter +**executionId:** `String` — Flow execution id
@@ -20637,31 +21579,47 @@ client.eventStreams().deliveries().list(
-**eventTypes:** `Optional` — Comma-separated list of event types by which to filter +**hydrate:** `Optional` — Hydration param
+
+
-
-
-**dateFrom:** `Optional` — An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. -
+
+ +
client.flows.executions.delete(flowId, executionId) +
+
+ +#### 🔌 Usage
-**dateTo:** `Optional` — An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - +
+
+ +```java +client.flows().executions().delete("flow_id", "execution_id"); +``` +
+
+#### ⚙️ Parameters +
-**from:** `Optional` — Optional Id from which to start selection. +
+
+ +**flowId:** `String` — Flows id
@@ -20669,7 +21627,7 @@ client.eventStreams().deliveries().list(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**executionId:** `String` — Flow execution identifier
@@ -20681,7 +21639,8 @@ client.eventStreams().deliveries().list(
-
client.eventStreams.deliveries.getHistory(id, eventId) -> GetEventStreamDeliveryHistoryResponseContent +## Flows Vault Connections +
client.flows.vault.connections.list() -> SyncPagingIterable&lt;FlowsVaultConnectionSummary&gt;
@@ -20694,7 +21653,14 @@ client.eventStreams().deliveries().list(
```java -client.eventStreams().deliveries().getHistory("id", "event_id"); +client.flows().vault().connections().list( + ListFlowsVaultConnectionsRequestParameters + .builder() + .page(1) + .perPage(1) + .includeTotals(true) + .build() +); ```
@@ -20709,7 +21675,7 @@ client.eventStreams().deliveries().getHistory("id", "event_id");
-**id:** `String` — Unique identifier for the event stream. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -20717,7 +21683,15 @@ client.eventStreams().deliveries().getHistory("id", "event_id");
-**eventId:** `String` — Unique identifier for the event +**perPage:** `Optional` — Number of results per page. Defaults to 50. + +
+
+ +
+
+ +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -20729,8 +21703,7 @@ client.eventStreams().deliveries().getHistory("id", "event_id");
-## EventStreams Redeliveries -
client.eventStreams.redeliveries.create(id, request) -> CreateEventStreamRedeliveryResponseContent +
client.flows.vault.connections.create(request) -> CreateFlowsVaultConnectionResponseContent
@@ -20743,11 +21716,24 @@ client.eventStreams().deliveries().getHistory("id", "event_id");
```java -client.eventStreams().redeliveries().create( - "id", - CreateEventStreamRedeliveryRequestContent - .builder() - .build() +client.flows().vault().connections().create( + CreateFlowsVaultConnectionRequestContent.of( + CreateFlowsVaultConnectionActivecampaign.of( + CreateFlowsVaultConnectionActivecampaignApiKey + .builder() + .name("name") + .appId(FlowsVaultConnectionAppIdActivecampaignEnum.ACTIVECAMPAIGN) + .setup( + FlowsVaultConnectioSetupApiKeyWithBaseUrl + .builder() + .type(FlowsVaultConnectioSetupTypeApiKeyEnum.API_KEY) + .apiKey("api_key") + .baseUrl("base_url") + .build() + ) + .build() + ) + ) ); ```
@@ -20763,39 +21749,47 @@ client.eventStreams().redeliveries().create(
-**id:** `String` — Unique identifier for the event stream. +**request:** `CreateFlowsVaultConnectionRequestContent`
+ +
-
-
-**dateFrom:** `Optional` — An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. -
+
+
client.flows.vault.connections.get(id) -> GetFlowsVaultConnectionResponseContent
-**dateTo:** `Optional` — An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - -
-
+#### 🔌 Usage
-**statuses:** `Optional>` — Filter by status - +
+
+ +```java +client.flows().vault().connections().get("id"); +``` +
+
+#### ⚙️ Parameters +
-**eventTypes:** `Optional>` — Filter by event type +
+
+ +**id:** `String` — Flows Vault connection ID
@@ -20807,7 +21801,7 @@ client.eventStreams().redeliveries().create(
-
client.eventStreams.redeliveries.createById(id, eventId) +
client.flows.vault.connections.delete(id)
@@ -20820,7 +21814,7 @@ client.eventStreams().redeliveries().create(
```java -client.eventStreams().redeliveries().createById("id", "event_id"); +client.flows().vault().connections().delete("id"); ```
@@ -20835,15 +21829,7 @@ client.eventStreams().redeliveries().createById("id", "event_id");
-**id:** `String` — Unique identifier for the event stream. - -
-
- -
-
- -**eventId:** `String` — Unique identifier for the event +**id:** `String` — Vault connection id
@@ -20855,8 +21841,7 @@ client.eventStreams().redeliveries().createById("id", "event_id");
-## Flows Executions -
client.flows.executions.list(flowId) -> SyncPagingIterable&lt;FlowExecutionSummary&gt; +
client.flows.vault.connections.update(id, request) -> UpdateFlowsVaultConnectionResponseContent
@@ -20869,12 +21854,10 @@ client.eventStreams().redeliveries().createById("id", "event_id");
```java -client.flows().executions().list( - "flow_id", - ListFlowExecutionsRequestParameters +client.flows().vault().connections().update( + "id", + UpdateFlowsVaultConnectionRequestContent .builder() - .from("from") - .take(1) .build() ); ``` @@ -20891,7 +21874,7 @@ client.flows().executions().list(
-**flowId:** `String` — Flow id +**id:** `String` — Flows Vault connection ID
@@ -20899,7 +21882,7 @@ client.flows().executions().list(
-**from:** `Optional` — Optional Id from which to start selection. +**name:** `Optional` — Flows Vault Connection name.
@@ -20907,7 +21890,7 @@ client.flows().executions().list(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**setup:** `Optional`
@@ -20919,10 +21902,25 @@ client.flows().executions().list(
-
client.flows.executions.get(flowId, executionId) -> GetFlowExecutionResponseContent +## Groups Members +
client.groups.members.get(id) -> SyncPagingIterable&lt;GroupMember&gt; +
+
+ +#### 📝 Description + +
+
+
+List all users that are a member of this group. +
+
+
+
+ #### 🔌 Usage
@@ -20932,14 +21930,14 @@ client.flows().executions().list(
```java -client.flows().executions().get( - "flow_id", - "execution_id", - GetFlowExecutionRequestParameters +client.groups().members().get( + "id", + GetGroupMembersRequestParameters .builder() - .hydrate( - Arrays.asList(GetFlowExecutionRequestParametersHydrateEnum.DEBUG) - ) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build() ); ``` @@ -20956,7 +21954,7 @@ client.flows().executions().get(
-**flowId:** `String` — Flow id +**id:** `String` — Unique identifier for the group (service-generated).
@@ -20964,7 +21962,7 @@ client.flows().executions().get(
-**executionId:** `String` — Flow execution id +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields
@@ -20972,70 +21970,52 @@ client.flows().executions().get(
-**hydrate:** `Optional` — Hydration param +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false).
-
-
- -
-
-
- -
client.flows.executions.delete(flowId, executionId)
-#### 🔌 Usage - -
-
+**from:** `Optional` — Optional Id from which to start selection. + +
+
-```java -client.flows().executions().delete("flow_id", "execution_id"); -``` +**take:** `Optional` — Number of results per page. Defaults to 50. +
-#### ⚙️ Parameters + + +
+ +## Groups Roles +
client.groups.roles.list(id) -> SyncPagingIterable&lt;Role&gt;
+#### 📝 Description +
-**flowId:** `String` — Flows id - -
-
-
-**executionId:** `String` — Flow execution identifier - -
-
+Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group.
- - -
- -## Flows Vault Connections -
client.flows.vault.connections.list() -> SyncPagingIterable&lt;FlowsVaultConnectionSummary&gt; -
-
#### 🔌 Usage @@ -21046,12 +22026,12 @@ client.flows().executions().delete("flow_id", "execution_id");
```java -client.flows().vault().connections().list( - ListFlowsVaultConnectionsRequestParameters +client.groups().roles().list( + "id", + ListGroupRolesRequestParameters .builder() - .page(1) - .perPage(1) - .includeTotals(true) + .from("from") + .take(1) .build() ); ``` @@ -21068,7 +22048,7 @@ client.flows().vault().connections().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. +**id:** `String` — Unique identifier for the group (service-generated).
@@ -21076,7 +22056,7 @@ client.flows().vault().connections().list(
-**perPage:** `Optional` — Number of results per page. Defaults to 50. +**from:** `Optional` — Optional Id from which to start selection.
@@ -21084,7 +22064,7 @@ client.flows().vault().connections().list(
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**take:** `Optional` — Number of results per page. Defaults to 50.
@@ -21096,11 +22076,11 @@ client.flows().vault().connections().list(
-
client.flows.vault.connections.create(request) -> CreateFlowsVaultConnectionResponseContent +
client.groups.roles.create(id, request)
-#### 🔌 Usage +#### 📝 Description
@@ -21108,33 +22088,13 @@ client.flows().vault().connections().list(
-```java -client.flows().vault().connections().create( - CreateFlowsVaultConnectionRequestContent.of( - CreateFlowsVaultConnectionActivecampaign.of( - CreateFlowsVaultConnectionActivecampaignApiKey - .builder() - .name("name") - .appId(FlowsVaultConnectionAppIdActivecampaignEnum.ACTIVECAMPAIGN) - .setup( - FlowsVaultConnectioSetupApiKeyWithBaseUrl - .builder() - .type(FlowsVaultConnectioSetupTypeApiKeyEnum.API_KEY) - .apiKey("api_key") - .baseUrl("base_url") - .build() - ) - .build() - ) - ) -); -``` +Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group.
-#### ⚙️ Parameters +#### 🔌 Usage
@@ -21142,23 +22102,23 @@ client.flows().vault().connections().create(
-**request:** `CreateFlowsVaultConnectionRequestContent` - -
-
+```java +client.groups().roles().create( + "id", + CreateGroupRolesRequestParameters + .builder() + .roles( + Arrays.asList("roles") + ) + .build() +); +```
- -
-
- -
client.flows.vault.connections.get(id) -> GetFlowsVaultConnectionResponseContent -
-
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -21166,23 +22126,15 @@ client.flows().vault().connections().create(
-```java -client.flows().vault().connections().get("id"); -``` -
-
+**id:** `String` — Unique identifier for the group (service-generated). +
-#### ⚙️ Parameters - -
-
-
-**id:** `String` — Flows Vault connection ID +**roles:** `List` — Array of role IDs to assign to the group.
@@ -21194,27 +22146,11 @@ client.flows().vault().connections().get("id");
-
client.flows.vault.connections.delete(id) -
-
- -#### 🔌 Usage - -
-
- +
client.groups.roles.delete(id, request)
-```java -client.flows().vault().connections().delete("id"); -``` -
-
-
-
- -#### ⚙️ Parameters +#### 📝 Description
@@ -21222,21 +22158,11 @@ client.flows().vault().connections().delete("id");
-**id:** `String` — Vault connection id - -
-
+Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group.
- -
-
- -
client.flows.vault.connections.update(id, request) -> UpdateFlowsVaultConnectionResponseContent -
-
#### 🔌 Usage @@ -21247,10 +22173,13 @@ client.flows().vault().connections().delete("id");
```java -client.flows().vault().connections().update( +client.groups().roles().delete( "id", - UpdateFlowsVaultConnectionRequestContent + DeleteGroupRolesRequestContent .builder() + .roles( + Arrays.asList("roles") + ) .build() ); ``` @@ -21267,15 +22196,7 @@ client.flows().vault().connections().update(
-**id:** `String` — Flows Vault connection ID - -
-
- -
-
- -**name:** `Optional` — Flows Vault Connection name. +**id:** `String` — Unique identifier for the group (service-generated).
@@ -21283,7 +22204,7 @@ client.flows().vault().connections().update(
-**setup:** `Optional` +**roles:** `List` — Array of role IDs to remove from the group.
@@ -21295,8 +22216,8 @@ client.flows().vault().connections().update(
-## Groups Members -
client.groups.members.get(id) -> SyncPagingIterable&lt;GroupMember&gt; +## Guardian Enrollments +
client.guardian.enrollments.createTicket(request) -> CreateGuardianEnrollmentTicketResponseContent
@@ -21308,7 +22229,7 @@ client.flows().vault().connections().update(
-List all users that are a member of this group. +Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets), and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
@@ -21323,14 +22244,10 @@ List all users that are a member of this group.
```java -client.groups().members().get( - "id", - GetGroupMembersRequestParameters +client.guardian().enrollments().createTicket( + CreateGuardianEnrollmentTicketRequestContent .builder() - .fields("fields") - .includeFields(true) - .from("from") - .take(1) + .userId("user_id") .build() ); ``` @@ -21347,7 +22264,15 @@ client.groups().members().get(
-**id:** `String` — Unique identifier for the group (service-generated). +**userId:** `String` — user_id for the enrollment ticket + +
+
+ +
+
+ +**email:** `Optional` — alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address
@@ -21355,7 +22280,7 @@ client.groups().members().get(
-**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields +**sendMail:** `Optional` — Send an email to the user to start the enrollment
@@ -21363,7 +22288,7 @@ client.groups().members().get(
-**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). +**emailLocale:** `Optional` — Optional. Specify the locale of the enrollment email. Used with send_email.
@@ -21371,7 +22296,7 @@ client.groups().members().get(
-**from:** `Optional` — Optional Id from which to start selection. +**factor:** `Optional`
@@ -21379,7 +22304,7 @@ client.groups().members().get(
-**take:** `Optional` — Number of results per page. Defaults to 50. +**allowMultipleEnrollments:** `Optional` — Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.
Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.
@@ -21391,8 +22316,7 @@ client.groups().members().get(
-## Groups Roles -
client.groups.roles.list(id) -> SyncPagingIterable&lt;Role&gt; +
client.guardian.enrollments.get(id) -> GetGuardianEnrollmentResponseContent
@@ -21404,7 +22328,7 @@ client.groups().members().get(
-Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group. +Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account.
@@ -21419,14 +22343,7 @@ Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assig
```java -client.groups().roles().list( - "id", - ListGroupRolesRequestParameters - .builder() - .from("from") - .take(1) - .build() -); +client.guardian().enrollments().get("id"); ```
@@ -21441,23 +22358,7 @@ client.groups().roles().list(
-**id:** `String` — Unique identifier for the group (service-generated). - -
-
- -
-
- -**from:** `Optional` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `Optional` — Number of results per page. Defaults to 50. +**id:** `String` — ID of the enrollment to be retrieve.
@@ -21469,7 +22370,7 @@ client.groups().roles().list(
-
client.groups.roles.create(id, request) +
client.guardian.enrollments.delete(id)
@@ -21481,7 +22382,7 @@ client.groups().roles().list(
-Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group. +Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review [Reset User Multi-Factor Authentication and Recovery Codes](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa).
@@ -21496,15 +22397,7 @@ Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rb
```java -client.groups().roles().create( - "id", - CreateGroupRolesRequestParameters - .builder() - .roles( - Arrays.asList("roles") - ) - .build() -); +client.guardian().enrollments().delete("id"); ```
@@ -21519,16 +22412,48 @@ client.groups().roles().create(
-**id:** `String` — Unique identifier for the group (service-generated). +**id:** `String` — ID of the enrollment to be deleted.
+ + + + + + +
+## Guardian Factors +
client.guardian.factors.list() -> List&lt;GuardianFactor&gt;
-**roles:** `List` — Array of role IDs to assign to the group. - +#### 📝 Description + +
+
+ +
+
+ +Retrieve details of all multi-factor authentication factors associated with your tenant. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.guardian().factors().list(); +```
@@ -21539,7 +22464,7 @@ client.groups().roles().create(
-
client.groups.roles.delete(id, request) +
client.guardian.factors.set(name, request) -> SetGuardianFactorResponseContent
@@ -21551,7 +22476,7 @@ client.groups().roles().create(
-Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group. +Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor.
@@ -21566,13 +22491,11 @@ Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/
```java -client.groups().roles().delete( - "id", - DeleteGroupRolesRequestContent +client.guardian().factors().set( + GuardianFactorNameEnum.PUSH_NOTIFICATION, + SetGuardianFactorRequestContent .builder() - .roles( - Arrays.asList("roles") - ) + .enabled(true) .build() ); ``` @@ -21589,7 +22512,7 @@ client.groups().roles().delete(
-**id:** `String` — Unique identifier for the group (service-generated). +**name:** `GuardianFactorNameEnum` — Factor name. Can be `sms`, `push-notification`, `email`, `duo` `otp` `webauthn-roaming`, `webauthn-platform`, or `recovery-code`.
@@ -21597,7 +22520,7 @@ client.groups().roles().delete(
-**roles:** `List` — Array of role IDs to remove from the group. +**enabled:** `Boolean` — Whether this factor is enabled (true) or disabled (false).
@@ -21609,8 +22532,8 @@ client.groups().roles().delete(
-## Guardian Enrollments -
client.guardian.enrollments.createTicket(request) -> CreateGuardianEnrollmentTicketResponseContent +## Guardian Policies +
client.guardian.policies.list() -> List&lt;MfaPolicyEnum&gt;
@@ -21622,7 +22545,14 @@ client.groups().roles().delete(
-Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets), and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors. +Retrieve the [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) configured for your tenant. + +The following policies are supported: + +- `all-applications` policy prompts with MFA for all logins. +- `confidence-score` policy prompts with MFA only for low confidence logins. + +**Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details.
@@ -21637,67 +22567,70 @@ Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com
```java -client.guardian().enrollments().createTicket( - CreateGuardianEnrollmentTicketRequestContent - .builder() - .userId("user_id") - .build() -); +client.guardian().policies().list(); ```
-#### ⚙️ Parameters + + +
+ +
client.guardian.policies.set(request) -> List&lt;MfaPolicyEnum&gt;
+#### 📝 Description +
-**userId:** `String` — user_id for the enrollment ticket - -
-
-
-**email:** `Optional` — alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address - +Set [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) for your tenant. + +The following policies are supported: + +- `all-applications` policy prompts with MFA for all logins. +- `confidence-score` policy prompts with MFA only for low confidence logins. + +**Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. +
+
+#### 🔌 Usage +
-**sendMail:** `Optional` — Send an email to the user to start the enrollment - -
-
-
-**emailLocale:** `Optional` — Optional. Specify the locale of the enrollment email. Used with send_email. - +```java +client.guardian().policies().set( + Arrays.asList(MfaPolicyEnum.ALL_APPLICATIONS) +); +``` +
+
+#### ⚙️ Parameters +
-**factor:** `Optional` - -
-
-
-**allowMultipleEnrollments:** `Optional` — Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.
Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. +**request:** `List`
@@ -21709,7 +22642,8 @@ client.guardian().enrollments().createTicket(
-
client.guardian.enrollments.get(id) -> GetGuardianEnrollmentResponseContent +## Guardian Factors Phone +
client.guardian.factors.phone.getMessageTypes() -> GetGuardianFactorPhoneMessageTypesResponseContent
@@ -21721,7 +22655,7 @@ client.guardian().enrollments().createTicket(
-Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account. +Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant.
@@ -21736,34 +22670,19 @@ Retrieve details, such as status and type, for a specific multi-factor authentic
```java -client.guardian().enrollments().get("id"); +client.guardian().factors().phone().getMessageTypes(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — ID of the enrollment to be retrieve. - -
-
-
-
-
-
client.guardian.enrollments.delete(id) +
client.guardian.factors.phone.setMessageTypes(request) -> SetGuardianFactorPhoneMessageTypesResponseContent
@@ -21775,7 +22694,7 @@ client.guardian().enrollments().get("id");
-Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review [Reset User Multi-Factor Authentication and Recovery Codes](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa). +Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant.
@@ -21790,7 +22709,14 @@ Remove a specific multi-factor authentication (MFA) enrollment from a user's acc
```java -client.guardian().enrollments().delete("id"); +client.guardian().factors().phone().setMessageTypes( + SetGuardianFactorPhoneMessageTypesRequestContent + .builder() + .messageTypes( + Arrays.asList(GuardianFactorPhoneFactorMessageTypeEnum.SMS) + ) + .build() +); ```
@@ -21805,7 +22731,7 @@ client.guardian().enrollments().delete("id");
-**id:** `String` — ID of the enrollment to be deleted. +**messageTypes:** `List` — The list of phone factors to enable on the tenant. Can include `sms` and `voice`.
@@ -21817,8 +22743,7 @@ client.guardian().enrollments().delete("id");
-## Guardian Factors -
client.guardian.factors.list() -> List&lt;GuardianFactor&gt; +
client.guardian.factors.phone.getTwilioProvider() -> GetGuardianFactorsProviderPhoneTwilioResponseContent
@@ -21830,7 +22755,7 @@ client.guardian().enrollments().delete("id");
-Retrieve details of all multi-factor authentication factors associated with your tenant. +Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA.
@@ -21845,7 +22770,7 @@ Retrieve details of all Configure SMS and Voice Notifications for MFA.
@@ -21884,11 +22809,9 @@ Update the status (i.e., enabled or disabled) of a specific multi-factor authent
```java -client.guardian().factors().set( - GuardianFactorNameEnum.PUSH_NOTIFICATION, - SetGuardianFactorRequestContent +client.guardian().factors().phone().setTwilioProvider( + SetGuardianFactorsProviderPhoneTwilioRequestContent .builder() - .enabled(true) .build() ); ``` @@ -21905,7 +22828,23 @@ client.guardian().factors().set(
-**name:** `GuardianFactorNameEnum` — Factor name. Can be `sms`, `push-notification`, `email`, `duo` `otp` `webauthn-roaming`, `webauthn-platform`, or `recovery-code`. +**from:** `Optional` — From number + +
+
+ +
+
+ +**messagingServiceSid:** `Optional` — Copilot SID + +
+
+ +
+
+ +**authToken:** `Optional` — Twilio Authentication token
@@ -21913,7 +22852,7 @@ client.guardian().factors().set(
-**enabled:** `Boolean` — Whether this factor is enabled (true) or disabled (false). +**sid:** `Optional` — Twilio SID
@@ -21925,8 +22864,7 @@ client.guardian().factors().set(
-## Guardian Policies -
client.guardian.policies.list() -> List&lt;MfaPolicyEnum&gt; +
client.guardian.factors.phone.getSelectedProvider() -> GetGuardianFactorsProviderPhoneResponseContent
@@ -21938,14 +22876,7 @@ client.guardian().factors().set(
-Retrieve the [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) configured for your tenant. - -The following policies are supported: - -- `all-applications` policy prompts with MFA for all logins. -- `confidence-score` policy prompts with MFA only for low confidence logins. - -**Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. +Retrieve details of the multi-factor authentication phone provider configured for your tenant.
@@ -21960,7 +22891,7 @@ The following policies are supported:
```java -client.guardian().policies().list(); +client.guardian().factors().phone().getSelectedProvider(); ```
@@ -21972,31 +22903,10 @@ client.guardian().policies().list();
-
client.guardian.policies.set(request) -> List&lt;MfaPolicyEnum&gt; -
-
- -#### 📝 Description - -
-
- +
client.guardian.factors.phone.setProvider(request) -> SetGuardianFactorsProviderPhoneResponseContent
-Set [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) for your tenant. - -The following policies are supported: - -- `all-applications` policy prompts with MFA for all logins. -- `confidence-score` policy prompts with MFA only for low confidence logins. - -**Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. -
-
-
-
- #### 🔌 Usage
@@ -22006,8 +22916,11 @@ The following policies are supported:
```java -client.guardian().policies().set( - Arrays.asList(MfaPolicyEnum.ALL_APPLICATIONS) +client.guardian().factors().phone().setProvider( + SetGuardianFactorsProviderPhoneRequestContent + .builder() + .provider(GuardianFactorsProviderSmsProviderEnum.AUTH0) + .build() ); ```
@@ -22023,7 +22936,7 @@ client.guardian().policies().set(
-**request:** `List` +**provider:** `GuardianFactorsProviderSmsProviderEnum`
@@ -22035,8 +22948,7 @@ client.guardian().policies().set(
-## Guardian Factors Phone -
client.guardian.factors.phone.getMessageTypes() -> GetGuardianFactorPhoneMessageTypesResponseContent +
client.guardian.factors.phone.getTemplates() -> GetGuardianFactorPhoneTemplatesResponseContent
@@ -22048,7 +22960,7 @@ client.guardian().policies().set(
-Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. +Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant.
@@ -22063,7 +22975,7 @@ Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. +Customize the messages sent to complete phone enrollment and verification (subscription required).
@@ -22102,12 +23014,11 @@ Replace the list of
-**messageTypes:** `List` — The list of phone factors to enable on the tenant. Can include `sms` and `voice`. +**enrollmentMessage:** `String` — Message sent to the user when they are invited to enroll with a phone number. + +
+ + +
+
+ +**verificationMessage:** `String` — Message sent to the user when they are prompted to verify their account.
@@ -22136,7 +23055,8 @@ client.guardian().factors().phone().setMessageTypes(
-
client.guardian.factors.phone.getTwilioProvider() -> GetGuardianFactorsProviderPhoneTwilioResponseContent +## Guardian Factors PushNotification +
client.guardian.factors.pushNotification.getApnsProvider() -> GetGuardianFactorsProviderApnsResponseContent
@@ -22148,7 +23068,7 @@ client.guardian().factors().phone().setMessageTypes(
-Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. +Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant.
@@ -22163,7 +23083,7 @@ Retrieve configuration details for a Twilio phone provider that has been set up
```java -client.guardian().factors().phone().getTwilioProvider(); +client.guardian().factors().pushNotification().getApnsProvider(); ```
@@ -22175,7 +23095,7 @@ client.guardian().factors().phone().getTwilioProvider();
-
client.guardian.factors.phone.setTwilioProvider(request) -> SetGuardianFactorsProviderPhoneTwilioResponseContent +
client.guardian.factors.pushNotification.setApnsProvider(request) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent
@@ -22187,7 +23107,7 @@ client.guardian().factors().phone().getTwilioProvider();
-Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. +Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant.
@@ -22202,8 +23122,8 @@ Update the configuration of a Twilio phone provider that has been set up in your
```java -client.guardian().factors().phone().setTwilioProvider( - SetGuardianFactorsProviderPhoneTwilioRequestContent +client.guardian().factors().pushNotification().setApnsProvider( + SetGuardianFactorsProviderPushNotificationApnsRequestContent .builder() .build() ); @@ -22221,15 +23141,7 @@ client.guardian().factors().phone().setTwilioProvider(
-**from:** `Optional` — From number - -
-
- -
-
- -**messagingServiceSid:** `Optional` — Copilot SID +**sandbox:** `Optional`
@@ -22237,7 +23149,7 @@ client.guardian().factors().phone().setTwilioProvider(
-**authToken:** `Optional` — Twilio Authentication token +**bundleId:** `Optional`
@@ -22245,7 +23157,7 @@ client.guardian().factors().phone().setTwilioProvider(
-**sid:** `Optional` — Twilio SID +**p12:** `Optional`
@@ -22257,7 +23169,7 @@ client.guardian().factors().phone().setTwilioProvider(
-
client.guardian.factors.phone.getSelectedProvider() -> GetGuardianFactorsProviderPhoneResponseContent +
client.guardian.factors.pushNotification.updateApnsProvider(request) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent
@@ -22269,7 +23181,7 @@ client.guardian().factors().phone().setTwilioProvider(
-Retrieve details of the multi-factor authentication phone provider configured for your tenant. +Modify configuration details of the multi-factor authentication APNS provider associated with your tenant.
@@ -22284,23 +23196,18 @@ Retrieve details of the multi-factor authentication phone provider configured fo
```java -client.guardian().factors().phone().getSelectedProvider(); +client.guardian().factors().pushNotification().updateApnsProvider( + UpdateGuardianFactorsProviderPushNotificationApnsRequestContent + .builder() + .build() +); ```
- - - -
- -
client.guardian.factors.phone.setProvider(request) -> SetGuardianFactorsProviderPhoneResponseContent -
-
- -#### 🔌 Usage +#### ⚙️ Parameters
@@ -22308,28 +23215,23 @@ client.guardian().factors().phone().getSelectedProvider();
-```java -client.guardian().factors().phone().setProvider( - SetGuardianFactorsProviderPhoneRequestContent - .builder() - .provider(GuardianFactorsProviderSmsProviderEnum.AUTH0) - .build() -); -``` -
-
+**sandbox:** `Optional` +
-#### ⚙️ Parameters -
+**bundleId:** `Optional` + +
+
+
-**provider:** `GuardianFactorsProviderSmsProviderEnum` +**p12:** `Optional`
@@ -22341,7 +23243,7 @@ client.guardian().factors().phone().setProvider(
-
client.guardian.factors.phone.getTemplates() -> GetGuardianFactorPhoneTemplatesResponseContent +
client.guardian.factors.pushNotification.setFcmProvider(request) -> Map&lt;String, Object&gt;
@@ -22353,7 +23255,7 @@ client.guardian().factors().phone().setProvider(
-Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant. +Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant.
@@ -22368,19 +23270,38 @@ Retrieve details of the multi-factor authentication enrollment and verification
```java -client.guardian().factors().phone().getTemplates(); +client.guardian().factors().pushNotification().setFcmProvider( + SetGuardianFactorsProviderPushNotificationFcmRequestContent + .builder() + .build() +); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**serverKey:** `Optional` + +
+
+
+
+
-
client.guardian.factors.phone.setTemplates(request) -> SetGuardianFactorPhoneTemplatesResponseContent +
client.guardian.factors.pushNotification.updateFcmProvider(request) -> Map&lt;String, Object&gt;
@@ -22392,7 +23313,7 @@ client.guardian().factors().phone().getTemplates();
-Customize the messages sent to complete phone enrollment and verification (subscription required). +Modify configuration details of the multi-factor authentication FCM provider associated with your tenant.
@@ -22407,11 +23328,9 @@ Customize the messages sent to complete phone enrollment and verification (subsc
```java -client.guardian().factors().phone().setTemplates( - SetGuardianFactorPhoneTemplatesRequestContent +client.guardian().factors().pushNotification().updateFcmProvider( + UpdateGuardianFactorsProviderPushNotificationFcmRequestContent .builder() - .enrollmentMessage("enrollment_message") - .verificationMessage("verification_message") .build() ); ``` @@ -22428,15 +23347,7 @@ client.guardian().factors().phone().setTemplates(
-**enrollmentMessage:** `String` — Message sent to the user when they are invited to enroll with a phone number. - -
-
- -
-
- -**verificationMessage:** `String` — Message sent to the user when they are prompted to verify their account. +**serverKey:** `Optional`
@@ -22448,8 +23359,7 @@ client.guardian().factors().phone().setTemplates(
-## Guardian Factors PushNotification -
client.guardian.factors.pushNotification.getApnsProvider() -> GetGuardianFactorsProviderApnsResponseContent +
client.guardian.factors.pushNotification.setFcmv1Provider(request) -> Map&lt;String, Object&gt;
@@ -22461,7 +23371,7 @@ client.guardian().factors().phone().setTemplates(
-Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant. +Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
@@ -22476,19 +23386,38 @@ Retrieve configuration details for the multi-factor authentication APNS provider
```java -client.guardian().factors().pushNotification().getApnsProvider(); +client.guardian().factors().pushNotification().setFcmv1Provider( + SetGuardianFactorsProviderPushNotificationFcmv1RequestContent + .builder() + .build() +); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**serverCredentials:** `Optional` + +
+
+
+
+
-
client.guardian.factors.pushNotification.setApnsProvider(request) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent +
client.guardian.factors.pushNotification.updateFcmv1Provider(request) -> Map&lt;String, Object&gt;
@@ -22500,7 +23429,7 @@ client.guardian().factors().pushNotification().getApnsProvider();
-Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. +Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
@@ -22515,8 +23444,8 @@ Overwrite all configuration details of the multi-factor authentication APNS prov
```java -client.guardian().factors().pushNotification().setApnsProvider( - SetGuardianFactorsProviderPushNotificationApnsRequestContent +client.guardian().factors().pushNotification().updateFcmv1Provider( + UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent .builder() .build() ); @@ -22534,24 +23463,47 @@ client.guardian().factors().pushNotification().setApnsProvider(
-**sandbox:** `Optional` +**serverCredentials:** `Optional`
+
+
+ + + + +
+
client.guardian.factors.pushNotification.getSnsProvider() -> GetGuardianFactorsProviderSnsResponseContent
-**bundleId:** `Optional` - +#### 📝 Description + +
+
+ +
+
+ +Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review [Configure Push Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa). +
+
+#### 🔌 Usage + +
+
+
-**p12:** `Optional` - +```java +client.guardian().factors().pushNotification().getSnsProvider(); +```
@@ -22562,7 +23514,7 @@ client.guardian().factors().pushNotification().setApnsProvider(
-
client.guardian.factors.pushNotification.updateApnsProvider(request) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent +
client.guardian.factors.pushNotification.setSnsProvider(request) -> SetGuardianFactorsProviderPushNotificationSnsResponseContent
@@ -22574,7 +23526,7 @@ client.guardian().factors().pushNotification().setApnsProvider(
-Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. +Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required).
@@ -22589,8 +23541,8 @@ Modify configuration details of the multi-factor authentication APNS provider as
```java -client.guardian().factors().pushNotification().updateApnsProvider( - UpdateGuardianFactorsProviderPushNotificationApnsRequestContent +client.guardian().factors().pushNotification().setSnsProvider( + SetGuardianFactorsProviderPushNotificationSnsRequestContent .builder() .build() ); @@ -22608,7 +23560,7 @@ client.guardian().factors().pushNotification().updateApnsProvider(
-**sandbox:** `Optional` +**awsAccessKeyId:** `Optional`
@@ -22616,7 +23568,7 @@ client.guardian().factors().pushNotification().updateApnsProvider(
-**bundleId:** `Optional` +**awsSecretAccessKey:** `Optional`
@@ -22624,7 +23576,23 @@ client.guardian().factors().pushNotification().updateApnsProvider(
-**p12:** `Optional` +**awsRegion:** `Optional` + +
+
+ +
+
+ +**snsApnsPlatformApplicationArn:** `Optional` + +
+
+ +
+
+ +**snsGcmPlatformApplicationArn:** `Optional`
@@ -22636,7 +23604,7 @@ client.guardian().factors().pushNotification().updateApnsProvider(
-
client.guardian.factors.pushNotification.setFcmProvider(request) -> Map&lt;String, Object&gt; +
client.guardian.factors.pushNotification.updateSnsProvider(request) -> UpdateGuardianFactorsProviderPushNotificationSnsResponseContent
@@ -22648,7 +23616,7 @@ client.guardian().factors().pushNotification().updateApnsProvider(
-Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. +Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required).
@@ -22663,8 +23631,8 @@ Overwrite all configuration details of the multi-factor authentication FCM provi
```java -client.guardian().factors().pushNotification().setFcmProvider( - SetGuardianFactorsProviderPushNotificationFcmRequestContent +client.guardian().factors().pushNotification().updateSnsProvider( + UpdateGuardianFactorsProviderPushNotificationSnsRequestContent .builder() .build() ); @@ -22682,65 +23650,39 @@ client.guardian().factors().pushNotification().setFcmProvider(
-**serverKey:** `Optional` +**awsAccessKeyId:** `Optional`
-
-
- - - -
- -
client.guardian.factors.pushNotification.updateFcmProvider(request) -> Map&lt;String, Object&gt;
-#### 📝 Description - -
-
+**awsSecretAccessKey:** `Optional` + +
+
-Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. -
-
+**awsRegion:** `Optional` +
-#### 🔌 Usage - -
-
-
-```java -client.guardian().factors().pushNotification().updateFcmProvider( - UpdateGuardianFactorsProviderPushNotificationFcmRequestContent - .builder() - .build() -); -``` -
-
+**snsApnsPlatformApplicationArn:** `Optional` +
-#### ⚙️ Parameters - -
-
-
-**serverKey:** `Optional` +**snsGcmPlatformApplicationArn:** `Optional`
@@ -22752,7 +23694,7 @@ client.guardian().factors().pushNotification().updateFcmProvider(
-
client.guardian.factors.pushNotification.setFcmv1Provider(request) -> Map&lt;String, Object&gt; +
client.guardian.factors.pushNotification.getSelectedProvider() -> GetGuardianFactorsProviderPushNotificationResponseContent
@@ -22764,7 +23706,7 @@ client.guardian().factors().pushNotification().updateFcmProvider(
-Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. +Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA.
@@ -22779,38 +23721,19 @@ Overwrite all configuration details of the multi-factor authentication FCMV1 pro
```java -client.guardian().factors().pushNotification().setFcmv1Provider( - SetGuardianFactorsProviderPushNotificationFcmv1RequestContent - .builder() - .build() -); +client.guardian().factors().pushNotification().getSelectedProvider(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**serverCredentials:** `Optional` - -
-
-
-
-
-
client.guardian.factors.pushNotification.updateFcmv1Provider(request) -> Map&lt;String, Object&gt; +
client.guardian.factors.pushNotification.setProvider(request) -> SetGuardianFactorsProviderPushNotificationResponseContent
@@ -22822,7 +23745,7 @@ client.guardian().factors().pushNotification().setFcmv1Provider(
-Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. +Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA.
@@ -22837,9 +23760,10 @@ Modify configuration details of the multi-factor authentication FCMV1 provider a
```java -client.guardian().factors().pushNotification().updateFcmv1Provider( - UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent +client.guardian().factors().pushNotification().setProvider( + SetGuardianFactorsProviderPushNotificationRequestContent .builder() + .provider(GuardianFactorsProviderPushNotificationProviderDataEnum.GUARDIAN) .build() ); ``` @@ -22856,7 +23780,7 @@ client.guardian().factors().pushNotification().updateFcmv1Provider(
-**serverCredentials:** `Optional` +**provider:** `GuardianFactorsProviderPushNotificationProviderDataEnum`
@@ -22868,7 +23792,8 @@ client.guardian().factors().pushNotification().updateFcmv1Provider(
-
client.guardian.factors.pushNotification.getSnsProvider() -> GetGuardianFactorsProviderSnsResponseContent +## Guardian Factors Sms +
client.guardian.factors.sms.getTwilioProvider() -> GetGuardianFactorsProviderSmsTwilioResponseContent
@@ -22880,7 +23805,9 @@ client.guardian().factors().pushNotification().updateFcmv1Provider(
-Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review [Configure Push Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa). +Retrieve the Twilio SMS provider configuration (subscription required). + + A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
@@ -22895,7 +23822,7 @@ Retrieve configuration details for an AWS SNS push notification provider that ha
```java -client.guardian().factors().pushNotification().getSnsProvider(); +client.guardian().factors().sms().getTwilioProvider(); ```
@@ -22907,7 +23834,7 @@ client.guardian().factors().pushNotification().getSnsProvider();
-
client.guardian.factors.pushNotification.setSnsProvider(request) -> SetGuardianFactorsProviderPushNotificationSnsResponseContent +
client.guardian.factors.sms.setTwilioProvider(request) -> SetGuardianFactorsProviderSmsTwilioResponseContent
@@ -22919,7 +23846,9 @@ client.guardian().factors().pushNotification().getSnsProvider();
-Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). +This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + + Previous functionality: Update the Twilio SMS provider configuration.
@@ -22934,8 +23863,8 @@ Configure the [AWS SNS push notification provider configuration](https://auth0.c
```java -client.guardian().factors().pushNotification().setSnsProvider( - SetGuardianFactorsProviderPushNotificationSnsRequestContent +client.guardian().factors().sms().setTwilioProvider( + SetGuardianFactorsProviderSmsTwilioRequestContent .builder() .build() ); @@ -22953,15 +23882,7 @@ client.guardian().factors().pushNotification().setSnsProvider(
-**awsAccessKeyId:** `Optional` - -
-
- -
-
- -**awsSecretAccessKey:** `Optional` +**from:** `Optional` — From number
@@ -22969,7 +23890,7 @@ client.guardian().factors().pushNotification().setSnsProvider(
-**awsRegion:** `Optional` +**messagingServiceSid:** `Optional` — Copilot SID
@@ -22977,7 +23898,7 @@ client.guardian().factors().pushNotification().setSnsProvider(
-**snsApnsPlatformApplicationArn:** `Optional` +**authToken:** `Optional` — Twilio Authentication token
@@ -22985,7 +23906,7 @@ client.guardian().factors().pushNotification().setSnsProvider(
-**snsGcmPlatformApplicationArn:** `Optional` +**sid:** `Optional` — Twilio SID
@@ -22997,7 +23918,7 @@ client.guardian().factors().pushNotification().setSnsProvider(
-
client.guardian.factors.pushNotification.updateSnsProvider(request) -> UpdateGuardianFactorsProviderPushNotificationSnsResponseContent +
client.guardian.factors.sms.getSelectedProvider() -> GetGuardianFactorsProviderSmsResponseContent
@@ -23009,7 +23930,9 @@ client.guardian().factors().pushNotification().setSnsProvider(
-Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). +This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. + + Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
@@ -23024,58 +23947,68 @@ Configure the [AWS SNS push notification provider configuration](https://auth0.c
```java -client.guardian().factors().pushNotification().updateSnsProvider( - UpdateGuardianFactorsProviderPushNotificationSnsRequestContent - .builder() - .build() -); +client.guardian().factors().sms().getSelectedProvider(); ```
-#### ⚙️ Parameters + + +
+ +
client.guardian.factors.sms.setProvider(request) -> SetGuardianFactorsProviderSmsResponseContent
+#### 📝 Description +
-**awsAccessKeyId:** `Optional` - -
-
-
-**awsSecretAccessKey:** `Optional` - +This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. + + Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant. +
+
+#### 🔌 Usage +
-**awsRegion:** `Optional` - -
-
-
-**snsApnsPlatformApplicationArn:** `Optional` - +```java +client.guardian().factors().sms().setProvider( + SetGuardianFactorsProviderSmsRequestContent + .builder() + .provider(GuardianFactorsProviderSmsProviderEnum.AUTH0) + .build() +); +``` +
+
+#### ⚙️ Parameters +
-**snsGcmPlatformApplicationArn:** `Optional` +
+
+ +**provider:** `GuardianFactorsProviderSmsProviderEnum`
@@ -23087,7 +24020,7 @@ client.guardian().factors().pushNotification().updateSnsProvider(
-
client.guardian.factors.pushNotification.getSelectedProvider() -> GetGuardianFactorsProviderPushNotificationResponseContent +
client.guardian.factors.sms.getTemplates() -> Optional&lt;GetGuardianFactorSmsTemplatesResponseContent&gt;
@@ -23099,7 +24032,9 @@ client.guardian().factors().pushNotification().updateSnsProvider(
-Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. +This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. + + Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
@@ -23114,7 +24049,7 @@ Modify the push notification provider configured for your tenant. For more infor
```java -client.guardian().factors().pushNotification().getSelectedProvider(); +client.guardian().factors().sms().getTemplates(); ```
@@ -23126,7 +24061,7 @@ client.guardian().factors().pushNotification().getSelectedProvider();
-
client.guardian.factors.pushNotification.setProvider(request) -> SetGuardianFactorsProviderPushNotificationResponseContent +
client.guardian.factors.sms.setTemplates(request) -> SetGuardianFactorSmsTemplatesResponseContent
@@ -23138,7 +24073,9 @@ client.guardian().factors().pushNotification().getSelectedProvider();
-Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. +This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. + + Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
@@ -23153,10 +24090,11 @@ Modify the push notification provider configured for your tenant. For more infor
```java -client.guardian().factors().pushNotification().setProvider( - SetGuardianFactorsProviderPushNotificationRequestContent +client.guardian().factors().sms().setTemplates( + SetGuardianFactorSmsTemplatesRequestContent .builder() - .provider(GuardianFactorsProviderPushNotificationProviderDataEnum.GUARDIAN) + .enrollmentMessage("enrollment_message") + .verificationMessage("verification_message") .build() ); ``` @@ -23173,7 +24111,15 @@ client.guardian().factors().pushNotification().setProvider(
-**provider:** `GuardianFactorsProviderPushNotificationProviderDataEnum` +**enrollmentMessage:** `String` — Message sent to the user when they are invited to enroll with a phone number. + +
+
+ +
+
+ +**verificationMessage:** `String` — Message sent to the user when they are prompted to verify their account.
@@ -23185,8 +24131,8 @@ client.guardian().factors().pushNotification().setProvider(
-## Guardian Factors Sms -
client.guardian.factors.sms.getTwilioProvider() -> GetGuardianFactorsProviderSmsTwilioResponseContent +## Guardian Factors Duo Settings +
client.guardian.factors.duo.settings.get() -> GetGuardianFactorDuoSettingsResponseContent
@@ -23198,9 +24144,7 @@ client.guardian().factors().pushNotification().setProvider(
-Retrieve the Twilio SMS provider configuration (subscription required). - - A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead. +Retrieves the DUO account and factor configuration.
@@ -23215,7 +24159,7 @@ Retrieve the Update Twilio phone configuration endpoint. - - Previous functionality: Update the Twilio SMS provider configuration. +Set the DUO account configuration and other properties specific to this factor.
@@ -23256,8 +24198,8 @@ This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. - - Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. +```java +client.guardian().factors().duo().settings().update( + UpdateGuardianFactorDuoSettingsRequestContent + .builder() + .build() +); +``` -#### 🔌 Usage +#### ⚙️ Parameters
@@ -23339,9 +24277,24 @@ This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. - - Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant. +Retrieve a hook's secrets by the ID of the hook.
@@ -23381,12 +24333,7 @@ This endpoint has been deprecated. To complete this action, use the @@ -23401,7 +24348,7 @@ client.guardian().factors().sms().setProvider(
-**provider:** `GuardianFactorsProviderSmsProviderEnum` +**id:** `String` — ID of the hook to retrieve secrets from.
@@ -23413,7 +24360,7 @@ client.guardian().factors().sms().setProvider(
-
client.guardian.factors.sms.getTemplates() -> Optional&lt;GetGuardianFactorSmsTemplatesResponseContent&gt; +
client.hooks.secrets.create(id, request)
@@ -23425,9 +24372,7 @@ client.guardian().factors().sms().setProvider(
-This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. - - Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant. +Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.
@@ -23442,19 +24387,47 @@ This endpoint has been deprecated. To complete this action, use the () {{ + put("key", "value"); + }} +); ```
+#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — The id of the hook to retrieve + +
+
+ +
+
+ +**request:** `Map` + +
+
+
+
+
-
client.guardian.factors.sms.setTemplates(request) -> SetGuardianFactorSmsTemplatesResponseContent +
client.hooks.secrets.delete(id, request)
@@ -23466,9 +24439,7 @@ client.guardian().factors().sms().getTemplates();
-This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. - - Previous functionality: Customize the messages sent to complete SMS enrollment and verification. +Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete.
@@ -23483,12 +24454,9 @@ This endpoint has been deprecated. To complete this action, use the @@ -23504,7 +24472,7 @@ client.guardian().factors().sms().setTemplates(
-**enrollmentMessage:** `String` — Message sent to the user when they are invited to enroll with a phone number. +**id:** `String` — ID of the hook whose secrets to delete.
@@ -23512,7 +24480,7 @@ client.guardian().factors().sms().setTemplates(
-**verificationMessage:** `String` — Message sent to the user when they are prompted to verify their account. +**request:** `List`
@@ -23524,8 +24492,7 @@ client.guardian().factors().sms().setTemplates(
-## Guardian Factors Duo Settings -
client.guardian.factors.duo.settings.get() -> GetGuardianFactorDuoSettingsResponseContent +
client.hooks.secrets.update(id, request)
@@ -23537,7 +24504,7 @@ client.guardian().factors().sms().setTemplates(
-Retrieves the DUO account and factor configuration. +Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret.
@@ -23552,23 +24519,19 @@ Retrieves the DUO account and factor configuration.
```java -client.guardian().factors().duo().settings().get(); +client.hooks().secrets().update( + "id", + new HashMap() {{ + put("key", "value"); + }} +); ```
- - - -
- -
client.guardian.factors.duo.settings.set(request) -> SetGuardianFactorDuoSettingsResponseContent -
-
- -#### 📝 Description +#### ⚙️ Parameters
@@ -23576,71 +24539,44 @@ client.guardian().factors().duo().settings().get();
-Set the DUO account configuration and other properties specific to this factor. -
-
+**id:** `String` — ID of the hook whose secrets to update. +
-#### 🔌 Usage - -
-
-
-```java -client.guardian().factors().duo().settings().set( - SetGuardianFactorDuoSettingsRequestContent - .builder() - .build() -); -``` +**request:** `Map` +
-#### ⚙️ Parameters -
-
+
+
+
+## Jobs UsersExports +
client.jobs.usersExports.create(request) -> CreateExportUsersResponseContent
-**ikey:** `Optional` - -
-
+#### 📝 Description
-**skey:** `Optional` - -
-
-
-**host:** `Optional` - -
-
+Export all users to a file via a long-running job. - - -
- -
client.guardian.factors.duo.settings.update(request) -> UpdateGuardianFactorDuoSettingsResponseContent -
-
#### 🔌 Usage @@ -23651,8 +24587,8 @@ client.guardian().factors().duo().settings().set(
```java -client.guardian().factors().duo().settings().update( - UpdateGuardianFactorDuoSettingsRequestContent +client.jobs().usersExports().create( + CreateExportUsersRequestContent .builder() .build() ); @@ -23670,7 +24606,7 @@ client.guardian().factors().duo().settings().update(
-**ikey:** `Optional` +**connectionId:** `Optional` — connection_id of the connection from which users will be exported.
@@ -23678,7 +24614,7 @@ client.guardian().factors().duo().settings().update(
-**skey:** `Optional` +**format:** `Optional`
@@ -23686,7 +24622,15 @@ client.guardian().factors().duo().settings().update(
-**host:** `Optional` +**limit:** `Optional` — Limit the number of records. + +
+
+ +
+
+ +**fields:** `Optional>` — List of fields to be included in the CSV. Defaults to a predefined set of fields.
@@ -23698,8 +24642,8 @@ client.guardian().factors().duo().settings().update(
-## Hooks Secrets -
client.hooks.secrets.get(id) -> Map&lt;String, String&gt; +## Jobs UsersImports +
client.jobs.usersImports.create(request) -> CreateImportUsersResponseContent
@@ -23711,7 +24655,7 @@ client.guardian().factors().duo().settings().update(
-Retrieve a hook's secrets by the ID of the hook. +Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the `email_verified` is set to `false` when the email address is added or updated. Users must verify their email address. To avoid this behavior, set `email_verified` to `true` in the imported data.
@@ -23726,34 +24670,26 @@ Retrieve a hook's secrets by the ID of the hook.
```java -client.hooks().secrets().get("id"); +client.jobs().usersImports().create( + null, + CreateImportUsersRequestContent + .builder() + .connectionId("connection_id") + .build() +); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — ID of the hook to retrieve secrets from. - -
-
-
-
-
-
client.hooks.secrets.create(id, request) +## Jobs VerificationEmail +
client.jobs.verificationEmail.create(request) -> CreateVerificationEmailResponseContent
@@ -23765,7 +24701,9 @@ client.hooks().secrets().get("id");
-Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets. +Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email). + +Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent.
@@ -23780,11 +24718,11 @@ Add one or more secrets to an existing hook. Accepts an object of key-value pair
```java -client.hooks().secrets().create( - "id", - new HashMap() {{ - put("key", "value"); - }} +client.jobs().verificationEmail().create( + CreateVerificationEmailRequestContent + .builder() + .userId("user_id") + .build() ); ```
@@ -23800,7 +24738,7 @@ client.hooks().secrets().create(
-**id:** `String` — The id of the hook to retrieve +**userId:** `String` — user_id of the user to send the verification email to.
@@ -23808,7 +24746,23 @@ client.hooks().secrets().create(
-**request:** `Map` +**clientId:** `Optional` — client_id of the client (application). If no value provided, the global Client ID will be used. + +
+
+ +
+
+ +**identity:** `Optional` + +
+
+ +
+
+ +**organizationId:** `Optional` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters.
@@ -23820,7 +24774,8 @@ client.hooks().secrets().create(
-
client.hooks.secrets.delete(id, request) +## Jobs Errors +
client.jobs.errors.get(id) -> Optional&lt;ErrorsGetResponse&gt;
@@ -23832,7 +24787,7 @@ client.hooks().secrets().create(
-Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. +Retrieve error details of a failed job.
@@ -23847,10 +24802,7 @@ Delete one or more existing secrets for a given hook. Accepts an array of secret
```java -client.hooks().secrets().delete( - "id", - Arrays.asList("string") -); +client.jobs().errors().get("id"); ```
@@ -23865,15 +24817,7 @@ client.hooks().secrets().delete(
-**id:** `String` — ID of the hook whose secrets to delete. - -
-
- -
-
- -**request:** `List` +**id:** `String` — ID of the job.
@@ -23885,7 +24829,8 @@ client.hooks().secrets().delete(
-
client.hooks.secrets.update(id, request) +## Keys CustomSigning +
client.keys.customSigning.get() -> GetCustomSigningKeysResponseContent
@@ -23897,7 +24842,7 @@ client.hooks().secrets().delete(
-Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret. +Get entire jwks representation of custom signing keys.
@@ -23912,48 +24857,19 @@ Update one or more existing secrets for an existing hook. Accepts an object of k
```java -client.hooks().secrets().update( - "id", - new HashMap() {{ - put("key", "value"); - }} -); +client.keys().customSigning().get(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — ID of the hook whose secrets to update. - -
-
- -
-
- -**request:** `Map` - -
-
-
-
-
-## Jobs UsersExports -
client.jobs.usersExports.create(request) -> CreateExportUsersResponseContent +
client.keys.customSigning.set(request) -> SetCustomSigningKeysResponseContent
@@ -23965,7 +24881,7 @@ client.hooks().secrets().update(
-Export all users to a file via a long-running job. +Create or replace entire jwks representation of custom signing keys.
@@ -23980,9 +24896,17 @@ Export all users to a file via a long-running job.
```java -client.jobs().usersExports().create( - CreateExportUsersRequestContent +client.keys().customSigning().set( + SetCustomSigningKeysRequestContent .builder() + .keys( + Arrays.asList( + CustomSigningKeyJwk + .builder() + .kty(CustomSigningKeyTypeEnum.EC) + .build() + ) + ) .build() ); ``` @@ -23999,31 +24923,7 @@ client.jobs().usersExports().create(
-**connectionId:** `Optional` — connection_id of the connection from which users will be exported. - -
-
- -
-
- -**format:** `Optional` - -
-
- -
-
- -**limit:** `Optional` — Limit the number of records. - -
-
- -
-
- -**fields:** `Optional>` — List of fields to be included in the CSV. Defaults to a predefined set of fields. +**keys:** `List` — An array of custom public signing keys.
@@ -24035,8 +24935,7 @@ client.jobs().usersExports().create(
-## Jobs UsersImports -
client.jobs.usersImports.create(request) -> CreateImportUsersResponseContent +
client.keys.customSigning.delete()
@@ -24048,7 +24947,7 @@ client.jobs().usersExports().create(
-Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the `email_verified` is set to `false` when the email address is added or updated. Users must verify their email address. To avoid this behavior, set `email_verified` to `true` in the imported data. +Delete entire jwks representation of custom signing keys.
@@ -24063,13 +24962,7 @@ Import users from a
@@ -24081,8 +24974,8 @@ client.jobs().usersImports().create(
-## Jobs VerificationEmail -
client.jobs.verificationEmail.create(request) -> CreateVerificationEmailResponseContent +## Keys Encryption +
client.keys.encryption.list() -> SyncPagingIterable&lt;EncryptionKey&gt;
@@ -24094,9 +24987,7 @@ client.jobs().usersImports().create(
-Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email). - -Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent. +Retrieve details of all the encryption keys associated with your tenant.
@@ -24111,10 +25002,12 @@ Note: You must have the `Status` toggle enabled for the verification email templ
```java -client.jobs().verificationEmail().create( - CreateVerificationEmailRequestContent +client.keys().encryption().list( + ListEncryptionKeysRequestParameters .builder() - .userId("user_id") + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -24131,15 +25024,7 @@ client.jobs().verificationEmail().create(
-**userId:** `String` — user_id of the user to send the verification email to. - -
-
- -
-
- -**clientId:** `Optional` — client_id of the client (application). If no value provided, the global Client ID will be used. +**page:** `Optional` — Page index of the results to return. First page is 0.
@@ -24147,7 +25032,7 @@ client.jobs().verificationEmail().create(
-**identity:** `Optional` +**perPage:** `Optional` — Number of results per page. Default value is 50, maximum value is 100.
@@ -24155,7 +25040,7 @@ client.jobs().verificationEmail().create(
-**organizationId:** `Optional` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -24167,8 +25052,7 @@ client.jobs().verificationEmail().create(
-## Jobs Errors -
client.jobs.errors.get(id) -> Optional&lt;ErrorsGetResponse&gt; +
client.keys.encryption.create(request) -> CreateEncryptionKeyResponseContent
@@ -24180,7 +25064,7 @@ client.jobs().verificationEmail().create(
-Retrieve error details of a failed job. +Create the new, pre-activated encryption key, without the key material.
@@ -24195,7 +25079,12 @@ Retrieve error details of a failed job.
```java -client.jobs().errors().get("id"); +client.keys().encryption().create( + CreateEncryptionKeyRequestContent + .builder() + .type(CreateEncryptionKeyType.CUSTOMER_PROVIDED_ROOT_KEY) + .build() +); ```
@@ -24210,7 +25099,7 @@ client.jobs().errors().get("id");
-**id:** `String` — ID of the job. +**type:** `CreateEncryptionKeyType`
@@ -24222,8 +25111,7 @@ client.jobs().errors().get("id");
-## Keys CustomSigning -
client.keys.customSigning.get() -> GetCustomSigningKeysResponseContent +
client.keys.encryption.rekey()
@@ -24235,7 +25123,7 @@ client.jobs().errors().get("id");
-Get entire jwks representation of custom signing keys. +Perform rekeying operation on the key hierarchy.
@@ -24250,7 +25138,7 @@ Get entire jwks representation of custom signing keys.
```java -client.keys().customSigning().get(); +client.keys().encryption().rekey(); ```
@@ -24262,7 +25150,7 @@ client.keys().customSigning().get();
-
client.keys.customSigning.set(request) -> SetCustomSigningKeysResponseContent +
client.keys.encryption.get(kid) -> GetEncryptionKeyResponseContent
@@ -24274,7 +25162,7 @@ client.keys().customSigning().get();
-Create or replace entire jwks representation of custom signing keys. +Retrieve details of the encryption key with the given ID.
@@ -24289,19 +25177,7 @@ Create or replace entire jwks representation of custom signing keys.
```java -client.keys().customSigning().set( - SetCustomSigningKeysRequestContent - .builder() - .keys( - Arrays.asList( - CustomSigningKeyJwk - .builder() - .kty(CustomSigningKeyTypeEnum.EC) - .build() - ) - ) - .build() -); +client.keys().encryption().get("kid"); ```
@@ -24316,7 +25192,7 @@ client.keys().customSigning().set(
-**keys:** `List` — An array of custom public signing keys. +**kid:** `String` — Encryption key ID
@@ -24328,7 +25204,7 @@ client.keys().customSigning().set(
-
client.keys.customSigning.delete() +
client.keys.encryption.import_(kid, request) -> ImportEncryptionKeyResponseContent
@@ -24340,23 +25216,52 @@ client.keys().customSigning().set(
-Delete entire jwks representation of custom signing keys. -
-
+Import wrapped key material and activate encryption key. +
+
+ + + +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.keys().encryption().import_( + "kid", + ImportEncryptionKeyRequestContent + .builder() + .wrappedKey("wrapped_key") + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**kid:** `String` — Encryption key ID +
-#### 🔌 Usage - -
-
-
-```java -client.keys().customSigning().delete(); -``` +**wrappedKey:** `String` — Base64 encoded ciphertext of key material wrapped by public wrapping key. +
@@ -24367,8 +25272,7 @@ client.keys().customSigning().delete();
-## Keys Encryption -
client.keys.encryption.list() -> SyncPagingIterable&lt;EncryptionKey&gt; +
client.keys.encryption.delete(kid)
@@ -24380,7 +25284,7 @@ client.keys().customSigning().delete();
-Retrieve details of all the encryption keys associated with your tenant. +Delete the custom provided encryption key with the given ID and move back to using native encryption key.
@@ -24395,14 +25299,7 @@ Retrieve details of all the encryption keys associated with your tenant.
```java -client.keys().encryption().list( - ListEncryptionKeysRequestParameters - .builder() - .page(1) - .perPage(1) - .includeTotals(true) - .build() -); +client.keys().encryption().delete("kid"); ```
@@ -24417,23 +25314,7 @@ client.keys().encryption().list(
-**page:** `Optional` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**perPage:** `Optional` — Number of results per page. Default value is 50, maximum value is 100. - -
-
- -
-
- -**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). +**kid:** `String` — Encryption key ID
@@ -24445,7 +25326,7 @@ client.keys().encryption().list(
-
client.keys.encryption.create(request) -> CreateEncryptionKeyResponseContent +
client.keys.encryption.createPublicWrappingKey(kid) -> CreateEncryptionKeyPublicWrappingResponseContent
@@ -24457,7 +25338,7 @@ client.keys().encryption().list(
-Create the new, pre-activated encryption key, without the key material. +Create the public wrapping key to wrap your own encryption key material.
@@ -24472,12 +25353,7 @@ Create the new, pre-activated encryption key, without the key material.
```java -client.keys().encryption().create( - CreateEncryptionKeyRequestContent - .builder() - .type(CreateEncryptionKeyType.CUSTOMER_PROVIDED_ROOT_KEY) - .build() -); +client.keys().encryption().createPublicWrappingKey("kid"); ```
@@ -24492,7 +25368,7 @@ client.keys().encryption().create(
-**type:** `CreateEncryptionKeyType` +**kid:** `String` — Encryption key ID
@@ -24504,7 +25380,8 @@ client.keys().encryption().create(
-
client.keys.encryption.rekey() +## Keys Signing +
client.keys.signing.list() -> List&lt;SigningKeys&gt;
@@ -24516,7 +25393,7 @@ client.keys().encryption().create(
-Perform rekeying operation on the key hierarchy. +Retrieve details of all the application signing keys associated with your tenant.
@@ -24531,7 +25408,7 @@ Perform rekeying operation on the key hierarchy.
```java -client.keys().encryption().rekey(); +client.keys().signing().list(); ```
@@ -24543,7 +25420,7 @@ client.keys().encryption().rekey();
-
client.keys.encryption.get(kid) -> GetEncryptionKeyResponseContent +
client.keys.signing.rotate() -> RotateSigningKeysResponseContent
@@ -24555,7 +25432,7 @@ client.keys().encryption().rekey();
-Retrieve details of the encryption key with the given ID. +Rotate the application signing key of your tenant.
@@ -24570,34 +25447,19 @@ Retrieve details of the encryption key with the given ID.
```java -client.keys().encryption().get("kid"); +client.keys().signing().rotate(); ```
-#### ⚙️ Parameters - -
-
- -
-
- -**kid:** `String` — Encryption key ID - -
-
-
-
-
-
client.keys.encryption.import_(kid, request) -> ImportEncryptionKeyResponseContent +
client.keys.signing.get(kid) -> GetSigningKeysResponseContent
@@ -24609,7 +25471,7 @@ client.keys().encryption().get("kid");
-Import wrapped key material and activate encryption key. +Retrieve details of the application signing key with the given ID.
@@ -24624,13 +25486,7 @@ Import wrapped key material and activate encryption key.
```java -client.keys().encryption().import_( - "kid", - ImportEncryptionKeyRequestContent - .builder() - .wrappedKey("wrapped_key") - .build() -); +client.keys().signing().get("kid"); ```
@@ -24645,15 +25501,7 @@ client.keys().encryption().import_(
-**kid:** `String` — Encryption key ID - -
-
- -
-
- -**wrappedKey:** `String` — Base64 encoded ciphertext of key material wrapped by public wrapping key. +**kid:** `String` — Key id of the key to retrieve
@@ -24665,7 +25513,7 @@ client.keys().encryption().import_(
-
client.keys.encryption.delete(kid) +
client.keys.signing.revoke(kid) -> RevokedSigningKeysResponseContent
@@ -24677,7 +25525,7 @@ client.keys().encryption().import_(
-Delete the custom provided encryption key with the given ID and move back to using native encryption key. +Revoke the application signing key with the given ID.
@@ -24692,7 +25540,7 @@ Delete the custom provided encryption key with the given ID and move back to usi
```java -client.keys().encryption().delete("kid"); +client.keys().signing().revoke("kid"); ```
@@ -24707,7 +25555,7 @@ client.keys().encryption().delete("kid");
-**kid:** `String` — Encryption key ID +**kid:** `String` — Key id of the key to revoke
@@ -24719,11 +25567,12 @@ client.keys().encryption().delete("kid");
-
client.keys.encryption.createPublicWrappingKey(kid) -> CreateEncryptionKeyPublicWrappingResponseContent +## Organizations ClientGrants +
client.organizations.clientGrants.list(id) -> SyncPagingIterable&lt;OrganizationClientGrant&gt;
-#### 📝 Description +#### 🔌 Usage
@@ -24731,13 +25580,28 @@ client.keys().encryption().delete("kid");
-Create the public wrapping key to wrap your own encryption key material. +```java +client.organizations().clientGrants().list( + "id", + ListOrganizationClientGrantsRequestParameters + .builder() + .audience("audience") + .clientId("client_id") + .page(1) + .perPage(1) + .includeTotals(true) + .grantIds( + Arrays.asList("grant_ids") + ) + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -24745,23 +25609,55 @@ Create the public wrapping key to wrap your own encryption key material.
-```java -client.keys().encryption().createPublicWrappingKey("kid"); -``` +**id:** `String` — Organization identifier. +
+ +
+
+ +**audience:** `Optional` — Optional filter on audience of the client grant. +
-#### ⚙️ Parameters +
+
+ +**clientId:** `Optional` — Optional filter on client_id of the client grant. + +
+
+**grantIds:** `Optional` — Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../client-grants?grant_ids=id1&grant_ids=id2 + +
+
+
-**kid:** `String` — Encryption key ID +**page:** `Optional` — Page index of the results to return. First page is 0. + +
+
+ +
+
+ +**perPage:** `Optional` — Number of results per page. Defaults to 50. + +
+
+ +
+
+ +**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
@@ -24773,12 +25669,11 @@ client.keys().encryption().createPublicWrappingKey("kid");
-## Keys Signing -
client.keys.signing.list() -> List&lt;SigningKeys&gt; +
client.organizations.clientGrants.create(id, request) -> AssociateOrganizationClientGrantResponseContent
-#### 📝 Description +#### 🔌 Usage
@@ -24786,13 +25681,21 @@ client.keys().encryption().createPublicWrappingKey("kid");
-Retrieve details of all the application signing keys associated with your tenant. +```java +client.organizations().clientGrants().create( + "id", + AssociateOrganizationClientGrantRequestContent + .builder() + .grantId("grant_id") + .build() +); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -24800,9 +25703,16 @@ Retrieve details of all the application signing keys associated with your tenant
-```java -client.keys().signing().list(); -``` +**id:** `String` — Organization identifier. + +
+
+ +
+
+ +**grantId:** `String` — A Client Grant ID to add to the organization. +
@@ -24813,11 +25723,11 @@ client.keys().signing().list();
-
client.keys.signing.rotate() -> RotateSigningKeysResponseContent +
client.organizations.clientGrants.delete(id, grantId)
-#### 📝 Description +#### 🔌 Usage
@@ -24825,13 +25735,15 @@ client.keys().signing().list();
-Rotate the application signing key of your tenant. +```java +client.organizations().clientGrants().delete("id", "grant_id"); +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -24839,9 +25751,16 @@ Rotate the application signing key of your tenant.
-```java -client.keys().signing().rotate(); -``` +**id:** `String` — Organization identifier. + +
+
+ +
+
+ +**grantId:** `String` — The Client Grant ID to remove from the organization +
@@ -24852,7 +25771,8 @@ client.keys().signing().rotate();
-
client.keys.signing.get(kid) -> GetSigningKeysResponseContent +## Organizations Clients +
client.organizations.clients.list(id) -> SyncPagingIterable&lt;OrganizationClient&gt;
@@ -24864,7 +25784,12 @@ client.keys().signing().rotate();
-Retrieve details of the application signing key with the given ID. +List all clients associated with an organization, using checkpoint pagination. +
    +
  • + Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. +
  • +
@@ -24879,7 +25804,14 @@ Retrieve details of the application signing key with the given ID.
```java -client.keys().signing().get("kid"); +client.organizations().clients().list( + "id", + ListOrganizationClientsRequestParameters + .builder() + .from("from") + .take(1) + .build() +); ```
@@ -24894,7 +25826,23 @@ client.keys().signing().get("kid");
-**kid:** `String` — Key id of the key to retrieve +**id:** `String` — ID of the organization. + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. Values greater than the maximum of 100 are capped at 100.
@@ -24906,7 +25854,7 @@ client.keys().signing().get("kid");
-
client.keys.signing.revoke(kid) -> RevokedSigningKeysResponseContent +
client.organizations.clients.create(id, request) -> List&lt;OrganizationClient&gt;
@@ -24918,7 +25866,7 @@ client.keys().signing().get("kid");
-Revoke the application signing key with the given ID. +Associate one or more clients with an organization.
@@ -24933,7 +25881,21 @@ Revoke the application signing key with the given ID.
```java -client.keys().signing().revoke("kid"); +client.organizations().clients().create( + "id", + CreateOrganizationClientsRequestContent + .builder() + .clients( + Arrays.asList( + CreateOrganizationClientRequestItem + .builder() + .clientId("client_id") + .useForMemberAccess(true) + .build() + ) + ) + .build() +); ```
@@ -24948,7 +25910,15 @@ client.keys().signing().revoke("kid");
-**kid:** `String` — Key id of the key to revoke +**id:** `String` — ID of the organization. + +
+
+ +
+
+ +**clients:** `List` — List of clients to associate with the organization.
@@ -24960,11 +25930,24 @@ client.keys().signing().revoke("kid");
-## Organizations ClientGrants -
client.organizations.clientGrants.list(id) -> SyncPagingIterable&lt;OrganizationClientGrant&gt; +
client.organizations.clients.delete(id, request) +
+
+ +#### 📝 Description + +
+
+
+Remove one or more client associations from an organization. +
+
+
+
+ #### 🔌 Usage
@@ -24974,17 +25957,12 @@ client.keys().signing().revoke("kid");
```java -client.organizations().clientGrants().list( +client.organizations().clients().delete( "id", - ListOrganizationClientGrantsRequestParameters + DeleteOrganizationClientsRequestContent .builder() - .audience("audience") - .clientId("client_id") - .page(1) - .perPage(1) - .includeTotals(true) - .grantIds( - Arrays.asList("grant_ids") + .clients( + Arrays.asList("clients") ) .build() ); @@ -25002,7 +25980,7 @@ client.organizations().clientGrants().list(
-**id:** `String` — Organization identifier. +**id:** `String` — ID of the organization.
@@ -25010,61 +25988,35 @@ client.organizations().clientGrants().list(
-**audience:** `Optional` — Optional filter on audience of the client grant. +**clients:** `List` — List of client IDs to disassociate from the organization.
- -
-
- -**clientId:** `Optional` — Optional filter on client_id of the client grant. -
-
-
-**grantIds:** `Optional` — Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../client-grants?grant_ids=id1&grant_ids=id2 -
+
+
client.organizations.clients.get(id, clientId) -> GetOrganizationClientResponseContent
-**page:** `Optional` — Page index of the results to return. First page is 0. - -
-
+#### 📝 Description
-**perPage:** `Optional` — Number of results per page. Defaults to 50. - -
-
-
-**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
+Get a specific client association for an organization. - - -
- -
client.organizations.clientGrants.create(id, request) -> AssociateOrganizationClientGrantResponseContent -
-
#### 🔌 Usage @@ -25075,13 +26027,7 @@ client.organizations().clientGrants().list(
```java -client.organizations().clientGrants().create( - "id", - AssociateOrganizationClientGrantRequestContent - .builder() - .grantId("grant_id") - .build() -); +client.organizations().clients().get("id", "client_id"); ```
@@ -25096,7 +26042,7 @@ client.organizations().clientGrants().create(
-**id:** `String` — Organization identifier. +**id:** `String` — ID of the organization.
@@ -25104,7 +26050,7 @@ client.organizations().clientGrants().create(
-**grantId:** `String` — A Client Grant ID to add to the organization. +**clientId:** `String` — ID of the client association to retrieve.
@@ -25116,10 +26062,24 @@ client.organizations().clientGrants().create(
-
client.organizations.clientGrants.delete(id, grantId) +
client.organizations.clients.update(id, clientId, request) -> UpdateOrganizationClientResponseContent +
+
+ +#### 📝 Description + +
+
+
+Update an organization client association. +
+
+
+
+ #### 🔌 Usage
@@ -25129,7 +26089,13 @@ client.organizations().clientGrants().create(
```java -client.organizations().clientGrants().delete("id", "grant_id"); +client.organizations().clients().update( + "id", + "client_id", + UpdateOrganizationClientRequestContent + .builder() + .build() +); ```
@@ -25144,7 +26110,7 @@ client.organizations().clientGrants().delete("id", "grant_id");
-**id:** `String` — Organization identifier. +**id:** `String` — ID of the organization.
@@ -25152,7 +26118,15 @@ client.organizations().clientGrants().delete("id", "grant_id");
-**grantId:** `String` — The Client Grant ID to remove from the organization +**clientId:** `String` — ID of the client association to update. + +
+
+ +
+
+ +**useForMemberAccess:** `Optional` — Whether this client is used for member access to the organization.
@@ -26775,7 +27749,7 @@ List organization members. This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned. -- Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. +- Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. This endpoint supports two types of pagination: @@ -26805,6 +27779,7 @@ client.organizations().members().list( "id", ListOrganizationMembersRequestParameters .builder() + .includeTotals(true) .from("from") .take(1) .fields("fields") @@ -26833,6 +27808,14 @@ client.organizations().members().list(
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+ +
+
+ **from:** `Optional` — Optional Id from which to start selection.
@@ -27423,6 +28406,8 @@ client.organizations().members().effectiveRoles().list( Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included. + +**Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`.
@@ -27777,6 +28762,11 @@ client.organizations().members().effectiveRoles().sources().groups().list(
List the organization members assigned a specific role within the context of an organization. +
    +
  • + Note: Returns only members with direct role assignments. For groups assigned to this role within the organization, use GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups. +
  • +
@@ -27864,6 +28854,93 @@ client.organizations().roles().members().list( + + +
+ +## Organizations Roles Groups +
client.organizations.roles.groups.list(organizationId, roleId) -> SyncPagingIterable&lt;RoleGroup&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve the list of groups assigned to a role in the context of an organization. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizations().roles().groups().list( + "organization_id", + "role_id", + ListOrganizationRoleGroupsRequestParameters + .builder() + .from("from") + .take(1) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**organizationId:** `String` — ID of the organization. + +
+
+ +
+
+ +**roleId:** `String` — ID of the role. + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+
+
+ +
@@ -29167,6 +30244,8 @@ client.roles().permissions().delete( Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles). +**Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`. + This endpoint supports two types of pagination: - Offset pagination @@ -29200,6 +30279,7 @@ client.roles().users().list( "id", ListRoleUsersRequestParameters .builder() + .includeTotals(true) .from("from") .take(1) .build() @@ -29226,6 +30306,14 @@ client.roles().users().list(
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+ +
+
+ **from:** `Optional` — Optional Id from which to start selection.
@@ -31126,6 +32214,7 @@ client.users().groups().get( .builder() .fields("fields") .includeFields(true) + .includeTotals(true) .from("from") .take(1) .build() @@ -31168,6 +32257,14 @@ client.users().groups().get(
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+ +
+
+ **from:** `Optional` — Optional Id from which to start selection.
@@ -31700,6 +32797,8 @@ client.users().organizations().list(
Retrieve all permissions associated with the user. + +**Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`.
@@ -32021,6 +33120,8 @@ client.users().riskAssessments().clear( Retrieve detailed list of all user roles currently assigned to a user. **Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles). + +**Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`.
@@ -32270,6 +33371,7 @@ client.users().refreshToken().list( "user_id", ListRefreshTokensRequestParameters .builder() + .includeTotals(true) .from("from") .take(1) .build() @@ -32296,6 +33398,14 @@ client.users().refreshToken().list(
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+ +
+
+ **from:** `Optional` — An optional cursor from which to start the selection (exclusive).
@@ -32402,6 +33512,7 @@ client.users().sessions().list( "user_id", ListUserSessionsRequestParameters .builder() + .includeTotals(true) .from("from") .take(1) .build() @@ -32428,6 +33539,14 @@ client.users().sessions().list(
+**includeTotals:** `Optional` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + +
+
+ +
+
+ **from:** `Optional` — An optional cursor from which to start the selection (exclusive).
diff --git a/src/main/java/com/auth0/client/mgmt/AgentsClient.java b/src/main/java/com/auth0/client/mgmt/AgentsClient.java new file mode 100644 index 00000000..c65b25b5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/AgentsClient.java @@ -0,0 +1,129 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.AgentResponseContent; +import com.auth0.client.mgmt.types.CreateAgentRequestContent; +import com.auth0.client.mgmt.types.ListAgentsRequestParameters; +import com.auth0.client.mgmt.types.PatchAgentRequestParameters; + +public class AgentsClient { + protected final ClientOptions clientOptions; + + private final RawAgentsClient rawClient; + + public AgentsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawAgentsClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawAgentsClient withRawResponse() { + return this.rawClient; + } + + /** + * Get agents + */ + public SyncPagingIterable list() { + return this.rawClient.list().body(); + } + + /** + * Get agents + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Get agents + */ + public SyncPagingIterable list(ListAgentsRequestParameters request) { + return this.rawClient.list(request).body(); + } + + /** + * Get agents + */ + public SyncPagingIterable list( + ListAgentsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).body(); + } + + /** + * Create an agent + */ + public AgentResponseContent create(CreateAgentRequestContent request) { + return this.rawClient.create(request).body(); + } + + /** + * Create an agent + */ + public AgentResponseContent create(CreateAgentRequestContent request, RequestOptions requestOptions) { + return this.rawClient.create(request, requestOptions).body(); + } + + /** + * Get an agent + */ + public AgentResponseContent read(String id) { + return this.rawClient.read(id).body(); + } + + /** + * Get an agent + */ + public AgentResponseContent read(String id, RequestOptions requestOptions) { + return this.rawClient.read(id, requestOptions).body(); + } + + /** + * Delete an agent + */ + public void delete(String id) { + this.rawClient.delete(id).body(); + } + + /** + * Delete an agent + */ + public void delete(String id, RequestOptions requestOptions) { + this.rawClient.delete(id, requestOptions).body(); + } + + /** + * Update an agent + */ + public AgentResponseContent update(String id) { + return this.rawClient.update(id).body(); + } + + /** + * Update an agent + */ + public AgentResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update an agent + */ + public AgentResponseContent update(String id, PatchAgentRequestParameters request) { + return this.rawClient.update(id, request).body(); + } + + /** + * Update an agent + */ + public AgentResponseContent update(String id, PatchAgentRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.update(id, request, requestOptions).body(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/AsyncAgentsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncAgentsClient.java new file mode 100644 index 00000000..e6598c36 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/AsyncAgentsClient.java @@ -0,0 +1,132 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.AgentResponseContent; +import com.auth0.client.mgmt.types.CreateAgentRequestContent; +import com.auth0.client.mgmt.types.ListAgentsRequestParameters; +import com.auth0.client.mgmt.types.PatchAgentRequestParameters; +import java.util.concurrent.CompletableFuture; + +public class AsyncAgentsClient { + protected final ClientOptions clientOptions; + + private final AsyncRawAgentsClient rawClient; + + public AsyncAgentsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawAgentsClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawAgentsClient withRawResponse() { + return this.rawClient; + } + + /** + * Get agents + */ + public CompletableFuture> list() { + return this.rawClient.list().thenApply(response -> response.body()); + } + + /** + * Get agents + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Get agents + */ + public CompletableFuture> list(ListAgentsRequestParameters request) { + return this.rawClient.list(request).thenApply(response -> response.body()); + } + + /** + * Get agents + */ + public CompletableFuture> list( + ListAgentsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Create an agent + */ + public CompletableFuture create(CreateAgentRequestContent request) { + return this.rawClient.create(request).thenApply(response -> response.body()); + } + + /** + * Create an agent + */ + public CompletableFuture create( + CreateAgentRequestContent request, RequestOptions requestOptions) { + return this.rawClient.create(request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Get an agent + */ + public CompletableFuture read(String id) { + return this.rawClient.read(id).thenApply(response -> response.body()); + } + + /** + * Get an agent + */ + public CompletableFuture read(String id, RequestOptions requestOptions) { + return this.rawClient.read(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Delete an agent + */ + public CompletableFuture delete(String id) { + return this.rawClient.delete(id).thenApply(response -> response.body()); + } + + /** + * Delete an agent + */ + public CompletableFuture delete(String id, RequestOptions requestOptions) { + return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an agent + */ + public CompletableFuture update(String id) { + return this.rawClient.update(id).thenApply(response -> response.body()); + } + + /** + * Update an agent + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an agent + */ + public CompletableFuture update(String id, PatchAgentRequestParameters request) { + return this.rawClient.update(id, request).thenApply(response -> response.body()); + } + + /** + * Update an agent + */ + public CompletableFuture update( + String id, PatchAgentRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.update(id, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java index 46b51ca6..4604539c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java @@ -20,6 +20,8 @@ public class AsyncManagementApi { protected final Supplier actionsClient; + protected final Supplier agentsClient; + protected final Supplier brandingClient; protected final Supplier clientGrantsClient; @@ -111,6 +113,7 @@ public class AsyncManagementApi { public AsyncManagementApi(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.actionsClient = Suppliers.memoize(() -> new AsyncActionsClient(clientOptions)); + this.agentsClient = Suppliers.memoize(() -> new AsyncAgentsClient(clientOptions)); this.brandingClient = Suppliers.memoize(() -> new AsyncBrandingClient(clientOptions)); this.clientGrantsClient = Suppliers.memoize(() -> new AsyncClientGrantsClient(clientOptions)); this.clientsClient = Suppliers.memoize(() -> new AsyncClientsClient(clientOptions)); @@ -161,6 +164,10 @@ public AsyncActionsClient actions() { return this.actionsClient.get(); } + public AsyncAgentsClient agents() { + return this.agentsClient.get(); + } + public AsyncBrandingClient branding() { return this.brandingClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java index 1fba755a..b36fa923 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java @@ -8,6 +8,7 @@ import com.auth0.client.mgmt.core.Suppliers; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.AsyncClientGrantsClient; +import com.auth0.client.mgmt.organizations.AsyncClientsClient; import com.auth0.client.mgmt.organizations.AsyncConnectionsClient; import com.auth0.client.mgmt.organizations.AsyncDiscoveryDomainsClient; import com.auth0.client.mgmt.organizations.AsyncEnabledConnectionsClient; @@ -33,6 +34,8 @@ public class AsyncOrganizationsClient { protected final Supplier clientGrantsClient; + protected final Supplier clientsClient; + protected final Supplier connectionsClient; protected final Supplier discoveryDomainsClient; @@ -51,6 +54,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new AsyncRawOrganizationsClient(clientOptions); this.clientGrantsClient = Suppliers.memoize(() -> new AsyncClientGrantsClient(clientOptions)); + this.clientsClient = Suppliers.memoize(() -> new AsyncClientsClient(clientOptions)); this.connectionsClient = Suppliers.memoize(() -> new AsyncConnectionsClient(clientOptions)); this.discoveryDomainsClient = Suppliers.memoize(() -> new AsyncDiscoveryDomainsClient(clientOptions)); this.enabledConnectionsClient = Suppliers.memoize(() -> new AsyncEnabledConnectionsClient(clientOptions)); @@ -242,6 +246,10 @@ public AsyncClientGrantsClient clientGrants() { return this.clientGrantsClient.get(); } + public AsyncClientsClient clients() { + return this.clientsClient.get(); + } + public AsyncConnectionsClient connections() { return this.connectionsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawAgentsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawAgentsClient.java new file mode 100644 index 00000000..b600fc24 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawAgentsClient.java @@ -0,0 +1,617 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.MediaTypes; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.types.AgentResponseContent; +import com.auth0.client.mgmt.types.CreateAgentRequestContent; +import com.auth0.client.mgmt.types.ListAgentsRequestParameters; +import com.auth0.client.mgmt.types.ListAgentsResponseContent; +import com.auth0.client.mgmt.types.PatchAgentRequestParameters; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.jetbrains.annotations.NotNull; + +public class AsyncRawAgentsClient { + protected final ClientOptions clientOptions; + + public AsyncRawAgentsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Get agents + */ + public CompletableFuture>> list() { + return list(ListAgentsRequestParameters.builder().build()); + } + + /** + * Get agents + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListAgentsRequestParameters.builder().build(), requestOptions); + } + + /** + * Get agents + */ + public CompletableFuture>> list( + ListAgentsRequestParameters request) { + return list(request, null); + } + + /** + * Get agents + */ + public CompletableFuture>> list( + ListAgentsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture>> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListAgentsResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListAgentsResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListAgentsRequestParameters nextRequest = ListAgentsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getAgents(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Create an agent + */ + public CompletableFuture> create( + CreateAgentRequestContent request) { + return create(request, null); + } + + /** + * Create an agent + */ + public CompletableFuture> create( + CreateAgentRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, AgentResponseContent.class), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 409: + future.completeExceptionally(new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Get an agent + */ + public CompletableFuture> read(String id) { + return read(id, null); + } + + /** + * Get an agent + */ + public CompletableFuture> read( + String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, AgentResponseContent.class), + response)); + return; + } + try { + switch (response.code()) { + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Delete an agent + */ + public CompletableFuture> delete(String id) { + return delete(id, null); + } + + /** + * Delete an agent + */ + public CompletableFuture> delete(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>(null, response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Update an agent + */ + public CompletableFuture> update(String id) { + return update(id, PatchAgentRequestParameters.builder().build()); + } + + /** + * Update an agent + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, PatchAgentRequestParameters.builder().build(), requestOptions); + } + + /** + * Update an agent + */ + public CompletableFuture> update( + String id, PatchAgentRequestParameters request) { + return update(id, request, null); + } + + /** + * Update an agent + */ + public CompletableFuture> update( + String id, PatchAgentRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, AgentResponseContent.class), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } +} diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java index ce2be7a5..81a82aff 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java @@ -83,6 +83,8 @@ public CompletableFuture>> l QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + QueryStringMapper.addQueryParameter( + httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); if (!request.getFrom().isAbsent()) { QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java index e731a3d4..89745f55 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java @@ -136,6 +136,8 @@ public CompletableFuture { httpUrl.addQueryParameter(_key, _value); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java index aab7c44e..3dcebd15 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java @@ -94,6 +94,14 @@ public CompletableFuture>> li QueryStringMapper.addQueryParameter( httpUrl, "name_filter", request.getNameFilter().orElse(null), false); } + if (!request.getType().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "type", request.getType().orElse(null), false); + } + if (!request.getOwnerId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "owner_id", request.getOwnerId().orElse(null), false); + } if (requestOptions != null) { requestOptions.getQueryParameters().forEach((_key, _value) -> { httpUrl.addQueryParameter(_key, _value); diff --git a/src/main/java/com/auth0/client/mgmt/ManagementApi.java b/src/main/java/com/auth0/client/mgmt/ManagementApi.java index 7e28f9f7..d17fb3c1 100644 --- a/src/main/java/com/auth0/client/mgmt/ManagementApi.java +++ b/src/main/java/com/auth0/client/mgmt/ManagementApi.java @@ -20,6 +20,8 @@ public class ManagementApi { protected final Supplier actionsClient; + protected final Supplier agentsClient; + protected final Supplier brandingClient; protected final Supplier clientGrantsClient; @@ -111,6 +113,7 @@ public class ManagementApi { public ManagementApi(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.actionsClient = Suppliers.memoize(() -> new ActionsClient(clientOptions)); + this.agentsClient = Suppliers.memoize(() -> new AgentsClient(clientOptions)); this.brandingClient = Suppliers.memoize(() -> new BrandingClient(clientOptions)); this.clientGrantsClient = Suppliers.memoize(() -> new ClientGrantsClient(clientOptions)); this.clientsClient = Suppliers.memoize(() -> new ClientsClient(clientOptions)); @@ -161,6 +164,10 @@ public ActionsClient actions() { return this.actionsClient.get(); } + public AgentsClient agents() { + return this.agentsClient.get(); + } + public BrandingClient branding() { return this.brandingClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java index 74ed88d6..f50ee76c 100644 --- a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java @@ -8,6 +8,7 @@ import com.auth0.client.mgmt.core.Suppliers; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.ClientGrantsClient; +import com.auth0.client.mgmt.organizations.ClientsClient; import com.auth0.client.mgmt.organizations.ConnectionsClient; import com.auth0.client.mgmt.organizations.DiscoveryDomainsClient; import com.auth0.client.mgmt.organizations.EnabledConnectionsClient; @@ -32,6 +33,8 @@ public class OrganizationsClient { protected final Supplier clientGrantsClient; + protected final Supplier clientsClient; + protected final Supplier connectionsClient; protected final Supplier discoveryDomainsClient; @@ -50,6 +53,7 @@ public OrganizationsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new RawOrganizationsClient(clientOptions); this.clientGrantsClient = Suppliers.memoize(() -> new ClientGrantsClient(clientOptions)); + this.clientsClient = Suppliers.memoize(() -> new ClientsClient(clientOptions)); this.connectionsClient = Suppliers.memoize(() -> new ConnectionsClient(clientOptions)); this.discoveryDomainsClient = Suppliers.memoize(() -> new DiscoveryDomainsClient(clientOptions)); this.enabledConnectionsClient = Suppliers.memoize(() -> new EnabledConnectionsClient(clientOptions)); @@ -239,6 +243,10 @@ public ClientGrantsClient clientGrants() { return this.clientGrantsClient.get(); } + public ClientsClient clients() { + return this.clientsClient.get(); + } + public ConnectionsClient connections() { return this.connectionsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/RawAgentsClient.java b/src/main/java/com/auth0/client/mgmt/RawAgentsClient.java new file mode 100644 index 00000000..f6db6d9a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/RawAgentsClient.java @@ -0,0 +1,483 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.MediaTypes; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ConflictError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.types.AgentResponseContent; +import com.auth0.client.mgmt.types.CreateAgentRequestContent; +import com.auth0.client.mgmt.types.ListAgentsRequestParameters; +import com.auth0.client.mgmt.types.ListAgentsResponseContent; +import com.auth0.client.mgmt.types.PatchAgentRequestParameters; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawAgentsClient { + protected final ClientOptions clientOptions; + + public RawAgentsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Get agents + */ + public ManagementApiHttpResponse> list() { + return list(ListAgentsRequestParameters.builder().build()); + } + + /** + * Get agents + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListAgentsRequestParameters.builder().build(), requestOptions); + } + + /** + * Get agents + */ + public ManagementApiHttpResponse> list( + ListAgentsRequestParameters request) { + return list(request, null); + } + + /** + * Get agents + */ + public ManagementApiHttpResponse> list( + ListAgentsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListAgentsResponseContent parsedResponse = + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, ListAgentsResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListAgentsRequestParameters nextRequest = ListAgentsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getAgents(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> list( + nextRequest, requestOptions) + .body()), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Create an agent + */ + public ManagementApiHttpResponse create(CreateAgentRequestContent request) { + return create(request, null); + } + + /** + * Create an agent + */ + public ManagementApiHttpResponse create( + CreateAgentRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, AgentResponseContent.class), response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 409: + throw new ConflictError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Get an agent + */ + public ManagementApiHttpResponse read(String id) { + return read(id, null); + } + + /** + * Get an agent + */ + public ManagementApiHttpResponse read(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, AgentResponseContent.class), response); + } + try { + switch (response.code()) { + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Delete an agent + */ + public ManagementApiHttpResponse delete(String id) { + return delete(id, null); + } + + /** + * Delete an agent + */ + public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>(null, response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Update an agent + */ + public ManagementApiHttpResponse update(String id) { + return update(id, PatchAgentRequestParameters.builder().build()); + } + + /** + * Update an agent + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, PatchAgentRequestParameters.builder().build(), requestOptions); + } + + /** + * Update an agent + */ + public ManagementApiHttpResponse update(String id, PatchAgentRequestParameters request) { + return update(id, request, null); + } + + /** + * Update an agent + */ + public ManagementApiHttpResponse update( + String id, PatchAgentRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("agents") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, AgentResponseContent.class), response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java index e9b648f7..2be177c5 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java @@ -78,6 +78,8 @@ public ManagementApiHttpResponse> HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants"); + QueryStringMapper.addQueryParameter( + httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); if (!request.getFrom().isAbsent()) { QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java index 5919c8e3..62341fdc 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java @@ -130,6 +130,8 @@ public ManagementApiHttpResponse> list( HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections"); + QueryStringMapper.addQueryParameter( + httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); if (!request.getFrom().isAbsent()) { QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java index 9c75aa17..02566f9c 100644 --- a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java @@ -92,6 +92,8 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + QueryStringMapper.addQueryParameter( + httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); if (!request.getFrom().isAbsent()) { QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); diff --git a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java index 09bb80b3..d1203604 100644 --- a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java @@ -130,6 +130,8 @@ public ManagementApiHttpResponse> list( HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations"); + QueryStringMapper.addQueryParameter( + httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); if (!request.getFrom().isAbsent()) { QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); @@ -139,6 +141,13 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (!request.getIncludeClientAssociationFor().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_client_association_for", + request.getIncludeClientAssociationFor().orElse(null), + false); + } if (requestOptions != null) { requestOptions.getQueryParameters().forEach((_key, _value) -> { httpUrl.addQueryParameter(_key, _value); diff --git a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java index c5a37c59..ea7eb9ec 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java @@ -88,6 +88,14 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "name_filter", request.getNameFilter().orElse(null), false); } + if (!request.getType().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "type", request.getType().orElse(null), false); + } + if (!request.getOwnerId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "owner_id", request.getOwnerId().orElse(null), false); + } if (requestOptions != null) { requestOptions.getQueryParameters().forEach((_key, _value) -> { httpUrl.addQueryParameter(_key, _value); 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 ae436b51..f838836e 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java @@ -65,6 +65,8 @@ public CompletableFuture> list( .addPathSegments("client-grants") .addPathSegment(id) .addPathSegments("organizations"); + QueryStringMapper.addQueryParameter( + httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); if (!request.getFrom().isAbsent()) { QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java index be8f7751..9de18ba9 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java @@ -23,6 +23,8 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListClientGrantOrganizationsRequestParameters.Builder.class) public final class ListClientGrantOrganizationsRequestParameters { + private final OptionalNullable includeTotals; + private final OptionalNullable from; private final OptionalNullable take; @@ -30,12 +32,28 @@ public final class ListClientGrantOrganizationsRequestParameters { private final Map additionalProperties; private ListClientGrantOrganizationsRequestParameters( - OptionalNullable from, OptionalNullable take, Map additionalProperties) { + OptionalNullable includeTotals, + OptionalNullable from, + OptionalNullable take, + Map additionalProperties) { + this.includeTotals = includeTotals; this.from = from; this.take = take; this.additionalProperties = additionalProperties; } + /** + * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + public OptionalNullable getIncludeTotals() { + if (includeTotals == null) { + return OptionalNullable.absent(); + } + return includeTotals; + } + /** * @return Optional Id from which to start selection. */ @@ -60,6 +78,12 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("from") private OptionalNullable _getFrom() { @@ -85,12 +109,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(ListClientGrantOrganizationsRequestParameters other) { - return from.equals(other.from) && take.equals(other.take); + return includeTotals.equals(other.includeTotals) && from.equals(other.from) && take.equals(other.take); } @java.lang.Override public int hashCode() { - return Objects.hash(this.from, this.take); + return Objects.hash(this.includeTotals, this.from, this.take); } @java.lang.Override @@ -104,6 +128,8 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { + private OptionalNullable includeTotals = OptionalNullable.absent(); + private OptionalNullable from = OptionalNullable.absent(); private OptionalNullable take = OptionalNullable.absent(); @@ -114,11 +140,46 @@ public static final class Builder { private Builder() {} public Builder from(ListClientGrantOrganizationsRequestParameters other) { + includeTotals(other.getIncludeTotals()); from(other.getFrom()); take(other.getTake()); return this; } + /** + *

Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).

+ */ + @JsonSetter(value = "include_totals", nulls = Nulls.SKIP) + public Builder includeTotals(@Nullable OptionalNullable includeTotals) { + this.includeTotals = includeTotals; + return this; + } + + public Builder includeTotals(Boolean includeTotals) { + this.includeTotals = OptionalNullable.of(includeTotals); + return this; + } + + public Builder includeTotals(Optional includeTotals) { + if (includeTotals.isPresent()) { + this.includeTotals = OptionalNullable.of(includeTotals.get()); + } else { + this.includeTotals = OptionalNullable.absent(); + } + return this; + } + + public Builder includeTotals(com.auth0.client.mgmt.core.Nullable includeTotals) { + if (includeTotals.isNull()) { + this.includeTotals = OptionalNullable.ofNull(); + } else if (includeTotals.isEmpty()) { + this.includeTotals = OptionalNullable.absent(); + } else { + this.includeTotals = OptionalNullable.of(includeTotals.get()); + } + return this; + } + /** *

Optional Id from which to start selection.

*/ @@ -188,7 +249,7 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { } public ListClientGrantOrganizationsRequestParameters build() { - return new ListClientGrantOrganizationsRequestParameters(from, take, additionalProperties); + return new ListClientGrantOrganizationsRequestParameters(includeTotals, from, take, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java index 94cf3256..a7526405 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java @@ -4,6 +4,8 @@ package com.auth0.client.mgmt.connections; import com.auth0.client.mgmt.connections.directoryprovisioning.AsyncSynchronizationsClient; +import com.auth0.client.mgmt.connections.types.AddSynchronizedGroupsRequestContent; +import com.auth0.client.mgmt.connections.types.DeleteSynchronizedGroupsRequestContent; import com.auth0.client.mgmt.connections.types.ListDirectoryProvisioningsRequestParameters; import com.auth0.client.mgmt.connections.types.ListSynchronizedGroupsRequestParameters; import com.auth0.client.mgmt.connections.types.ReplaceSynchronizedGroupsRequestContent; @@ -215,6 +217,24 @@ public CompletableFuture> listSynch .thenApply(response -> response.body()); } + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public CompletableFuture addSynchronizedGroupSelections( + String id, AddSynchronizedGroupsRequestContent request) { + return this.rawClient.addSynchronizedGroupSelections(id, request).thenApply(response -> response.body()); + } + + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public CompletableFuture addSynchronizedGroupSelections( + String id, AddSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + return this.rawClient + .addSynchronizedGroupSelections(id, request, requestOptions) + .thenApply(response -> response.body()); + } + /** * Create or replace the selected groups for a connection directory provisioning configuration. */ @@ -230,6 +250,24 @@ public CompletableFuture set( return this.rawClient.set(id, request, requestOptions).thenApply(response -> response.body()); } + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public CompletableFuture deleteSynchronizedGroupSelections( + String id, DeleteSynchronizedGroupsRequestContent request) { + return this.rawClient.deleteSynchronizedGroupSelections(id, request).thenApply(response -> response.body()); + } + + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public CompletableFuture deleteSynchronizedGroupSelections( + String id, DeleteSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + return this.rawClient + .deleteSynchronizedGroupSelections(id, request, requestOptions) + .thenApply(response -> response.body()); + } + public AsyncSynchronizationsClient synchronizations() { return this.synchronizationsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java index 5d947ecb..e12a95bf 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java @@ -3,6 +3,8 @@ */ package com.auth0.client.mgmt.connections; +import com.auth0.client.mgmt.connections.types.AddSynchronizedGroupsRequestContent; +import com.auth0.client.mgmt.connections.types.DeleteSynchronizedGroupsRequestContent; import com.auth0.client.mgmt.connections.types.ListDirectoryProvisioningsRequestParameters; import com.auth0.client.mgmt.connections.types.ListSynchronizedGroupsRequestParameters; import com.auth0.client.mgmt.connections.types.ReplaceSynchronizedGroupsRequestContent; @@ -828,6 +830,9 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (!request.getQ().isAbsent()) { + QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().orElse(null), false); + } if (requestOptions != null) { requestOptions.getQueryParameters().forEach((_key, _value) -> { httpUrl.addQueryParameter(_key, _value); @@ -934,6 +939,118 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { return future; } + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public CompletableFuture> addSynchronizedGroupSelections( + String id, AddSynchronizedGroupsRequestContent request) { + return addSynchronizedGroupSelections(id, request, null); + } + + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public CompletableFuture> addSynchronizedGroupSelections( + String id, AddSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections") + .addPathSegment(id) + .addPathSegments("directory-provisioning") + .addPathSegments("synchronized-groups"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>(null, response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + /** * Create or replace the selected groups for a connection directory provisioning configuration. */ @@ -1050,4 +1167,116 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { }); return future; } + + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public CompletableFuture> deleteSynchronizedGroupSelections( + String id, DeleteSynchronizedGroupsRequestContent request) { + return deleteSynchronizedGroupSelections(id, request, null); + } + + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public CompletableFuture> deleteSynchronizedGroupSelections( + String id, DeleteSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections") + .addPathSegment(id) + .addPathSegments("directory-provisioning") + .addPathSegments("synchronized-groups"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>(null, response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java index 53333a62..f28bcc9d 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java @@ -4,6 +4,8 @@ package com.auth0.client.mgmt.connections; import com.auth0.client.mgmt.connections.directoryprovisioning.SynchronizationsClient; +import com.auth0.client.mgmt.connections.types.AddSynchronizedGroupsRequestContent; +import com.auth0.client.mgmt.connections.types.DeleteSynchronizedGroupsRequestContent; import com.auth0.client.mgmt.connections.types.ListDirectoryProvisioningsRequestParameters; import com.auth0.client.mgmt.connections.types.ListSynchronizedGroupsRequestParameters; import com.auth0.client.mgmt.connections.types.ReplaceSynchronizedGroupsRequestContent; @@ -211,6 +213,23 @@ public SyncPagingIterable listSynchronizedGroups( .body(); } + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public void addSynchronizedGroupSelections(String id, AddSynchronizedGroupsRequestContent request) { + this.rawClient.addSynchronizedGroupSelections(id, request).body(); + } + + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public void addSynchronizedGroupSelections( + String id, AddSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + this.rawClient + .addSynchronizedGroupSelections(id, request, requestOptions) + .body(); + } + /** * Create or replace the selected groups for a connection directory provisioning configuration. */ @@ -225,6 +244,23 @@ public void set(String id, ReplaceSynchronizedGroupsRequestContent request, Requ this.rawClient.set(id, request, requestOptions).body(); } + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public void deleteSynchronizedGroupSelections(String id, DeleteSynchronizedGroupsRequestContent request) { + this.rawClient.deleteSynchronizedGroupSelections(id, request).body(); + } + + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public void deleteSynchronizedGroupSelections( + String id, DeleteSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + this.rawClient + .deleteSynchronizedGroupSelections(id, request, requestOptions) + .body(); + } + public SynchronizationsClient synchronizations() { return this.synchronizationsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java index 4c30b1a0..4350c901 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java @@ -3,6 +3,8 @@ */ package com.auth0.client.mgmt.connections; +import com.auth0.client.mgmt.connections.types.AddSynchronizedGroupsRequestContent; +import com.auth0.client.mgmt.connections.types.DeleteSynchronizedGroupsRequestContent; import com.auth0.client.mgmt.connections.types.ListDirectoryProvisioningsRequestParameters; import com.auth0.client.mgmt.connections.types.ListSynchronizedGroupsRequestParameters; import com.auth0.client.mgmt.connections.types.ReplaceSynchronizedGroupsRequestContent; @@ -664,6 +666,9 @@ public ManagementApiHttpResponse> l httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (!request.getQ().isAbsent()) { + QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().orElse(null), false); + } if (requestOptions != null) { requestOptions.getQueryParameters().forEach((_key, _value) -> { httpUrl.addQueryParameter(_key, _value); @@ -738,6 +743,94 @@ public ManagementApiHttpResponse> l } } + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public ManagementApiHttpResponse addSynchronizedGroupSelections( + String id, AddSynchronizedGroupsRequestContent request) { + return addSynchronizedGroupSelections(id, request, null); + } + + /** + * Add synchronized group selections to a directory provisioning configuration. + */ + public ManagementApiHttpResponse addSynchronizedGroupSelections( + String id, AddSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections") + .addPathSegment(id) + .addPathSegments("directory-provisioning") + .addPathSegments("synchronized-groups"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>(null, response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + /** * Create or replace the selected groups for a connection directory provisioning configuration. */ @@ -827,4 +920,92 @@ public ManagementApiHttpResponse set( throw new ManagementException("Network error executing HTTP request", e); } } + + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public ManagementApiHttpResponse deleteSynchronizedGroupSelections( + String id, DeleteSynchronizedGroupsRequestContent request) { + return deleteSynchronizedGroupSelections(id, request, null); + } + + /** + * Delete synchronized group selections for a directory provisioning configuration + */ + public ManagementApiHttpResponse deleteSynchronizedGroupSelections( + String id, DeleteSynchronizedGroupsRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("connections") + .addPathSegment(id) + .addPathSegments("directory-provisioning") + .addPathSegments("synchronized-groups"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>(null, response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/AddSynchronizedGroupsRequestContent.java b/src/main/java/com/auth0/client/mgmt/connections/types/AddSynchronizedGroupsRequestContent.java new file mode 100644 index 00000000..14325a61 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/connections/types/AddSynchronizedGroupsRequestContent.java @@ -0,0 +1,125 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.connections.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.types.SynchronizedGroupPayload; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = AddSynchronizedGroupsRequestContent.Builder.class) +public final class AddSynchronizedGroupsRequestContent { + private final List groups; + + private final Map additionalProperties; + + private AddSynchronizedGroupsRequestContent( + List groups, Map additionalProperties) { + this.groups = groups; + this.additionalProperties = additionalProperties; + } + + /** + * @return Array of Google Workspace Directory group objects to synchronize. + */ + @JsonProperty("groups") + public List getGroups() { + return groups; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AddSynchronizedGroupsRequestContent + && equalTo((AddSynchronizedGroupsRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(AddSynchronizedGroupsRequestContent other) { + return groups.equals(other.groups); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.groups); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private List groups = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(AddSynchronizedGroupsRequestContent other) { + groups(other.getGroups()); + return this; + } + + /** + *

Array of Google Workspace Directory group objects to synchronize.

+ */ + @JsonSetter(value = "groups", nulls = Nulls.SKIP) + public Builder groups(List groups) { + this.groups.clear(); + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + public Builder addGroups(SynchronizedGroupPayload groups) { + this.groups.add(groups); + return this; + } + + public Builder addAllGroups(List groups) { + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + public AddSynchronizedGroupsRequestContent build() { + return new AddSynchronizedGroupsRequestContent(groups, 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/connections/types/DeleteSynchronizedGroupsRequestContent.java b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteSynchronizedGroupsRequestContent.java new file mode 100644 index 00000000..5d5a7e1c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteSynchronizedGroupsRequestContent.java @@ -0,0 +1,125 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.connections.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.types.SynchronizedGroupSelectionId; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = DeleteSynchronizedGroupsRequestContent.Builder.class) +public final class DeleteSynchronizedGroupsRequestContent { + private final List groups; + + private final Map additionalProperties; + + private DeleteSynchronizedGroupsRequestContent( + List groups, Map additionalProperties) { + this.groups = groups; + this.additionalProperties = additionalProperties; + } + + /** + * @return Array of groups to remove from the selection set. + */ + @JsonProperty("groups") + public List getGroups() { + return groups; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof DeleteSynchronizedGroupsRequestContent + && equalTo((DeleteSynchronizedGroupsRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(DeleteSynchronizedGroupsRequestContent other) { + return groups.equals(other.groups); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.groups); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private List groups = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(DeleteSynchronizedGroupsRequestContent other) { + groups(other.getGroups()); + return this; + } + + /** + *

Array of groups to remove from the selection set.

+ */ + @JsonSetter(value = "groups", nulls = Nulls.SKIP) + public Builder groups(List groups) { + this.groups.clear(); + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + public Builder addGroups(SynchronizedGroupSelectionId groups) { + this.groups.add(groups); + return this; + } + + public Builder addAllGroups(List groups) { + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + public DeleteSynchronizedGroupsRequestContent build() { + return new DeleteSynchronizedGroupsRequestContent(groups, 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/connections/types/ListSynchronizedGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java index 44183765..24870862 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java @@ -27,12 +27,18 @@ public final class ListSynchronizedGroupsRequestParameters { private final OptionalNullable take; + private final OptionalNullable q; + private final Map additionalProperties; private ListSynchronizedGroupsRequestParameters( - OptionalNullable from, OptionalNullable take, Map additionalProperties) { + OptionalNullable from, + OptionalNullable take, + OptionalNullable q, + Map additionalProperties) { this.from = from; this.take = take; + this.q = q; this.additionalProperties = additionalProperties; } @@ -60,6 +66,18 @@ public OptionalNullable getTake() { return take; } + /** + * @return Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*". + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + public OptionalNullable getQ() { + if (q == null) { + return OptionalNullable.absent(); + } + return q; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("from") private OptionalNullable _getFrom() { @@ -72,6 +90,12 @@ private OptionalNullable _getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + private OptionalNullable _getQ() { + return q; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -85,12 +109,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(ListSynchronizedGroupsRequestParameters other) { - return from.equals(other.from) && take.equals(other.take); + return from.equals(other.from) && take.equals(other.take) && q.equals(other.q); } @java.lang.Override public int hashCode() { - return Objects.hash(this.from, this.take); + return Objects.hash(this.from, this.take, this.q); } @java.lang.Override @@ -108,6 +132,8 @@ public static final class Builder { private OptionalNullable take = OptionalNullable.absent(); + private OptionalNullable q = OptionalNullable.absent(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -116,6 +142,7 @@ private Builder() {} public Builder from(ListSynchronizedGroupsRequestParameters other) { from(other.getFrom()); take(other.getTake()); + q(other.getQ()); return this; } @@ -187,8 +214,42 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { return this; } + /** + *

Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*".

+ */ + @JsonSetter(value = "q", nulls = Nulls.SKIP) + public Builder q(@Nullable OptionalNullable q) { + this.q = q; + return this; + } + + public Builder q(String q) { + this.q = OptionalNullable.of(q); + return this; + } + + public Builder q(Optional q) { + if (q.isPresent()) { + this.q = OptionalNullable.of(q.get()); + } else { + this.q = OptionalNullable.absent(); + } + return this; + } + + public Builder q(com.auth0.client.mgmt.core.Nullable q) { + if (q.isNull()) { + this.q = OptionalNullable.ofNull(); + } else if (q.isEmpty()) { + this.q = OptionalNullable.absent(); + } else { + this.q = OptionalNullable.of(q.get()); + } + return this; + } + public ListSynchronizedGroupsRequestParameters build() { - return new ListSynchronizedGroupsRequestParameters(from, take, additionalProperties); + return new ListSynchronizedGroupsRequestParameters(from, take, q, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java index a90f8678..cc355810 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java @@ -5,10 +5,10 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.eventstreams.types.ListEventStreamDeliveriesRequestParameters; import com.auth0.client.mgmt.types.EventStreamDelivery; import com.auth0.client.mgmt.types.GetEventStreamDeliveryHistoryResponseContent; -import java.util.List; import java.util.concurrent.CompletableFuture; public class AsyncDeliveriesClient { @@ -28,20 +28,20 @@ public AsyncRawDeliveriesClient withRawResponse() { return this.rawClient; } - public CompletableFuture> list(String id) { + public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } - public CompletableFuture> list(String id, RequestOptions requestOptions) { + public CompletableFuture> list(String id, RequestOptions requestOptions) { return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); } - public CompletableFuture> list( + public CompletableFuture> list( String id, ListEventStreamDeliveriesRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); } - public CompletableFuture> list( + public CompletableFuture> list( String id, ListEventStreamDeliveriesRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(id, request, requestOptions).thenApply(response -> response.body()); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java index 78791103..4ccb8016 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.RetryInterceptor; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -19,11 +20,13 @@ import com.auth0.client.mgmt.eventstreams.types.ListEventStreamDeliveriesRequestParameters; import com.auth0.client.mgmt.types.EventStreamDelivery; import com.auth0.client.mgmt.types.GetEventStreamDeliveryHistoryResponseContent; +import com.auth0.client.mgmt.types.ListEventStreamDeliveriesResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; import java.util.List; +import java.util.Optional; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; import okhttp3.Call; import okhttp3.Callback; import okhttp3.Headers; @@ -41,21 +44,21 @@ public AsyncRawDeliveriesClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } - public CompletableFuture>> list(String id) { + public CompletableFuture>> list(String id) { return list(id, ListEventStreamDeliveriesRequestParameters.builder().build()); } - public CompletableFuture>> list( + public CompletableFuture>> list( String id, RequestOptions requestOptions) { return list(id, ListEventStreamDeliveriesRequestParameters.builder().build(), requestOptions); } - public CompletableFuture>> list( + public CompletableFuture>> list( String id, ListEventStreamDeliveriesRequestParameters request) { return list(id, request, null); } - public CompletableFuture>> list( + public CompletableFuture>> list( String id, ListEventStreamDeliveriesRequestParameters request, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -107,16 +110,34 @@ public CompletableFuture>> l requestOptions.getMaxRetries().get())) .build(); } - CompletableFuture>> future = new CompletableFuture<>(); + CompletableFuture>> future = + new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { try (ResponseBody responseBody = response.body()) { String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { + ListEventStreamDeliveriesResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListEventStreamDeliveriesResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListEventStreamDeliveriesRequestParameters nextRequest = + ListEventStreamDeliveriesRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getDeliveries(); future.complete(new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, new TypeReference>() {}), + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(id, nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), response)); return; } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java index 0d9b4e87..fa05c66a 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java @@ -5,10 +5,10 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.eventstreams.types.ListEventStreamDeliveriesRequestParameters; import com.auth0.client.mgmt.types.EventStreamDelivery; import com.auth0.client.mgmt.types.GetEventStreamDeliveryHistoryResponseContent; -import java.util.List; public class DeliveriesClient { protected final ClientOptions clientOptions; @@ -27,19 +27,19 @@ public RawDeliveriesClient withRawResponse() { return this.rawClient; } - public List list(String id) { + public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } - public List list(String id, RequestOptions requestOptions) { + public SyncPagingIterable list(String id, RequestOptions requestOptions) { return this.rawClient.list(id, requestOptions).body(); } - public List list(String id, ListEventStreamDeliveriesRequestParameters request) { + public SyncPagingIterable list(String id, ListEventStreamDeliveriesRequestParameters request) { return this.rawClient.list(id, request).body(); } - public List list( + public SyncPagingIterable list( String id, ListEventStreamDeliveriesRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(id, request, requestOptions).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java index 92557992..9276a536 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.RetryInterceptor; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -19,10 +20,11 @@ import com.auth0.client.mgmt.eventstreams.types.ListEventStreamDeliveriesRequestParameters; import com.auth0.client.mgmt.types.EventStreamDelivery; import com.auth0.client.mgmt.types.GetEventStreamDeliveryHistoryResponseContent; +import com.auth0.client.mgmt.types.ListEventStreamDeliveriesResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; import java.util.List; +import java.util.Optional; import okhttp3.Headers; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; @@ -37,20 +39,21 @@ public RawDeliveriesClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } - public ManagementApiHttpResponse> list(String id) { + public ManagementApiHttpResponse> list(String id) { return list(id, ListEventStreamDeliveriesRequestParameters.builder().build()); } - public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { return list(id, ListEventStreamDeliveriesRequestParameters.builder().build(), requestOptions); } - public ManagementApiHttpResponse> list( + public ManagementApiHttpResponse> list( String id, ListEventStreamDeliveriesRequestParameters request) { return list(id, request, null); } - public ManagementApiHttpResponse> list( + public ManagementApiHttpResponse> list( String id, ListEventStreamDeliveriesRequestParameters request, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -106,9 +109,20 @@ public ManagementApiHttpResponse> list( ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { + ListEventStreamDeliveriesResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListEventStreamDeliveriesResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListEventStreamDeliveriesRequestParameters nextRequest = + ListEventStreamDeliveriesRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getDeliveries(); return new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, new TypeReference>() {}), + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> list( + id, nextRequest, requestOptions) + .body()), response); } try { diff --git a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java index c1a54751..61111e90 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java @@ -66,6 +66,8 @@ public CompletableFuture> list( .addPathSegments("flows") .addPathSegment(flowId) .addPathSegments("executions"); + QueryStringMapper.addQueryParameter( + httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); if (!request.getFrom().isAbsent()) { QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java index c7f26792..1d1298a2 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java @@ -23,6 +23,8 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFlowExecutionsRequestParameters.Builder.class) public final class ListFlowExecutionsRequestParameters { + private final OptionalNullable includeTotals; + private final OptionalNullable from; private final OptionalNullable take; @@ -30,12 +32,28 @@ public final class ListFlowExecutionsRequestParameters { private final Map additionalProperties; private ListFlowExecutionsRequestParameters( - OptionalNullable from, OptionalNullable take, Map additionalProperties) { + OptionalNullable includeTotals, + OptionalNullable from, + OptionalNullable take, + Map additionalProperties) { + this.includeTotals = includeTotals; this.from = from; this.take = take; this.additionalProperties = additionalProperties; } + /** + * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + public OptionalNullable getIncludeTotals() { + if (includeTotals == null) { + return OptionalNullable.absent(); + } + return includeTotals; + } + /** * @return Optional Id from which to start selection. */ @@ -60,6 +78,12 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("from") private OptionalNullable _getFrom() { @@ -85,12 +109,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(ListFlowExecutionsRequestParameters other) { - return from.equals(other.from) && take.equals(other.take); + return includeTotals.equals(other.includeTotals) && from.equals(other.from) && take.equals(other.take); } @java.lang.Override public int hashCode() { - return Objects.hash(this.from, this.take); + return Objects.hash(this.includeTotals, this.from, this.take); } @java.lang.Override @@ -104,6 +128,8 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { + private OptionalNullable includeTotals = OptionalNullable.absent(); + private OptionalNullable from = OptionalNullable.absent(); private OptionalNullable take = OptionalNullable.absent(); @@ -114,11 +140,46 @@ public static final class Builder { private Builder() {} public Builder from(ListFlowExecutionsRequestParameters other) { + includeTotals(other.getIncludeTotals()); from(other.getFrom()); take(other.getTake()); return this; } + /** + *

Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).

+ */ + @JsonSetter(value = "include_totals", nulls = Nulls.SKIP) + public Builder includeTotals(@Nullable OptionalNullable includeTotals) { + this.includeTotals = includeTotals; + return this; + } + + public Builder includeTotals(Boolean includeTotals) { + this.includeTotals = OptionalNullable.of(includeTotals); + return this; + } + + public Builder includeTotals(Optional includeTotals) { + if (includeTotals.isPresent()) { + this.includeTotals = OptionalNullable.of(includeTotals.get()); + } else { + this.includeTotals = OptionalNullable.absent(); + } + return this; + } + + public Builder includeTotals(com.auth0.client.mgmt.core.Nullable includeTotals) { + if (includeTotals.isNull()) { + this.includeTotals = OptionalNullable.ofNull(); + } else if (includeTotals.isEmpty()) { + this.includeTotals = OptionalNullable.absent(); + } else { + this.includeTotals = OptionalNullable.of(includeTotals.get()); + } + return this; + } + /** *

Optional Id from which to start selection.

*/ @@ -188,7 +249,7 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { } public ListFlowExecutionsRequestParameters build() { - return new ListFlowExecutionsRequestParameters(from, take, additionalProperties); + return new ListFlowExecutionsRequestParameters(includeTotals, from, take, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientsClient.java new file mode 100644 index 00000000..6abc012d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientsClient.java @@ -0,0 +1,162 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.organizations.types.CreateOrganizationClientsRequestContent; +import com.auth0.client.mgmt.organizations.types.DeleteOrganizationClientsRequestContent; +import com.auth0.client.mgmt.organizations.types.ListOrganizationClientsRequestParameters; +import com.auth0.client.mgmt.organizations.types.UpdateOrganizationClientRequestContent; +import com.auth0.client.mgmt.types.GetOrganizationClientResponseContent; +import com.auth0.client.mgmt.types.OrganizationClient; +import com.auth0.client.mgmt.types.UpdateOrganizationClientResponseContent; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +public class AsyncClientsClient { + protected final ClientOptions clientOptions; + + private final AsyncRawClientsClient rawClient; + + public AsyncClientsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawClientsClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawClientsClient withRawResponse() { + return this.rawClient; + } + + /** + * List all clients associated with an organization, using checkpoint pagination. + *

    + *
  • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
  • + *

+ */ + public CompletableFuture> list(String id) { + return this.rawClient.list(id).thenApply(response -> response.body()); + } + + /** + * List all clients associated with an organization, using checkpoint pagination. + *

    + *
  • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
  • + *

+ */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * List all clients associated with an organization, using checkpoint pagination. + *

    + *
  • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
  • + *

+ */ + public CompletableFuture> list( + String id, ListOrganizationClientsRequestParameters request) { + return this.rawClient.list(id, request).thenApply(response -> response.body()); + } + + /** + * List all clients associated with an organization, using checkpoint pagination. + *

    + *
  • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
  • + *

+ */ + public CompletableFuture> list( + String id, ListOrganizationClientsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(id, request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Associate one or more clients with an organization. + */ + public CompletableFuture> create( + String id, CreateOrganizationClientsRequestContent request) { + return this.rawClient.create(id, request).thenApply(response -> response.body()); + } + + /** + * Associate one or more clients with an organization. + */ + public CompletableFuture> create( + String id, CreateOrganizationClientsRequestContent request, RequestOptions requestOptions) { + return this.rawClient.create(id, request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Remove one or more client associations from an organization. + */ + public CompletableFuture delete(String id, DeleteOrganizationClientsRequestContent request) { + return this.rawClient.delete(id, request).thenApply(response -> response.body()); + } + + /** + * Remove one or more client associations from an organization. + */ + public CompletableFuture delete( + String id, DeleteOrganizationClientsRequestContent request, RequestOptions requestOptions) { + return this.rawClient.delete(id, request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Get a specific client association for an organization. + */ + public CompletableFuture get(String id, String clientId) { + return this.rawClient.get(id, clientId).thenApply(response -> response.body()); + } + + /** + * Get a specific client association for an organization. + */ + public CompletableFuture get( + String id, String clientId, RequestOptions requestOptions) { + return this.rawClient.get(id, clientId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an organization client association. + */ + public CompletableFuture update(String id, String clientId) { + return this.rawClient.update(id, clientId).thenApply(response -> response.body()); + } + + /** + * Update an organization client association. + */ + public CompletableFuture update( + String id, String clientId, RequestOptions requestOptions) { + return this.rawClient.update(id, clientId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an organization client association. + */ + public CompletableFuture update( + String id, String clientId, UpdateOrganizationClientRequestContent request) { + return this.rawClient.update(id, clientId, request).thenApply(response -> response.body()); + } + + /** + * Update an organization client association. + */ + public CompletableFuture update( + String id, String clientId, UpdateOrganizationClientRequestContent request, RequestOptions requestOptions) { + return this.rawClient.update(id, clientId, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java index b42e9461..648296f3 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java @@ -44,7 +44,7 @@ public AsyncRawMembersClient withRawResponse() { * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. *
    *
  • Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned.
  • - *
  • Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token.
  • + *
  • Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use GET /api/v2/organizations/{id}/members/{user_id}/effective-roles.
  • *
*

This endpoint supports two types of pagination:

*